Skip to content

Commit 7f75113

Browse files
committed
test(system-agent): expect native Claude CLI ownership
1 parent d89da4b commit 7f75113

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎src/system-agent/agent-turn.test.ts‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,13 @@ describe("runSystemAgentTurn", () => {
494494
},
495495
);
496496

497-
expect(runCliAgent).toHaveBeenCalledWith(
498-
expect.objectContaining({
499-
provider: "claude-cli",
500-
model: "claude-opus-4-8",
501-
agentDir,
502-
authProfileId: "anthropic:claude-cli",
503-
}),
504-
);
497+
expect(runCliAgent).toHaveBeenCalledOnce();
498+
expect(runCliAgent.mock.calls[0]?.[0]).toMatchObject({
499+
provider: "claude-cli",
500+
model: "claude-opus-4-8",
501+
agentDir,
502+
});
503+
expect(runCliAgent.mock.calls[0]?.[0].authProfileId).toBeUndefined();
505504
});
506505

507506
it("reuses the guarded CLI binding when a denied proposal becomes approved", async () => {

0 commit comments

Comments
 (0)