sessionStart hook ignores continue: false

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In both the IDE and CLI, I can’t seem to get "continue": false to do anything when returned by sessionStart. So far as I can tell from documentation it’s expected to stop the session creation, but in both contexts it seems to silently ignore this and proceed. Within the IDE I can see that the hook ran and returned what I expect within the Hooks pane of the settings, but it doesn’t seem to actually do anything with the result.

Steps to Reproduce

Create a sessionStart hook that does something like echo '{ "continue": false }', and start a session (it should then stop, but continues as though no hook were present or continue was true).

Expected Behavior

The hooks docs say that continue will be interpreted as: Whether to continue with session creation. If false, the session will not be created. Default: true. By setting it to false, I would expect the session to not be created and for any provided user_message to be displayed (this also doesn’t appear to work).

Operating System

MacOS

Version Information

CLI: 2026.01.23-916f423

IDE:
Version: 2.4.21
VSCode Version: 1.105.1
Commit: dc8361355d709f306d5159635a677a571b277bc0
Date: 2026-01-22T16:57:59.675Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

This is a known issue. The continue: false option in sessionStart hooks currently doesn’t work as documented. I’ve passed it on to the team.

Same for user_message. There are a few similar reports from other users:

Let me know if you find a working workaround.

1 Like