Skip to content
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

Debugger mode #1113

Merged
merged 6 commits into from
Feb 22, 2025
Merged

Debugger mode #1113

merged 6 commits into from
Feb 22, 2025

Conversation

mrubens
Copy link
Collaborator

@mrubens mrubens commented Feb 22, 2025

Important

Introduces a new 'debug' mode and 'power steering' experiment, with updates to mode handling and extensive testing.

  • New Debug Mode:
    • Adds debug mode to modes.ts with specific role and instructions for debugging tasks.
    • Updates Cline.ts to include debug mode details in the environment context.
  • Experiments:
    • Adds POWER_STEERING experiment to experiments.ts.
    • Tests for POWER_STEERING in experiments.test.ts.
  • Tests:
    • Adds tests for debug mode in modes.test.ts.
    • Mocks and tests in ClineProvider.test.ts for handling custom instructions and mode switching.

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

Copy link

changeset-bot bot commented Feb 22, 2025

🦋 Changeset detected

Latest commit: c009095

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

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 22, 2025
// If we have cwd, load and combine all custom instructions
let fullCustomInstructions = baseCustomInstructions
if (options?.cwd) {
fullCustomInstructions = await addCustomInstructions(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In getFullModeDetails, the call to addCustomInstructions combines base and global instructions. Consider adding error handling for potential promise rejections from addCustomInstructions.

@mrubens mrubens merged commit 655b3a1 into main Feb 22, 2025
4 of 6 checks passed
@mrubens mrubens deleted the debugger_mode branch February 22, 2025 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant