Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/tui/src/context/local.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
selected() {
const m = currentModel()
if (!m) return undefined
// Prefer agent-configured variant so TAB-cycling between agents
// that share the same model shows the correct variant.
const a = agent.current()
if (a?.model?.variant) return a.model.variant
const key = `${m.providerID}/${m.modelID}`
return modelStore.variant[key]
},
Expand Down
Loading