chore(quality): rebaseline tokenHealthCheck.ts for the Claude soft-fail refresh fix

src/lib/tokenHealthCheck.ts grows from 1214 to 1221 lines, past the frozen
ceiling of 1218 (which had only 4 lines of headroom). The growth is the fix
itself: preserving the refresh_token and telling a transient failure apart
from a dead credential needs extra state on the sweep path, which cannot
leave the module without breaking its internal API.

Covered by tests/unit/tokenHealthCheck-claude-refresh-token-preserved.test.ts;
the 14 sibling tokenHealthCheck/credentialHealth test files were run together
on the combined tree (72/72).

Co-authored-by: RaviTharuma <25951435+RaviTharuma@users.noreply.github.com>
This commit is contained in:
diegosouzapw
2026-09-16 22:59:29 -03:00
parent b08bfc4455
commit d9164886a7

View File

@@ -1,4 +1,5 @@
{
"_rebaseline_2026_09_17_13185_claude_oauth_sticky_refresh": "PR #13185 (@RaviTharuma): soft-fail do refresh do Claude para CredentialHealth nao ficar sticky-dead. src/lib/tokenHealthCheck.ts 1214 (tip) -> 1220 na branch e 1221 na arvore combinada com #13426; teto fixado em 1221. O teto anterior (1218) tinha apenas 4 linhas de folga. O crescimento e o proprio fix: preservar o refresh_token e distinguir falha transitoria de credencial morta exige estado extra no caminho de sweep, que nao pode sair do modulo sem quebrar a API interna. Coberto por tests/unit/tokenHealthCheck-claude-refresh-token-preserved.test.ts; os 14 arquivos irmaos de tokenHealthCheck/credentialHealth foram rodados juntos (72/72).",
"_rebaseline_2026_09_15_13572_combined_growth": "Combined growth of the 2026-09-15 maxmad64bis uplift batch (each PR rebaselined its own growth; the merged sum is larger): open-sse/executors/base.ts->1754. Every hunk is flag-gated or a verified fix covered by that PR's tests; see the batch report.",
"_rebaseline_2026_09_15_13445_combined_growth": "Combined growth of the 2026-09-15 maxmad64bis uplift batch (each PR rebaselined its own growth; the merged sum is larger): open-sse/utils/proxyFetch.ts->1296. Every hunk is flag-gated or a verified fix covered by that PR's tests; see the batch report.",
"_rebaseline_2026_09_15_13643_combined_growth": "Combined growth of the 2026-09-15 maxmad64bis uplift batch (each PR rebaselined its own growth; the merged sum is larger): open-sse/executors/codex.ts->1528. Every hunk is flag-gated or a verified fix covered by that PR's tests; see the batch report.",
@@ -493,7 +494,7 @@
"src/lib/db/core.ts": 1770,
"src/lib/db/migrationRunner.ts": 1206,
"src/lib/tailscaleTunnel.ts": 1208,
"src/lib/tokenHealthCheck.ts": 1218,
"src/lib/tokenHealthCheck.ts": 1221,
"src/shared/components/RequestLoggerV2.tsx": 1718,
"src/shared/constants/providers/apikey/gateways.ts": 1502,
"src/shared/services/cliRuntime.ts": 1296,