Skip to content

Commit e5714fe

Browse files
committed
fix(bridge): use synchronous hooks for Stop and PostToolUse drain
asyncRewake queues a task-notification that Claude may silently consume when idle at the REPL. Synchronous exit-2 on Stop/PostToolUse injects content directly, forcing an in-place response. UserPromptSubmit keeps asyncRewake to avoid blocking the user's prompt.
1 parent f013396 commit e5714fe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

hooks/hooks.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
{
77
"type": "command",
88
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/drain.sh",
9-
"asyncRewake": true,
109
"timeout": 5
1110
}
1211
]
@@ -19,7 +18,6 @@
1918
{
2019
"type": "command",
2120
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/drain.sh",
22-
"asyncRewake": true,
2321
"timeout": 5
2422
}
2523
]
@@ -32,6 +30,7 @@
3230
{
3331
"type": "command",
3432
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/drain.sh",
33+
"asyncRewake": true,
3534
"timeout": 5
3635
}
3736
]

0 commit comments

Comments
 (0)