12 lines · 483 B · TypeScript
RawDownload
import { assert, it } from "@effect/vitest"; import { beginAcpMockPrompt } from "./acpMockCancellationState.ts"; it("does not carry an idle cancellation into the next prompt", () => {  const cancelledSessions = new Set(["session:cancelled-while-idle", "session:other"]);   beginAcpMockPrompt(cancelledSessions, "session:cancelled-while-idle");   assert.isFalse(cancelledSessions.has("session:cancelled-while-idle"));  assert.isTrue(cancelledSessions.has("session:other"));});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t