Skip to content

fix(web): allow switching away from Ultrathink without manual prompt editing#1307

Open
Marve10s wants to merge 1 commit intopingdotgg:mainfrom
Marve10s:fix/ultrathink-effort-switching
Open

fix(web): allow switching away from Ultrathink without manual prompt editing#1307
Marve10s wants to merge 1 commit intopingdotgg:mainfrom
Marve10s:fix/ultrathink-effort-switching

Conversation

@Marve10s
Copy link
Contributor

@Marve10s Marve10s commented Mar 22, 2026

Summary

  • When Ultrathink was active, the effort dropdown was fully disabled and showed "Remove Ultrathink from the prompt to change effort." — forcing the user to manually edit the prompt to switch effort levels.
  • Now selecting a different effort level automatically strips the Ultrathink: prefix from the prompt and applies the new effort.
  • The radio group correctly highlights "Ultrathink" when it's active via the prompt.

Test plan

  • Select Claude Opus/Sonnet, choose Ultrathink from effort dropdown — prompt gets Ultrathink: prefix
  • While Ultrathink is active, select a different effort (e.g. High) — Ultrathink: prefix is removed, effort switches
  • Re-select Ultrathink — prefix is added back
  • Verify compact composer controls menu behaves the same way

Note

Allow switching away from Ultrathink effort without manual prompt editing

  • When Ultrathink is active via a prompt prefix, the Effort menu is now fully interactive instead of showing a disabled state with an instructional message.
  • Selecting a non-Ultrathink effort strips the ultrathink prefix from the prompt (case-insensitive, word-boundary regex) and applies the new effort setting via onPromptChange.
  • Selecting the Ultrathink effort inserts the prompt prefix as before.
  • Behavioral Change: the handleEffortChange callback in ClaudeTraitsPicker.tsx no longer early-returns when ultrathinkPromptControlled is true, so prompt mutation now happens automatically on effort switch.

Macroscope summarized 8a2887b.

@coderabbitai
Copy link

coderabbitai bot commented Mar 22, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: d8e3bc5c-3d67-4159-be85-32d2925c5337

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can generate a title for your PR based on the changes with custom instructions.

Set the reviews.auto_title_instructions setting to generate a title for your PR based on the changes in the PR with custom instructions.

@github-actions github-actions bot added size:S 10-29 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list. labels Mar 22, 2026
…prompt editing

When Ultrathink was active, the effort dropdown was fully disabled,
requiring the user to manually remove the "Ultrathink:" prefix from the
prompt. Now selecting a different effort level automatically strips the
prefix and applies the new effort.
@Marve10s Marve10s force-pushed the fix/ultrathink-effort-switching branch from 2fd7aff to 8a2887b Compare March 22, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant