The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 13:30 UTC
fix(server): stop leaving Codex plan items running after their run (#22617)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
grey-tsosie committed
Nov 14, 2026 at 13:48 UTC
52074e92585c07ebbf9b21143431f88784705466
2 files changed
+10
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
+2
@@ -4836,6 +4836,8 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
4836
context,
4837
nativeItemId: `turn-plan:${payload.turnId}`,
4838
status: "active",
4839
+ // Each update is a complete snapshot; nothing later completes the item.
4840
+ completed: true,
4841
...(explanation === undefined ? {} : { explanation }),
4842
steps,
4843
});
apps/server/src/orchestration-v2/testkit/fixtures/todo_list/codex_output.ts
+8
@@ -36,4 +36,12 @@ export function assertTodoListOutput(
36
todoLists.at(-1)?.steps.map((step) => step.status),
37
["completed", "completed", "completed"],
38
);
39
+ // A completed run must not leave its plan snapshot items running.
40
+ assert.deepEqual(
41
+ projection.turnItems
42
+ .filter((item) => item.type === "todo_list")
43
+ .map((item) => item.status)
44
+ .filter((status) => status !== "completed"),
45
+ [],
46
+ );
47
}