Skip to content

t4: with every Claude account used up and no main login, give the one that frees first (AI-99) - #16

Merged
Supermaxman merged 2 commits into
t4from
fix/ai-99-no-login-fallback
Nov 15, 2026
Merged

Supermaxman merged 2 commits into
t4from
fix/ai-99-no-login-fallback

Conversation

@Supermaxman

@Supermaxman Supermaxman commented Nov 15, 2026 •

Copy link
Copy Markdown

When every t4 Claude account is marked used up and the client has no main login (every client since 2026-11-07), pickClaudeAccount returned a token-less main; Claude answered "Not logged in · Please run /login", a failed turn nothing resumes (usa-rs: ten threads sat 17 h from 2026-11-14 12:40 PT). Now it returns the token account whose mark ends first, so Claude answers with its real limit (limit recovery marks it and resumes at the reset) or runs if the mark was stale. With a main login present, or no usable token, behaviour is unchanged.

Verified: claudeAccounts.test.ts (new case), ClaudeAdapterV2 + ScheduledTaskService suites (374 tests), server typecheck.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… that frees first (AI-99)

A token-less main made Claude answer 'Not logged in', a failed turn nothing
resumes; usa-rs threads sat 17 h so on 2026-11-14. Now Claude answers with
its real limit, which limit recovery marks and resumes at the reset.
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire — 5.0 KiB — 6.8 KiB ✅
Codex Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Codex Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Codex Live turn WebSocket decoded — 21.5 KiB — 24.4 KiB ✅
Codex Live turn messages — 1 — 8 ✅
Claude Total thread wire — 5.0 KiB — 6.8 KiB ✅
Claude Thread snapshot wire — 3.8 KiB — 4.9 KiB ✅
Claude Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Claude Live turn WebSocket decoded — 21.9 KiB — 24.4 KiB ✅
Claude Live turn messages — 1 — 8 ✅

Baseline: unavailable · PR result: ae9b619 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@Supermaxman
Supermaxman merged commit 5017b50 into t4 Nov 15, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant