Skip to content

Commit 1e782a8

Browse files
committed
🐛 Assert the session and output-file tripwires on the --run= refusal (#260)
The refusal has to prove authorship never began, and the two tripwires that say so most directly were implied rather than asserted. A provider count of zero already rules out an established session, but the claim worth making is the narrow one: no session was established, and no directory was made for one to run in. The absence of an output file was likewise folded into an empty working directory rather than stated. Evidence only: no behaviour, no message and no other case changed. Claude-Session: https://claude.ai/code/session_015HcqB9kJM9KFnMNToAuZF6
1 parent 944c734 commit 1e782a8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎packages/cli/tests/prompt-cli.test.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,14 @@ describe(
244244
"or leave it out to write the Plan",
245245
]);
246246
// Every phase after preflight stayed at zero: no catalog, no provider,
247-
// no session, no turn, no review, no execution.
247+
// no turn, no review, no execution.
248248
expect(untouched(harness)).toEqual(NOTHING);
249-
// And nothing durable exists — neither the journal it named nor
250-
// anything else.
249+
// No prompt-profile session was opened either — neither established
250+
// with the provider nor given a directory to run in.
251+
expect(harness.fake.ensured).toEqual([]);
252+
expect(yield* until(readdir(profileRoot))).toEqual([]);
253+
// And nothing durable exists — neither the journal it named, nor an
254+
// output file, nor anything else.
251255
expect(yield* exists(journal)).toBe(false);
252256
expect(yield* until(readdir(dir))).toEqual([]);
253257
});

0 commit comments

Comments
 (0)