Repository navigation
feat(chat): simplify the composer's mode menus and hide model capability tags in production - #2211
Merged
AnishSarkar22 merged 3 commits intoOct 9, 2026
Conversation
…s only in dev The mode menu already says each model's Agentic reason, so the line under a new chat's composer repeated it. The model picker's capability label is now a dev-only badge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each mode gets a short line. An Agentic that did not pass carries a tag, and its reason or gate shows in a tooltip beside the row, as the add menu does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An open chat's menu now shows the same Basic and Agentic rows as a new chat, with its own mode checked and the other marked "New chat". The doc also says the model picker's capability tags show only in dev builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@AnishSarkar22 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (17)
✨ 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 |
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
pnpm dev, start a new chat with an untested model, open the mode menu, and hover Agentic. Then open an existing chat and use the mode menu to start a chat in the other mode. A production build should show no tags in the model picker.Why
Fixes #
How to test
High-level PR Summary
This PR refines the user interface for the chat composer's mode picker by moving Agentic capability warnings into tooltips with tags, removing the note under the composer, hiding capability labels in production builds, and unifying the mode picker behavior between new and open chats to use consistent radio button lists.
⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
docs/architecture/model-capabilities.mdsurfsense_local/frontend/src/features/chat/modes/mode-text.tssurfsense_local/frontend/src/features/chat/modes/agentic-note.tsxsurfsense_local/frontend/src/features/chat/model-picker.tsxsurfsense_local/frontend/src/features/chat/modes/mode-picker.tsxsurfsense_local/frontend/src/features/chat/chat-composer.tsxsurfsense_local/frontend/src/features/chat/modes/mode-picker.test.tsxsurfsense_local/frontend/translations/en.jsonsurfsense_local/frontend/translations/de.jsonsurfsense_local/frontend/translations/es.jsonsurfsense_local/frontend/translations/fr.jsonsurfsense_local/frontend/translations/hi.jsonsurfsense_local/frontend/translations/ja.jsonsurfsense_local/frontend/translations/ko.jsonsurfsense_local/frontend/translations/pt-BR.jsonsurfsense_local/frontend/translations/ru.jsonsurfsense_local/frontend/translations/zh-CN.json