Yaojia Wang
a411c89ee9
feat(v0.3): H2 server — Claude Code hooks → live status side-channel
- types: ClaudeStatus + ServerMessage 'status'; Session.claudeStatus;
SessionManager.handleHookEvent
- session: inject WEBTERM_SESSION + WEBTERM_HOOK_URL into the spawned shell env
so hooks know which tab they belong to
- http/hook.ts: pure event→status mapper (PreToolUse→working, PermissionRequest/
Notification:permission_prompt→waiting, Stop/idle_prompt→idle); 6 unit tests
- server: POST /hook (loopback-only, express.json 64kb) → manager pushes 'status'
- fix: closeIdleConnections() on shutdown so an idle hook keep-alive socket
doesn't hang close()/SIGTERM
- integration ⑦ (real PTY): attach → POST /hook → ws receives status. 205 tests green.
2026-06-17 18:44:07 +02:00
..
2026-06-16 08:09:40 +02:00
2026-06-17 18:44:07 +02:00
2026-06-16 08:09:40 +02:00
2026-06-17 18:44:07 +02:00
2026-06-17 18:28:40 +02:00
2026-06-16 18:58:14 +02:00
2026-06-16 08:09:40 +02:00
2026-06-16 08:09:40 +02:00
2026-06-16 08:09:40 +02:00
2026-06-16 18:54:15 +02:00
2026-06-17 15:27:01 +02:00