Skip to content

Unify /connect and /model into one Connect & Model picker - #106

Merged
github-actions[bot] merged 3 commits into
mainfrom
unified-connect-model-picker
Aug 1, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
unified-connect-model-picker

Conversation

@mohitranka

@mohitranka mohitranka commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replaces Overlay::ConnectPicker / Overlay::Model / Overlay::Effort with one Overlay::ConnectModel: three columns (Providers / Models / Effort), Tab cycles focus, one shared Active line — /connect and /model now read the same state and can never disagree about "current".
  • openai (API key vs. ChatGPT sign-in) and opencode (Go vs. Zen) now group under one vendor row with nested routes (new vendor_id/vendor_label/route_label on ConnectProfile), reusing the file tree's chevron expand/collapse convention.
  • Persistent header chip (provider · route/model/effort) at rest, sharing one formatter with the picker's Active line so header, picker, and /status can't drift apart.
  • Backdrop now dims the transcript in place (theme::dim_region) instead of blanking it.
  • Consolidated 4 duplicated "not connected" messages into one, and eliminated the stale "choose reasoning effort" hint bug by construction (Effort is no longer a separate overlay with its own open/close lifecycle).

Addresses the P1/P2 findings and redesign proposal in docs/usability-audit/2026-08-01/ (not included in this PR — those are report/audit artifacts, tracked separately).

Test plan

  • cargo build --workspace — clean, no warnings introduced
  • cargo test -p forge-connect — 184/184 passed
  • cargo test -p forge-tui — 658/658 passed (+ 3 perf tests)
  • Manual smoke test of /connect and /model in a live terminal (not done this session — build/test only)

View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

Replaces Overlay::ConnectPicker/Model/Effort with a single Overlay::ConnectModel
so the two commands read one shared state and can never disagree about the
current provider/model/effort. Fixes the P1/P2 findings from the 2026-08-01
usability audit (docs/usability-audit/2026-08-01/):

- Three-column picker (Providers/Models/Effort) with Tab cycling focus and a
  single "Active" line, opened by /connect (Providers focused) or /model
  (Models focused).
- openai (API key / ChatGPT sign-in) and opencode (Go / Zen) now group under
  one vendor row with nested routes, via new vendor_id/route_label fields on
  ConnectProfile; reuses the file tree's expand/collapse chevron convention.
- Persistent header chip showing provider/route/model/effort at rest, sharing
  one formatter with the picker's Active line.
- Backdrop dims the transcript in place instead of blanking it.
- Consolidated 4 duplicate "not connected" messages into one, and eliminated
  the stale "choose reasoning effort" hint bug by construction (Effort is no
  longer a separate overlay with its own open/close lifecycle).
@github-actions
github-actions Bot enabled auto-merge (squash) August 1, 2026 07:14
@github-actions
github-actions Bot merged commit 9cb40e6 into main Aug 1, 2026
7 checks passed
mohitranka added a commit that referenced this pull request Aug 21, 2026
* Unify /connect and /model into one Connect & Model picker

Replaces Overlay::ConnectPicker/Model/Effort with a single Overlay::ConnectModel
so the two commands read one shared state and can never disagree about the
current provider/model/effort. Fixes the P1/P2 findings from the 2026-08-01
usability audit (docs/usability-audit/2026-08-01/):

- Three-column picker (Providers/Models/Effort) with Tab cycling focus and a
  single "Active" line, opened by /connect (Providers focused) or /model
  (Models focused).
- openai (API key / ChatGPT sign-in) and opencode (Go / Zen) now group under
  one vendor row with nested routes, via new vendor_id/route_label fields on
  ConnectProfile; reuses the file tree's expand/collapse chevron convention.
- Persistent header chip showing provider/route/model/effort at rest, sharing
  one formatter with the picker's Active line.
- Backdrop dims the transcript in place instead of blanking it.
- Consolidated 4 duplicate "not connected" messages into one, and eliminated
  the stale "choose reasoning effort" hint bug by construction (Effort is no
  longer a separate overlay with its own open/close lifecycle).

* Fix cargo fmt violations from CI

* Fix clippy: sort_by_key and merge identical if branches
mohitranka added a commit that referenced this pull request Sep 11, 2026
* Unify /connect and /model into one Connect & Model picker

Replaces Overlay::ConnectPicker/Model/Effort with a single Overlay::ConnectModel
so the two commands read one shared state and can never disagree about the
current provider/model/effort. Fixes the P1/P2 findings from the 2026-08-01
usability audit (docs/usability-audit/2026-08-01/):

- Three-column picker (Providers/Models/Effort) with Tab cycling focus and a
  single "Active" line, opened by /connect (Providers focused) or /model
  (Models focused).
- openai (API key / ChatGPT sign-in) and opencode (Go / Zen) now group under
  one vendor row with nested routes, via new vendor_id/route_label fields on
  ConnectProfile; reuses the file tree's expand/collapse chevron convention.
- Persistent header chip showing provider/route/model/effort at rest, sharing
  one formatter with the picker's Active line.
- Backdrop dims the transcript in place instead of blanking it.
- Consolidated 4 duplicate "not connected" messages into one, and eliminated
  the stale "choose reasoning effort" hint bug by construction (Effort is no
  longer a separate overlay with its own open/close lifecycle).

* Fix cargo fmt violations from CI

* Fix clippy: sort_by_key and merge identical if branches
mohitranka added a commit that referenced this pull request Sep 11, 2026
* Unify /connect and /model into one Connect & Model picker

Replaces Overlay::ConnectPicker/Model/Effort with a single Overlay::ConnectModel
so the two commands read one shared state and can never disagree about the
current provider/model/effort. Fixes the P1/P2 findings from the 2026-08-01
usability audit (docs/usability-audit/2026-08-01/):

- Three-column picker (Providers/Models/Effort) with Tab cycling focus and a
  single "Active" line, opened by /connect (Providers focused) or /model
  (Models focused).
- openai (API key / ChatGPT sign-in) and opencode (Go / Zen) now group under
  one vendor row with nested routes, via new vendor_id/route_label fields on
  ConnectProfile; reuses the file tree's expand/collapse chevron convention.
- Persistent header chip showing provider/route/model/effort at rest, sharing
  one formatter with the picker's Active line.
- Backdrop dims the transcript in place instead of blanking it.
- Consolidated 4 duplicate "not connected" messages into one, and eliminated
  the stale "choose reasoning effort" hint bug by construction (Effort is no
  longer a separate overlay with its own open/close lifecycle).

* Fix cargo fmt violations from CI

* Fix clippy: sort_by_key and merge identical if branches
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