Skip to content

feat: unify model and thinking-effort controls into one keyboard button - #28

Merged
rubenperezrial merged 5 commits into
mainfrom
feat/unified-model-effort
Oct 5, 2026
Merged

rubenperezrial merged 5 commits into
mainfrom
feat/unified-model-effort

Conversation

@rubenperezrial

Copy link
Copy Markdown

What

Unifies the model and thinking-effort controls into a single reply-keyboard button.

  • The bottom keyboard now shows one model button carrying the active effort: 🧠 provider\nmodel · 💡 Max. The separate variant button is gone (its text pattern and route too).
  • Tapping the button opens the model list as before; picking the already-active model re-opens the variant picker (with the current variant marked). Previously this silently reset the variant to default before opening it.
  • When the picked model offers no variant choice, a toast (variant.menu.empty) explains it instead of silence; showVariantSelectionMenuAfterModelChange now reports whether it opened the picker.
  • Chore: removed a duplicated handleModelProvidersCallback definition (two identical bodies; the second silently won at runtime).

Stacked on #27 (feat/quick-project-swap) so the local deploy preview carries both; retarget to main once #27 lands.

Tests

bun run check green: lint + build + 1877 tests (0 fail). Coverage added/updated:

  • picking the already-active model opens the variant picker without re-applying the model or updating the keyboard (2 tests)
  • toast when the active model has no variant choice
  • keyboard / pattern / router tests updated for the unified label; queue dispatch still rejects reply-keyboard presses

Adds a keyboard row above the agent/context grid that switches to the other project in one tap. Target: the project the last switch moved away from (settings.swapProject), falling back to the most recently active other project. The press is allowed while the session is busy: it detaches the running session instead of blocking. i18n for all locales and PRODUCT.md updated.
The project list can return entries without a name (cached session directories), which made the swap confirmation show the full worktree path.
The bottom keyboard now shows a single model button carrying the active thinking-effort variant; the separate variant button is gone. Tapping it opens the model list as before, and picking a model still opens the variant picker after the confirmation. Picking the already-active model now re-opens the variant picker with the current variant marked instead of silently resetting it to default; when the model offers no variant choice, a toast explains it. Also updated tests and PRODUCT.md.
The provider browser callback handler was defined twice with identical bodies; the second definition silently won at runtime. Keep a single copy.
@rubenperezrial
rubenperezrial changed the base branch from feat/quick-project-swap to main October 5, 2026 14:08
@rubenperezrial rubenperezrial reopened this Oct 5, 2026
@rubenperezrial
rubenperezrial merged commit 830e304 into main Oct 5, 2026
1 check passed
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.

1 participant