fix(coding-agent): fail closed on user bash hook errors (#9662)

* fix(coding-agent): fail closed on user bash hook errors

Prevent failed execution-routing hooks from falling back to the local shell.

Fixes #9068

* fix(coding-agent): validate user bash hook results

* docs(coding-agent): clarify user bash result semantics

* docs(coding-agent): streamline user bash semantics

* fix(coding-agent): strengthen user bash regressions

* docs(coding-agent): clarify user bash breaking change
This commit is contained in:
Christian Klotz 2026-09-16 17:21:17 +01:00 • committed by GitHub
parent bdee230f1e
commit 509ee2bd0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 413 additions and 14 deletions

View file

@ -909,6 +909,8 @@ pi.on("user_bash", (event, ctx) => {
});
```
Returning `undefined` continues to the next handler, then local execution if none handles the event. A valid result stops propagation: `operations` executes the command through the supplied backend, while `result` records the completed command without executing it.
### Input Events
#### input