fix: fail closed on invalid codex resume bindings
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user