Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): recover Codex threads after encrypted history rejection #36643

Mergedxiangyingchang(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/36643/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 20 additions and 3 deletions (loading 4).

x
0 of 6 viewed, 6 left
18 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.tsModified
View file
@@ -7873,6 +7873,23 @@
expectedCode: "subscription_sharing_usage_limit_exceeded",
expectedMessage: "Usage settings",
+ {
+ name: "invalid-encrypted-history",
+ code: "other",
+ message: JSON.stringify({
+ error: {
+ type: "invalid_request_error",
+ code: "invalid_encrypted_content",
+ message: "Encrypted content could not be decrypted or parsed.",
+ },
+ headers: { "x-codex-turn-state": "dummy-sensitive" },
+ status: 400,
+ }),
+ notification: true,
+ expectedClass: "provider_error",
+ expectedCode: "invalid_encrypted_content",
+ expectedMessage: "encrypted conversation history",
+ },
name: "terminal-disconnection",
code: "responseStreamDisconnected",
@@ -8253,6 +8270,7 @@
assert.equal(terminal?.status, "failed");
if (terminal?.status !== "failed") return;
assert.equal(terminal.failure.class, scenario.expectedClass);
+ assert.notInclude(terminal.failure.message, "dummy-sensitive");