- inject the TUI socket test double instead of globally mocking src/client/agentSocket
- keep production socket lifecycle behavior unchanged while isolating Bun test files
- verified the GitHub failing websocket/REPL slice, full test suite, typecheck, and release builds