-
Notifications
You must be signed in to change notification settings - Fork 575
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
feat: add next step suggestions and XML utilities #1084
base: main
Are you sure you want to change the base?
Conversation
|
src/core/Cline.ts
Outdated
parsedSuggest = parseXml(next_step, ["next_step.suggest"]) as { | ||
suggest: Suggest[] | Suggest | ||
} | ||
console.log("next_step", next_step) |
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.
this will remove before merge
<span | ||
className="codicon codicon-question" // TODO: change icon | ||
style={{ color: normalColor, marginBottom: "-1.5px" }}></span>, | ||
<span style={{ color: normalColor, fontWeight: "bold" }}>Roo has suggest prompt:</span>, |
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.
Typo: The text 'Roo has suggest prompt:' seems off. Consider updating it to a more grammatically correct phrase such as 'Roo has a suggestion prompt:' or 'Roo suggests a prompt:' to improve clarity.
<span style={{ color: normalColor, fontWeight: "bold" }}>Roo has suggest prompt:</span>, | |
<span style={{ color: normalColor, fontWeight: "bold" }}>Roo has a suggestion prompt:</span>, |
ec14df6
to
7716989
Compare
- Add NextStepSuggest component for displaying suggested next steps - Add XML utilities for improved XML parsing - Update ChatView and ChatRow to handle next step suggestions - Add fast-xml-parser dependency - Update package dependencies update snapshoot feat(ui): enhance next step suggestions UX and documentation - Improve next step UI with collapsible view and show more/less toggle - Add type validation and error handling for suggestion parsing - Update documentation with clearer formatting guidelines and examples - Enhance button styling and accessibility for better user interaction update snapshot refactor: move next step suggestions into chat row for better UX feat: enhance next step suggestions with mode selection - Make next_step parameter required in attempt_completion tool - Update suggestion format to include task and mode fields - Enhance UI to display mode alongside task description - Update parsing logic to handle new suggestion format - Improve error handling for missing or invalid suggestions refactor(NextStepSuggest): improve component with shadcn UI and better styling - Replace native buttons with shadcn Button component - Increase button dimensions for better readability - Add proper text wrapping and overflow handling - Style mode text as VSCode badge - Improve hover and active states - Maintain VSCode theming integration - Show 3 suggestions in non-expanded mode
- Remove next_step_suggest from experiments - Make next step suggestions a required parameter in attempt_completion - Update documentation to reflect next step suggestions as core functionality - Remove experimental conditionals from objective and rules sections
7716989
to
e58f27f
Compare
…e isolation - Add expand/collapse functionality to show more/less suggestions - Implement instance-specific state management via instanceId prop - Add Show More/Less button with suggestion count - Improve accessibility with ARIA labels - Add Lucide icons for visual indicators
Description
This feature suggest for user next step and make user use new_task tool more easy, can help user control task (and cost indirectly way) more efficient
Type of change
How Has This Been Tested?
Checklist:
Additional context
Related Issues
Reviewers
Important
This PR adds a feature for suggesting next steps using a new component and XML utilities, updating several components and files to integrate these features.
NextStepSuggest
component inNextStepSuggest.tsx
for displaying suggested next steps.ChatView.tsx
andChatRow.tsx
to handlenext_step_suggest
messages.fast-xml-parser
dependency inpackage.json
for XML parsing.parseXml()
function inxml.ts
for XML parsing with error handling.getObjectiveSection()
inobjective.ts
andgetRulesSection()
inrules.ts
to include next step suggestions.getAttemptCompletionDescription()
inattempt-completion.ts
to describenext_step
parameter.ToolArgs
intypes.ts
to includeexperiments
parameter.NEXT_STEP_SUGGEST
toEXPERIMENT_IDS
inexperiments.ts
.next_step_suggest
toClineAsk
andClineSay
inExtensionMessage.ts
.This description was created by
for 38616db. It will automatically update as commits are pushed.