Agent support · Hooks & Lifecycle

Interrupt hook

Runs when you interrupt the agent mid-turn (Esc or Ctrl-C) — clean up, log, or notify when a turn is cut short

Baseline Limited availability Partial in Cursor. Not in Claude Code, GitHub Copilot and OpenCode. Based on web.dev's Baseline
Observation Hooks Hooks & Lifecycle
Supported
Partial
No
Unknown
Not released
Claude Code Current · Oct 2026
Codex Current · Oct 2026
GitHub Copilot Current · Oct 2026
Cursor Current · Oct 2026
OpenCode Current · Oct 2026
0.2.31 - 2.1.311
0.150.0 - 0.164.0
0.0.374 - 1.0.103
2.4 - 3.27
0.1.30 - 1.19.4
—
0.2.0 - 0.145.0
—
0.45 - 2.0
—

Supported by 2 of 5 agents.

HoverTap any cell for version details.

Agent event mapping

  • codex Interrupt
  • cursor stop (status: aborted)

Sub-capabilities

  • Advisory: it can't undo the interrupt
  • Claude Code's Stop hook doesn't run on a user interrupt
  • Cursor reports aborted turns through the stop hook's status field