Repository navigation
fix(interactive): footer names the serving account when the pin is blocked (#5983) - #6222
Conversation
|
Thanks @surlymochan. Naming the serving account is the right fix for #5983, but one regression needs fixing first. Needs a change: Smaller (can follow):
|
…iption provider The Anthropic CLI/settings pin leaked into non-Anthropic pooled providers: a slot sharing the pin's name (e.g. openai-codex "default") was named by the footer and overrode that provider's own stored pin, though its rotation never sees the Anthropic pin. Resolve the pin only when the current model uses anthropic-subscription; otherwise the stored pin stands. Adds a render-level regression test with a same-named non-Anthropic slot.
|
Thanks for the review — fixed the blocking regression:
The four smaller items are follow-ups, not in this change: |
|
Thanks @surlymochan, the blocking regression is fixed. Re-review at Fine as follow-ups:
The branch was 289 commits behind main, so I merged main into it with no conflicts, as |
|
Merged as |
Summary
Fixes #5983: the footer kept naming the pinned account after a usage-limit refusal moved every later turn to a sibling, and it ignored the settings and CLI pins.
accountFooterSuffixnow resolves the effective pin as CLI > settings > stored, and picks block-aware: a blocked pin (ablockedUntilin the future on the stored slot) is skipped for the first usable slot in the same ranking, and the suffix marks the blocked pin, e.g.@work (default blocked until 14:00). When every slot is blocked it names the top-ranked slot with a blocked marker instead of silently naming a slot that cannot serve. An expired block is treated as usable; no pin still falls back to the session's HRW winner, skipping blocked winners.FooterComponenttakes an optionalresolveAccountPinresolver; interactive mode wires it toresolveClaudeAccountPin(getSessionClaudeAccountPin(sessionId), <settings pinnedAccount>, undefined), so the stored pin stays the fallback inside the footer function. The Grok chrome footer has no account display, so there is nothing to wire there.Tests
packages/coding-agent/test/suite/regressions/issue-5983-footer-serving-account.test.ts(6 tests): blocked pin names the serving sibling with the marker; settings pin overrides the stored pin (including when the settings pin itself is blocked); a blocked HRW winner is skipped; all-blocked names the pin with a marker; an expired block is usable.footer.ts(the expired-block case passes trivially on old code, as it ignores blocks). GREEN after: 6 passed.footer-account-display,footer-account-label-coloring,footer-fast-mode-icon— 18 passed in total.bun run checkexits 0 (lint, fmt, ratchet, pinned-deps, ts-imports, conflict markers, entry graphs, locks, tsc, browser smoke).Residuals
senpi-qawas not run in this round (time-boxed wave); the change is footer rendering only, covered by the regression tests above.modelBlocks) are not considered: the footer does not know the active model at the suffix boundary, so only account-levelblockedUntilgates the pick.Summary by cubic
Fixes the interactive footer so it names the account that will actually serve: a pinned account blocked by a usage limit is skipped for the serving sibling, and CLI/settings pins now outrank the stored pin.
@work (default blocked until 14:00)); when every slot is blocked the top-ranked one is named with a blocked marker, and expired blocks count as usable.FooterComponenttakes an optional account-pin resolver that interactive mode wires to CLI > settings > stored pin resolution.anthropic-subscriptionprovider; other pooled providers keep their own stored pin even when a slot shares the pin's name.Written for commit ef63f05. Summary will update on new commits.