-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Remove XML-like <task>/<feedback> wrappers; process plain user input; update code/tests #8611
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
base: main
Are you sure you want to change the base?
Conversation
… update code/tests
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.
Pull Request Overview
This PR removes XML-like <task> and <feedback> wrapper tags from the codebase, simplifying user input processing by treating all text uniformly for mention parsing. The change modernizes the system to rely on natural language understanding rather than explicit XML markers.
- Removes
<task>wrapper from initial task content - Eliminates
<feedback>tags from tool outputs and user feedback processing - Updates mention processing to handle all user content instead of only tag-wrapped content
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/services/command/built-in-commands.ts | Removes <task> wrapper from built-in command content |
| src/core/tools/executeCommandTool.ts | Removes <feedback> wrapper from user feedback text |
| src/core/tools/attemptCompletionTool.ts | Removes <feedback> wrapper from completion feedback |
| src/core/task/tests/Task.spec.ts | Updates tests to expect mention processing on all text |
| src/core/task/Task.ts | Removes <task> wrapper from initial task text |
| src/core/prompts/responses.ts | Removes <feedback> wrappers from response formatting functions |
| src/core/mentions/processUserContentMentions.ts | Changes logic to process mentions in all text instead of only tagged content |
| src/core/mentions/tests/processUserContentMentions.spec.ts | Updates tests to reflect new behavior of processing all text blocks |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
All previously identified issues have been resolved. The latest commit adds defensive checks to prevent rendering undefined feedback in tool responses.
Mention @roomote in a comment to trigger your PR Fixer agent and make changes to this pull request. |
|
Removed |
|
Fixed the outdated comment. All local checks passed. |
|
Reviewed all changes across 8 files. All previously identified issues have been resolved in commits e2d57e4 and 7171bff. The PR successfully removes XML-like Mention @roomote in a comment to trigger your PR Fixer agent and make changes to this pull request. |
refactor(mentions): always process text; remove no-op gate; update docstring
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.
Implemented fixes during review: prevented undefined feedback from rendering; simplified mention processing; updated docstring. All tests pass.
Remove XML-like / wrappers; process plain user input; update code/tests
Why
What
Behavioral notes
Risks & mitigations
Testing
Intent
Files changed (high-level):
Important
Remove XML-like
<task>/<feedback>tags from user input, updating code and tests to process plain text uniformly.<task>and<feedback>tags from user input inTask.tsandprocessUserContentMentions.ts.processUserContentMentions.ts.<feedback>tag emissions from outputs inattemptCompletionTool.tsandexecuteCommandTool.ts.responses.ts.<task>wrapper in built-in command content inbuilt-in-commands.ts.processUserContentMentions.spec.tsandTask.spec.tsto reflect processing of plain text and tool_result arrays uniformly.<task>/<feedback>are treated as regular text.parseMentionsbehavior and updated tests.This description was created by
for b899f29. You can customize this summary. It will automatically update as commits are pushed.