Repository navigation
feat(model-database): copy or switch model on Enter (#1310) - #1356
Conversation
nc-review: comments — 1 nit@rohanshrma222 — a few things worth a look, none blocking. The PR wires Enter on a highlighted model in ⚪ nit · Issue #1310 lists 🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
|
Thanks for the PR @rohanshrma222 |
Description
Pressing Enter on a highlighted model in /model-database now does something useful instead of just closing the panel: it copies the model's ID to the clipboard, and if the active provider is OpenRouter, it also switches the session to that model immediately (reusing the same handleModelSelect path as /model, including its confirmation toast). The footer hint updates to show Copy & Switch vs Copy ID depending on context. Closes #1310.
Type of Change
Changeset
Testing
Automated Tests
Manual Testing
Checklist
Checklist