Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): avoid loading Codex history on resume #8629

Closedyashranaway(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8629/headopened View on GitHub

Showing 5 changed files with 30 additions and 1 deletion (loading 1).

x
0 of 5 viewed, 5 left
10 additions and 1 deletionapps/server/src/provider/Layers/CodexSessionRuntime.test.tsModified
View file
@@ -775,7 +775,7 @@
});
​
describe("openCodexThread", () => {
- it.effect("falls back to thread/start when resume fails recoverably", () =>
+ it.effect("requests metadata-only resume before falling back to thread/start", () =>
Effect.gen(function* () {
const calls: Array<{ method: "thread/start" | "thread/resume"; payload: unknown }> = [];
const started = makeThreadOpenResponse("fresh-thread");
@@ -812,6 +812,15 @@
calls.map((call) => call.method),
["thread/resume", "thread/start"],
+ NodeAssert.deepStrictEqual(calls[0]?.payload, {
+ threadId: "stale-thread",
+ excludeTurns: true,
+ cwd: "/tmp/project",
+ model: "gpt-5.3-codex",
+ approvalPolicy: "never",
+ approvalsReviewer: "user",
+ sandbox: "danger-full-access",
+ });
}),
​
1 addition and 0 deletionsapps/server/src/provider/Layers/CodexSessionRuntime.tsModified
View file