chore: release v2.1.13-beta.2 (#496) (#497) - #498
Conversation
Prerelease that ships the cascade OAuth token-invalidation fix from issue #495 to npm under the `beta` dist-tag: the 401 handler now detects explicit token-invalidation responses and returns them to the client instead of rotating through every account (the rotation itself was tripping OpenAI's anti-abuse detection and invalidating accounts in sequence). Invalidated accounts get a monotonic 5-minute cooldown, session affinity is cleared, and both invalidation exit paths emit a consistent token_invalidated error body. Also adds a configurable minRotationIntervalMs sticky window. Carries forward multi-workspace support (beta.1) and the pinned-account 503 diagnostic (beta.0). Stable v2.1.13 will land once the issue #486 root cause is identified and patched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting 📝 WalkthroughThis is a low-severity release PR that publishes prerelease v2.1.13-beta.2 to the npm Changes:
Walkthroughversion fields bumped across ChangesRelease v2.1.13-beta.2
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes this is a version bump and documentation-only pr. manifest fields are straightforward. release notes describe design decisions already implemented elsewhere (per the context), so no code changes to validate here. flag: the release notes describe sophisticated behavior around token invalidation cooldown and session affinity clearing, but this pr contains zero implementation or test code changes. if the actual runtime changes for issue Possibly related PRs
Suggested labels
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Release prerelease v2.1.13-beta.2 to the
betadist-tag. Bumps from the latest published version (2.1.13-beta.1) and ships the cascade OAuth token-invalidation fix for issue #495 (PRs #496, #497), already merged tomain.Stable
latest(2.1.12) is unchanged; stablev2.1.13remains gated on the issue #486 root cause.What ships
minRotationIntervalMssticky window.{ error: { message, code: "token_invalidated" } }body across both invalidation exit paths via a shared builder.Version bump (4 locations + 2 doc links)
package.json/package-lock.json(root +packages[""]) →2.1.13-beta.2.codex-plugin/plugin.json→2.1.13-beta.2docs/releases/v2.1.13-beta.2.md— new release notesREADME.md+docs/README.md— prerelease links repointedVerification
tsc --noEmit: cleannpm run build(theprepublishOnlygate): cleanvitest run --maxWorkers=1)beta.1references (except intentional carry-forward prose)Publish (after merge)
🤖 Generated with Claude Code
note: greptile review for oc-chatgpt-multi-auth. cite files like
lib/foo.ts:123. confirm regression tests + windows concurrency/token redaction coverage.Greptile Summary
pure version bump from
2.1.13-beta.1to2.1.13-beta.2shipping the cascade oauth token-invalidation fix (prs #496 and #497, already merged tomain). all four version locations are consistent and the release notes accurately document the monotonic cooldown, session-affinity clear, shared body builder, andminRotationIntervalMssticky window.package.json,package-lock.json(both root andpackages[""]entries), and.codex-plugin/plugin.json— no straybeta.1references in versioned fields.docs/releases/v2.1.13-beta.2.mdcorrectly describes the invalidation detection heuristics, the 5-minute cooldown env var (CODEX_AUTH_TOKEN_INVALIDATION_COOLDOWN_MS), and calls out the still-open [bug] 503 Service Unavailable #486 503 gap as a known limitation.Confidence Score: 5/5
safe to merge — only version fields and documentation change; no source code, no token handling, no filesystem operations modified in this pr.
all four version locations are updated consistently, the lock file both root and packages[""] entries match, and the release notes accurately reflect the fixes already shipped in #496 and #497. nothing in this pr touches the runtime, auth flow, or any token handling path.
no files require special attention — all changes are mechanical version bumps or documentation.
Important Files Changed
Sequence Diagram
sequenceDiagram participant C as Client participant P as Rotation Proxy participant OAI as OpenAI API C->>P: POST /v1/responses (account A token) P->>OAI: forward with account A OAuth token OAI-->>P: 401 authentication token has been invalidated P->>P: detect invalidation phrase in body P->>P: apply 5-min monotonic cooldown on account A P->>P: clear session affinity for key P-->>C: "401 { error: { message, code: token_invalidated } }" Note over P: no cascade rotation — stops here C->>P: next request (new session) P->>P: select healthy account B (A still in cooldown) P->>OAI: forward with account B OAuth token OAI-->>P: 200 OK P->>P: refresh minRotationIntervalMs anchor for account B P-->>C: 200 OK (streamed)Reviews (1): Last reviewed commit: "chore: release v2.1.13-beta.2 (#496) (#4..." | Re-trigger Greptile