Skip to content

fix(codex): reopen threads after rate-limit errors - #272

Merged
rynfar merged 3 commits into
pylonfrom
upstream/2026-09-05-codex-rate-limit
Sep 6, 2026
Merged

fix(codex): reopen threads after rate-limit errors#272
rynfar merged 3 commits into
pylonfrom
upstream/2026-09-05-codex-rate-limit

Conversation

@rynfar

@rynfar rynfar commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

A Codex thread containing a rate-limit failure can fail to reopen because the response decoder rejects rateLimitExceeded. Accept that error in read, resume, and rollback history, and keep the schema generator compatible with it.

Adopts upstream #8897 (75ab5ab3fb). Preserves Pylon's account-plan tests; unrelated async-question fixtures are excluded. The partial upstream ledger records the adoption without advancing the review cursor.

Validation: four schema tests, effect-codex-app-server typecheck, and targeted formatting/lint pass. No Pylon wire-contract or other provider changes.

The durable implementation and review record is consolidated in companion #279.

Model: GPT-6 Astra. Harness: Codex.

@github-actions github-actions Bot added size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.6 KiB 13.6 KiB +15 B (+0.1%) 15.1 KiB
Codex Thread snapshot wire 7.1 KiB 7.1 KiB 0 B (0.0%) 7.3 KiB
Codex Live turn WebSocket wire 6.5 KiB 6.5 KiB +15 B (+0.2%) 7.8 KiB
Codex Live turn WebSocket decoded 56.5 KiB 56.5 KiB 0 B (0.0%) 66.4 KiB
Codex Live turn messages 8 8 0 (0.0%) 21
Claude Total thread wire 13.6 KiB 13.6 KiB 0 B (0.0%) 15.1 KiB
Claude Thread snapshot wire 7.1 KiB 7.1 KiB +2 B (+0.0%) 7.3 KiB
Claude Live turn WebSocket wire 6.6 KiB 6.6 KiB −2 B (−0.0%) 7.8 KiB
Claude Live turn WebSocket decoded 57.3 KiB 57.3 KiB 0 B (0.0%) 66.4 KiB
Claude Live turn messages 8 8 0 (0.0%) 21

Baseline: de8d090 · PR result: fb5d8fd · 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: 111.2 KiB
  • Claude decoded thread snapshot: 111.9 KiB

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

@rynfar
rynfar force-pushed the upstream/2026-09-05-codex-rate-limit branch from e1936d9 to fb5d8fd Compare September 6, 2026 02:32
@rynfar
rynfar merged commit 9abf404 into pylon Sep 6, 2026
18 checks passed
@rynfar
rynfar deleted the upstream/2026-09-05-codex-rate-limit branch September 6, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 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.

2 participants