feat(model-picker): port upstream redesign with favorites and search#47
Merged
Conversation
…arch Port T3 Code upstream commit 66c326b ("Redesign model picker with favorites and search (pingdotgg#2153)") to MarCode. Replaces the nested Menu dropdown with a Popover composed of a vertical provider sidebar and content pane with tokenized fuzzy search, favorites, and keyboard-jump shortcuts 1-9 (held under the modifier key). MarCode-specific preservations: - Claude brand orange (text-[#d97757]) tint on the trigger and sidebar icons. - PROVIDER_OPTIONS keeps claudeAgent first; opencode and cursor remain non-selectable "Coming soon" sidebar entries via the new pickerSidebarBadge field. AVAILABLE_PROVIDER_OPTIONS filters them out of the selectable list; the sidebar still renders them with Clock3Icon + tooltip. - /model slash-command now opens the new picker instead of inserting text. - modelPicker.toggle keybinding clicks the picker trigger via the data-chat-provider-model-picker attribute. - keybindings + terminalOpen props forwarded so jump labels (\u22c31-\u22c39) render immediately when the modifier is held. - @marcode/contracts import path (upstream used @t3tools/contracts). - Opencode runtime stays deleted (kept coming-soon only in UI). Regression guards (service.notification-wiring, windowState.integration) remain green. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…-picker # Conflicts: # apps/web/src/localApi.test.ts
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.
Summary
showTodosInComposersettingwhenconditions (e.g.,modelPickerOpen)Testing
ChatView.browser.tsxfor model picker toggle and jump key behaviorshortcutModifierState.test.ts(146 lines) validating modifier key trackingmodelPickerSearch.test.ts(109 lines) for search filtering logickeybindings.test.tsto verify new model picker commandsclientPersistence.test.tswith new fields (favorites,showTodosInComposer)/modelslash command opens picker and focuses search inputwhenconditions