Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): pause Codex goals before stopping turns #10447

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

Showing 3 changed files with 92 additions and 0 deletions.

x
0 of 3 viewed, 3 left
25 additions and 0 deletionsapps/server/src/provider/Layers/CodexCollabRuntime.integration.test.tsModified
View file
@@ -615,16 +615,21 @@
onlyFirstTurnStarts: true,
turnIds: [activeTurnId, queuedTurnId],
expectedActiveTurnId: activeTurnId,
+ goalStatus: "active",
+ recordControlRequests: true,
notifications: [],
// @effect-diagnostics-next-line preferSchemaOverJson:off
NodeFS.writeFileSync(scriptPath, JSON.stringify(script), "utf8");
const interruptsPath = `${scriptPath}.interrupts`;
+ const controlPath = `${scriptPath}.control`;
NodeFS.rmSync(interruptsPath, { force: true });
+ NodeFS.rmSync(controlPath, { force: true });
yield* Effect.addFinalizer(() =>
Effect.sync(() => {
NodeFS.rmSync(scriptPath, { force: true });
NodeFS.rmSync(interruptsPath, { force: true });
+ NodeFS.rmSync(controlPath, { force: true });
}),
​
@@ -649,6 +654,26 @@
threadId: ROOT,
turnId: activeTurnId,
});
+ const controlRequests = NodeFS.readFileSync(controlPath, "utf8")
+ .trim()
+ .split("\n")