feat: gate unified user message tag behind experimental setting #10724
+156
−36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR gates the unified
<user_message>tag changes (from commit 08570c0) behind an experimental VSCode setting, allowing users to opt-in while maintaining backward compatibility.Changes
New Experimental Setting:
UNIFIED_USER_MESSAGE_TAGexperiment (disabled by default)<task>,<feedback>,<answer><user_message>tag for all user content contextsImplementation:
userContentTags.tsutility module with helper functions for conditional tag formattingTask.tsto conditionally wrap task start and resume messagesAskFollowupQuestionTool.ts,AttemptCompletionTool.ts,ExecuteCommandTool.ts) to conditionally wrap feedback/answersformatResponsefunctions to acceptuseUnifiedTagparameterpresentAssistantMessage.tsto pass experiment flagReadFileTool.tsto pass experiment flagprocessUserContentMentions.tsto detect tags based on experiment settingTesting
View task on Roo Code Cloud
Important
Introduces
UNIFIED_USER_MESSAGE_TAGexperiment to toggle between unified and legacy user message tags, affecting multiple files and ensuring backward compatibility.UNIFIED_USER_MESSAGE_TAGexperiment to toggle between unified<user_message>and legacy tags (<task>,<feedback>,<answer>).userContentTags.tsfor tag handling functions likewrapUserContent()andhasUserContentTags().Task.ts,AskFollowupQuestionTool.ts,AttemptCompletionTool.ts,ExecuteCommandTool.ts, andReadFileTool.tsto conditionally use unified tags based on experiment setting.formatResponsefunctions inresponses.tsto acceptuseUnifiedTagparameter.UNIFIED_USER_MESSAGE_TAGtoexperiment.tsandexperiments.tswith default disabled state.This description was created by
for f8f631d. You can customize this summary. It will automatically update as commits are pushed.
Closes #10658
(from Linear COM-450)