From 880199697e9f80a04f71cac0f9f3907d30917daf Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Mon, 27 Jul 2026 19:32:30 -0700 Subject: [PATCH] fix: Cursor notify pattern covers every dispatchable event type cursor[bot]: the background-terminal notify regex predated variant_mount_failed (and manual_edit_apply / prefetch), so on Cursor a failed mount exited the one-shot poll without waking the agent and the error card sat unanswered. The pattern now lists every type the dispatch loop handles. This work was produced with AI assistance (Claude Code). Co-Authored-By: Claude Code --- skill/reference/live.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skill/reference/live.md b/skill/reference/live.md index 22f7999d9..cd77e2aea 100644 --- a/skill/reference/live.md +++ b/skill/reference/live.md @@ -23,7 +23,7 @@ Execute in order. No step skipped, no step reordered. Every tool output in live Harness policy: - **Claude Code**: run the poll as a **background task** (no short timeout); the harness notifies you on completion. Do not block the shell. -- **Cursor**: **one-shot** poll in a **background terminal** with notify on `"type":"(steer|generate|accept|discard|exit)"`; handle, `--reply`, restart the poll. Do **not** use `--stream` on Cursor (measured ~5s pickup vs sub-second one-shot). +- **Cursor**: **one-shot** poll in a **background terminal** with notify on `"type":"(steer|generate|accept|discard|manual_edit_apply|variant_mount_failed|prefetch|exit)"`; handle, `--reply`, restart the poll. Do **not** use `--stream` on Cursor (measured ~5s pickup vs sub-second one-shot). - **Codex**: default one-shot poll in a **yielded foreground exec session**. No `&`, no `--stream`, never leave Live without an active foreground poll. Starting the poll is not enough: SERVICE it (keep reading the exec session until it returns an event). Never announce "waiting for the user" and idle; a yielded poll nobody reads is a dead session, and the user's Go sits unanswered. - **Other harnesses**: one-shot foreground unless you know stdout reliably returns when a shell exits.