Skip to content

Commit bd38fb6

Browse files
only21milclaude
andcommitted
test(client-runtime): prove a zero exit code outranks the failure flag
The regression fixture now sets outputIndicatesFailure alongside exitCode 0, so checking the flag first fails the test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 1dedd33 commit bd38fb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/client-runtime/src/work-log/presentation.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe("workEntryIndicatesToolFailure", () => {
7676
itemType: "command_execution",
7777
toolLifecycleStatus: "completed",
7878
command: 'rg -n "ENOENT|exit code" logs fixtures',
79-
structuredPayload: commandItem({ output, exitCode: 0 }),
79+
structuredPayload: commandItem({ output, exitCode: 0, outputIndicatesFailure: true }),
8080
};
8181
expect(workEntryIndicatesToolFailure(entry)).toBe(false);
8282
expect(workEntryDisplayIndicatesToolFailure(entry)).toBe(false);

0 commit comments

Comments
 (0)