Commit 8fc6352
fix(caprock): accept lastActiveAt in KernelSessionStruct
The daemon's `session.create` and `session.list` responses include
`lastActiveAt` (added to power the TUI's recency buckets), but the strict
`KernelSessionStruct` did not declare it, so `assert(result, KernelSessionStruct)`
in `createKernelSession` rejected every response. That failure propagated out of
the SessionStart and PreToolUse hooks, which then produced no decision — Claude
Code fell back to its native permission prompt and nothing routed through the
TUI. Declare `lastActiveAt` as an optional field to match the response.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0c0bc73 commit 8fc6352
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
0 commit comments