Commit 0c0bc73
test(caprock): assert KernelSessionStruct accepts the session.create response
Guards the caprock RPC boundary against drifting from the daemon's
`session.create` / `session.list` response shape. The struct is a strict
`object()`, so an undeclared field makes `assert(result, KernelSessionStruct)`
in `createKernelSession` throw — which silently breaks the SessionStart and
PreToolUse hooks (native permission prompts, no TUI routing).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 2681e5e commit 0c0bc73
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments