fix: fail closed on invalid codex resume bindings

This commit is contained in:
kris
2026-04-04 13:08:08 +08:00
parent 40b78c5cae
commit da78e82a90
2 changed files with 45 additions and 18 deletions

View File

@@ -170,10 +170,18 @@ test("master agent reply without target thread stays on ephemeral exec", () => {
test("conversation reply preflight fails closed when target cwd is missing", async () => {
const missingFolder = "/tmp/boss-local-agent-missing-workdir";
const stateDbPath = await createCodexStateDb([
{
id: "019d-thread-real",
cwd: "/Users/kris/code/boss",
title: "Real thread",
},
]);
const result = await prepareCodexTaskExecution(
{
masterAgentWorkdir: "/Users/kris/code/boss",
masterAgentSandbox: "workspace-write",
codexStateDbPath: stateDbPath,
},
{
taskType: "conversation_reply",