-
Notifications
You must be signed in to change notification settings - Fork 1
Add resume mode (-r flag) using standard frontmatter filtering #70
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
Conversation
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
alexec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot please make the changes.
main.go
Outdated
| } | ||
|
|
||
| // Filter based on resume mode | ||
| resumeValue, hasResume := frontmatter["resume"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot "resume" can be a standard front-matter filter. We should be able to have two prompts for the same task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactored to use standard frontmatter filtering. The resume field is now a regular selector field, and -r is shorthand for -s resume=true + skip rules. This allows multiple task prompts for the same task name. See commit 07213fe.
| Initial task (`.agents/tasks/fix-bug-initial.md`): | ||
| ```markdown | ||
| --- | ||
| task_name: fix-bug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot to exclude from resume, "resume: false".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated documentation and examples to show resume: false for initial tasks. Users can now use -s resume=false to explicitly select non-resume tasks. See commit 07213fe.
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
|
@copilot I have made changes. Please fix the tests. |
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
-rflag to add-s resume=trueselector and skip rules-s resume=falsefor normal modeSummary
Fixed tests after @alexec's changes to support boolean values in frontmatter:
matchesIncludesto usefmt.Sprint(fmValue)to convert any frontmatter value type to string before comparisonresume: true/falseas boolean valuesOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.