Skip to content

Add a tool to switch modes#526

Merged
mrubens merged 1 commit intomainfrom
switch_mode_tool
Jan 24, 2025
Merged

Add a tool to switch modes#526
mrubens merged 1 commit intomainfrom
switch_mode_tool

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Jan 24, 2025

Screenshot_2025-01-24_at_2 40 03_AM

Important

Introduces switch_mode tool for mode switching with user approval, updating tool descriptions, UI, and message handling.

  • Behavior:
    • Adds switch_mode tool to allow mode switching, requiring user approval.
    • Handles switch_mode in Cline.ts for mode validation and switching logic.
  • UI:
    • Updates ChatRow.tsx to display mode switch requests and confirmations.
  • Tool Descriptions:
    • Adds getSwitchModeDescription() in switch-mode.ts for tool description.
    • Includes switch_mode in toolDescriptionMap in index.ts.
  • Tool Groups:
    • Adds switch_mode to ALWAYS_AVAILABLE_TOOLS in tool-groups.ts.
  • Messages:
    • Updates ExtensionMessage.ts to include switchMode in ClineSayTool.

This description was created by Ellipsis for d1754ca. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2025

🦋 Changeset detected

Latest commit: d1754ca

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
roo-cline Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mrubens mrubens requested a review from cte January 24, 2025 08:02
@mrubens mrubens merged commit 7c41a9c into main Jan 24, 2025
4 checks passed
@mrubens mrubens deleted the switch_mode_tool branch January 24, 2025 17:50
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.

1 participant