Share Codex sessions across orchestration threads

- Track explicit thread-to-session bindings and detach without stopping siblings
- Apply runtime settings per Codex thread and filter multiplexed events by turn
- Add migration, projection, lifecycle, and concurrency coverage
This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-08-14 11:22:52 +02:00
1 parent 12173fe8e9
commit 27da49519f
30 files changed
+1798 -358

No files matched your search

@@ -240,6 +240,23 @@ function normalizeReplayFrame(value: unknown): unknown {
normalized.params = params;
}
if (
(normalized.method === "thread/start" ||
normalized.method === "thread/resume" ||
normalized.method === "thread/fork") &&
typeof normalized.params === "object" &&
normalized.params !== null
) {
// Runtime-scoped thread settings are supplied by the host and commonly
// contain machine-local cwd and short-lived MCP authorization headers.
// They are orthogonal to the recorded provider protocol behavior.
const params = { ...(normalized.params as Record<string, unknown>) };
delete params.cwd;
delete params.model;
delete params.config;
normalized.params = params;
}
return normalized;
}