fix(codex): accept rate limit errors on thread resume #8897
MergednateEc(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/8897/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- packages/effect-codex-app-server/scripts/generate.ts line 211Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -194,3 +194,14 @@194194 },195195 };196196197+function applyCodex0151DefinitionCompatibility(198+ exportName: string,199+ definitionName: string,200+ definitionSchema: Schema.Json,201+): Schema.Json {202+ if (203+ exportName !== "V2ThreadResumeResponse" ||204+ definitionName !== "CodexErrorInfo" ||205+ typeof definitionSchema !== "object"206+ ) {207+ return definitionSchema;
github-actions[bot](GitHub profile, opens in a new tab) removed labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
- packages/effect-codex-app-server/src/schema.test.ts line 86OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -74,3 +74,13 @@7474 assert.equal(Schema.is(CodexSchema.V2ThreadResumeResponse)(resumeResponse), true);7575 });767677+it("accepts Codex rate limit errors for thread responses", () => {78+ const schemas = [79+ CodexSchema.V2ThreadReadResponse__CodexErrorInfo,80+ CodexSchema.V2ThreadResumeResponse__CodexErrorInfo,81+ CodexSchema.V2ThreadRollbackResponse__CodexErrorInfo,82+ ];83+84+ for (const schema of schemas) {85+ assert.equal(Schema.is(schema)("rateLimitExceeded"), true);86+ }
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID:
c28c0dcd-f3ab-4817-a24b-0d0108dd616cYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Warning
Your free Security trial is over. An organization admin can upgrade to Advanced for continuous pull request security review or dismiss this notice.
Comment `@coderabbitai help` to get the list of available commands.