From 65c79f62d2e39348be46815a90a70865ad302a31 Mon Sep 17 00:00:00 2001 From: taosher Date: Sun, 11 Oct 2026 15:11:46 +0800 Subject: [PATCH] feat(desktop): show full model id as tooltip on model switcher options Long BYOK model ids (with provider prefixes) can be clipped in the model switcher dropdown. Add a native title attribute to each option so the full model id is visible on hover. --- .changeset/model-switcher-full-name-tooltip.md | 5 +++++ apps/desktop/src/renderer/src/components/ModelSwitcher.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/model-switcher-full-name-tooltip.md diff --git a/.changeset/model-switcher-full-name-tooltip.md b/.changeset/model-switcher-full-name-tooltip.md new file mode 100644 index 00000000..04d78353 --- /dev/null +++ b/.changeset/model-switcher-full-name-tooltip.md @@ -0,0 +1,5 @@ +--- +"@open-codesign/desktop": patch +--- + +Show the full model id as a hover tooltip on each option in the model switcher dropdown, so long BYOK model names (which include the provider prefix) are fully readable. diff --git a/apps/desktop/src/renderer/src/components/ModelSwitcher.tsx b/apps/desktop/src/renderer/src/components/ModelSwitcher.tsx index 8f72f400..d899f8b1 100644 --- a/apps/desktop/src/renderer/src/components/ModelSwitcher.tsx +++ b/apps/desktop/src/renderer/src/components/ModelSwitcher.tsx @@ -304,6 +304,7 @@ export function ModelSwitcher({ variant }: ModelSwitcherProps) { type="button" role="option" aria-selected={isActive} + title={m} onClick={() => void switchModel(m)} className={`relative w-full text-left px-[var(--space-3)] py-[var(--space-1_5)] text-[12px] [overflow-wrap:anywhere] transition-colors ${ isActive