refactor(auth): dedup cell login refresh + tidy jurisdiction test per cleanup review

Commit

jagregory2mo ago
  • Extract refreshCellLoginJWT, shared by resolveActiveContextCellSubject and resolveStoredCellSubject (was a duplicated ~12-line build-provider → call → map-ErrNotLoggedIn block).
  • Use the existing writeActiveContext test helper for the single-context TestJurisdictionToken_StoredContext seed.
  • Drop the orphaned/stale doc-comment block left stacked above TestJurisdictionToken_StoredContext.

Behavior unchanged; fmt + lint clean, tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: 01KXDCZ2NFPYHZEFQ56T24GHTY

Checkpoints

Fix Auth Token Jurisdiction Environment Derivation

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1