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.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
test(bridge): cover ackDone's fire-and-forget request wiring
enesa4078cffc05a
diff --git a/src/renderer/bridge/ws-bridge.agent.test.ts b/src/renderer/bridge/ws-bridge.agent.test.tsindex 913104aa9..93a41e848 100644--- a/src/renderer/bridge/ws-bridge.agent.test.ts+++ b/src/renderer/bridge/ws-bridge.agent.test.ts@@ -4,11 +4,17 @@ import { IPC } from '../../shared/ipc'function fakeClient() {const subs: Array<{ channel: string }> = []+ const requests: Array<{ channel: string; arg: unknown }> = []return {subs,+ requests,subscribe: (channel: string, _fn: (...a: unknown[]) => void) => {subs.push({ channel })return () => {}+ },+ request: (channel: string, arg?: unknown) => {+ requests.push({ channel, arg })+ return Promise.resolve()}}}@@ -26,4 +32,11 @@ describe('buildAgentApi', () => {expect(typeof un1).toBe('function')expect(typeof un2).toBe('function')})++ it('ackDone fires a fire-and-forget request on the ack-done channel', () => {+ const c = fakeClient()+ const api = buildAgentApi(c as never)+ api.ackDone('nt-x')+ expect(c.requests).toEqual([{ channel: IPC.agentAckDone, arg: 'nt-x' }])+ })})