Skip to content

fix(tui): open variant dialog for selected model#28024

Open
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/27893-model-variant-dialog
Open

fix(tui): open variant dialog for selected model#28024
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/27893-model-variant-dialog

Conversation

@mturac
Copy link
Copy Markdown

@mturac mturac commented May 17, 2026

Issue for this PR

Closes #27893

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

When a model is selected from /models, the follow-up variant check now reads variants for that selected provider/model instead of relying on the current model memo. This lets reasoning-effort models open the variant picker when no saved choice exists, while keeping saved choices closed.

How did you verify your code works?

  • bun test test/cli/cmd/tui/dialog-model.test.ts --timeout 30000
  • bun typecheck
  • bunx prettier --check src/cli/cmd/tui/context/local.tsx src/cli/cmd/tui/component/dialog-model.tsx test/cli/cmd/tui/dialog-model.test.ts
  • git diff --check
  • pre-push: bun turbo typecheck

Screenshots / recordings

N/A; behavior covered by the targeted dialog selection test.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: TUI doesn't ask for reasoning effort when switching models

1 participant