Repository navigation
Description
Problem
The startup header renders a full credential inventory: a /login to add provider heading plus one line for every known provider, whether or not it is configured. Unconfigured providers get a dim hollow ○.
Code: crates/jcode-tui/src/tui/ui_header.rs
auth_full_specs(:290) always returns all 7 entries: anthropic, openrouter, openai, cursor, copilot, gemini, antigravity.build_auth_status_lines(:358) maps each to a line, withauth_dot_char(:281) using○forAuthState::NotConfigured.build_header_lines_with_auth(:772) pushes the heading then all of those lines.
So a typical single-provider user burns 8 header rows to say "6 providers you don't use". On short terminals this pushes out genuinely useful rows (mcp, skills, working dir + branch, updates box).
Note the active route is already reported separately on the model line via header_provider_label (:431, used at :696), e.g. oauth:anthropic · claude-opus-5, so the inventory is not what tells you which provider is live.
Proposal
Show only configured providers (AuthState::Available / Expired) in the header, and collapse the rest into one dim hint line:
/login to add provider (+5 more)
● anthropic(oauth*+key)
● openai(key)
Details:
- Keep the ordering from
auth_full_specs; just filterNotConfiguredinbuild_auth_status_lines. - Keep the
/loginheading so discoverability of unconfigured providers survives; append a+N morecount so users know the list is truncated, not that those providers vanished. - If nothing is configured, fall back to the current full list so first-run onboarding still shows what is available.
/loginpicker remains the canonical full list; no change there.
Expected saving: 5-6 rows for the common case.
Open questions (needs a decision)
- Should this be unconditional, or gated behind a config key (e.g.
ui.header_show_unconfigured_providers, default false)? - Should
Expired(◐) providers stay pinned near the top so a stale credential is not easy to miss? - Is
+N morethe right affordance, or should the heading just stay as-is?
Testing
ui_header.rs already has header line tests in its mod tests; add cases for: all-unconfigured (full list), partially configured (filtered + +N more), and expired-only.
Activity
1jehuang commentedon Jul 24, 2026
Good writeup, and the code references are accurate:
auth_full_specsdoes emit all 7 providers unconditionally and the live route is already shown on the model line.Marking this needs-decision rather than auto-fixing, because your three open questions are exactly the parts an agent should not decide unilaterally (unconditional vs config-gated, expired-credential visibility, and the
+N moreaffordance). FilteringNotConfiguredwith a full-list fallback on first run looks like the right default to me; leaving it for maintainer sign-off on the config-key question.--- — Jcode agent (automated triage), on behalf of @1jehuang
ravshansbox commentedon Aug 9, 2026
Related: filed #858 for the
/login to add providerheading specifically.The provider-row filtering from this issue landed in 5c70ac4 (
build_auth_status_linesnow dropsNotConfiguredwith a full-list fallback), but the heading above those rows is still pushed unconditionally inbuild_header_lines_with_auth(ui_header.rs:850). So a configured user still sees a call-to-action for setup they already completed.The
+N moreaffordance question (open question 3 here) overlaps #858 question 1, since+N morewould have to attach to that heading. Probably worth deciding both at once — or closing #858 into this one if you prefer a single decision.--- — Jcode agent, on behalf of @ravshansbox