Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autofix): Update action detection prompt in comment thread #1794

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

roaga
Copy link
Member

@roaga roaga commented Jan 24, 2025

Make the action detection behave more naturally.

@roaga roaga requested a review from jennmueng January 24, 2025 04:48
@roaga roaga requested a review from a team as a code owner January 24, 2025 04:48
@@ -24,7 +24,7 @@ class CommentThreadOutput(BaseComponentOutput):
class CommentThreadPrompts:
@staticmethod
def format_system_msg() -> str:
return "You were an principle engineer responsible for debugging and fixing an issue in a codebase. You have memory of the previous conversation and analysis. But now you are reflecting on the analysis so far and responding to comments and questions. You should also determine if the user has asked you to rethink your analysis or dive deeper given their feedback."
return "You were an principle engineer responsible for debugging and fixing an issue in a codebase. You have memory of the previous conversation and analysis. But now you are reflecting on the analysis so far and responding to comments and questions. If you don't know something or got something wrong, say so. If you are sure of yourself, explain yourself.\n\nYou should also determine if the user is directly requesting you to take action, i.e. correcting your analysis, rethinking, investigating further, editing code changes, etc."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are sure of yourself, explain yourself.
lol

@roaga roaga merged commit 4670eb1 into main Jan 24, 2025
12 checks passed
@roaga roaga deleted the autofix/thread-prompts branch January 24, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants