Repository navigation
PR2 of #136: zero-state onboarding correctness fixes - #221
Merged
Merged
Conversation
- Cancelling an in-flight OAuth device-code flow via Esc now stops the background poll (clears connect.oauth_pending/oauth_last_poll), so a cancelled attempt can never silently complete afterward and mark the route connected. - The first-ever successful connection now auto-selects a default model and effort and lands directly in steady state, instead of forcing the model picker open. A routine additional/re-connect (already at least one connected route) keeps today's picker hand-off unchanged. - The onboarding overlay (Overlay::Help / welcome()) now dims the transcript behind it instead of fully blanking it, matching the existing ConnectModel picker's treatment.
This was referenced Aug 4, 2026
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
- Cancelling an in-flight OAuth device-code flow via Esc now stops the background poll (clears connect.oauth_pending/oauth_last_poll), so a cancelled attempt can never silently complete afterward and mark the route connected. - The first-ever successful connection now auto-selects a default model and effort and lands directly in steady state, instead of forcing the model picker open. A routine additional/re-connect (already at least one connected route) keeps today's picker hand-off unchanged. - The onboarding overlay (Overlay::Help / welcome()) now dims the transcript behind it instead of fully blanking it, matching the existing ConnectModel picker's treatment.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
- Cancelling an in-flight OAuth device-code flow via Esc now stops the background poll (clears connect.oauth_pending/oauth_last_poll), so a cancelled attempt can never silently complete afterward and mark the route connected. - The first-ever successful connection now auto-selects a default model and effort and lands directly in steady state, instead of forcing the model picker open. A routine additional/re-connect (already at least one connected route) keeps today's picker hand-off unchanged. - The onboarding overlay (Overlay::Help / welcome()) now dims the transcript behind it instead of fully blanking it, matching the existing ConnectModel picker's treatment.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
- Cancelling an in-flight OAuth device-code flow via Esc now stops the background poll (clears connect.oauth_pending/oauth_last_poll), so a cancelled attempt can never silently complete afterward and mark the route connected. - The first-ever successful connection now auto-selects a default model and effort and lands directly in steady state, instead of forcing the model picker open. A routine additional/re-connect (already at least one connected route) keeps today's picker hand-off unchanged. - The onboarding overlay (Overlay::Help / welcome()) now dims the transcript behind it instead of fully blanking it, matching the existing ConnectModel picker's treatment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Second of a phased PR sequence implementing #136 (provider/model/effort picker redesign). PR1 (#215, merged) shipped effort-request wiring, background catalog fetch, and the persistent footer control.
Investigation found most of zero-state onboarding already works today: a welcome overlay auto-opens on a disconnected launch, Enter on it opens the connect picker with "Step 1 of 2" feedback, the picker's Providers column already lists every vendor with correct connected/current tags and dispatches to the right auth flow (API key / OAuth / env / Ollama reachability, unchanged), and a disconnected send attempt gives clear feedback while preserving typed text. None of that needed rebuilding.
Three concrete gaps against the issue's acceptance criteria, fixed here:
connect.oauth_pending, andpoll_oauth_tickruns unconditionally every event-loop tick — so a device code completing after the user cancelled would still connect them. Now clearingoauth_pending/oauth_last_pollon close.connected_profiles().len() == 1, no new state needed), auto-select a default model + effort and land directly in steady state. A routine additional/re-connect (already ≥1 connected route) keeps today's picker hand-off — that's a deliberate browse, not onboarding.Overlay::Help/welcome()now dims the background likeConnectModelalready does, instead of fully blanking it.Test plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --locked -- -D warnings(ran locally this time — PR1's first CI push missed this)cargo test -p forge-tui --lib(736 passed)cargo test -p forge-connect --lib(184 passed)cargo test --workspace --all-targets --locked— all green except the same pre-existing, unrelatedforge-config::permissionsfailure documented as environmental in PR1 (this dev machine's real local config leaking into unisolated tests; zero diff to that crate).