fix(web): allow switching away from Ultrathink without manual prompt editing#1307
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
2fd7aff to
8a2887b
Compare
|
screenshot/video w/ before/after pls also, i considered this but the ultrathink can be anywhere in the prompt and i didn't wanna do a eager find-replace and mutate the users prompt, but aybe i was wrong |
|
@juliusmarminge here you go: Before : zen_Bfbs8zBqAN.mp4After : uFhXkFyU9R.mp4 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
c5d225d to
ad80210
Compare
…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. If "ultrathink" also appears in the user's body text, the controls stay disabled with a warning to remove it manually, preventing prompt mangling.
ad80210 to
530bc42
Compare

Summary
Ultrathink:prefix from the prompt and applies the new effort.Test plan
Ultrathink:prefixUltrathink:prefix is removed, effort switchesNote
Allow switching effort away from Ultrathink when set via prompt prefix
Ultrathink:, users can now select a different effort level; the prefix is stripped from the prompt automatically instead of being blocked.ultrathinkappears in the prompt body text (not the prefix), showing the warning: "Your prompt contains 'ultrathink' in the text. Remove it to change effort."getSelectedTraitsin TraitsPicker.tsx now distinguishes between a prefix-controlled Ultrathink andultrathinkin body text via a newultrathinkInBodyTextflag.Macroscope summarized f4ab8ff.
Note
Medium Risk
Medium risk because it changes how effort selection mutates the user prompt and model options; mistakes could unexpectedly rewrite prompts or apply the wrong effort.
Overview
Effort selection in
TraitsPickernow allows switching away from prompt-prefixedUltrathink:by automatically stripping the prefix and persisting the newly selected effort, instead of disabling the control.The UI now distinguishes between Ultrathink enabled via the prefix vs occurrences of "ultrathink" in the prompt body text (
ultrathinkInBodyText): only body-text cases disable effort changes and show a warning, and the radio group correctly highlightsUltrathinkwhen the prefix is active. Browser tests for bothTraitsPickerandCompactComposerControlsMenuwere updated and expanded to cover the new warning behavior.Written by Cursor Bugbot for commit f4ab8ff. This will update automatically on new commits. Configure here.