Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(claude): poll the signal dir so in-file hook appends aren't missed

enese8f6a827a404
diff --git a/src/main/claude-hooks.ts b/src/main/claude-hooks.ts
index 3bfce3cad..9d0bd8b23 100644
--- a/src/main/claude-hooks.ts
+++ b/src/main/claude-hooks.ts
@@ -126,4 +126,7 @@ export function initClaudeHooks(win: BrowserWindow): void {
} catch (e) {
console.error('[claude-hooks] watch failed', e)
}
+ // Poll as well: fs.watch on a directory can miss in-file appends on macOS, which would
+ // make us see SessionStart but miss the later Stop. Polling a few tiny files is cheap.
+ setInterval(scan, 800)
}