Skip to content

Commit 8fc6352

Browse files
grypezclaude
andcommitted
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

File tree

packages/caprock/src/structs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export const KernelSessionStruct = object({
7070
ocapUrl: string(),
7171
cwd: optional(string()),
7272
startedAt: optional(string()),
73+
lastActiveAt: optional(string()),
7374
});
7475

7576
export const LaunchSubclusterStruct = object({

0 commit comments

Comments
 (0)