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.

docs(hooks): scope the #195 claim to a defense-in-depth follow-up

Claude Codea7158cc6231f
diff --git a/src/core/agents/hook-server.ts b/src/core/agents/hook-server.ts
index 60955d4f5..94c442a24 100644
--- a/src/core/agents/hook-server.ts
+++ b/src/core/agents/hook-server.ts
@@ -223,9 +223,11 @@ class HookServer {
* in the handler reads `remoteAddress`), so the socket is never an auth bypass. Two reasons it
* exists: it lets a sandboxed macOS Codex regain hook connectivity via codex's
* `network.allow_unix_sockets` allowlist (the TCP loopback can never be allowlisted), and it
- * pays down #195's debt that ANY local user could reach the TCP port at all (the socket lives
- * in a 0700 dir at 0600). The TCP listener STAYS: existing tmux panes hold pre-socket env, and
- * the Linux codex sandbox blocks unix sockets anyway. Best-effort: if the socket cannot bind,
+ * gives local traffic a filesystem-permissioned path (0700 dir, 0600 socket) that a
+ * defense-in-depth follow-up to #195 can eventually make the ONLY door. It does not close #195
+ * on its own: the TCP listener STAYS (existing tmux panes hold pre-socket env, and the Linux
+ * codex sandbox blocks unix sockets anyway), so any local user can still reach the (bearer-gated)
+ * TCP port until that port is retired. Best-effort: if the socket cannot bind,
* nothing advertises it and everything runs on TCP exactly as before.
*/
private unixServer: Server | null = null