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.

Merge origin/main into feat/dev-server-ports

review91b95b2ff379
diff --cc src/preload/index.ts
index 851f88cfb,b44617016..1cf1bb4f9
--- a/src/preload/index.ts
+++ b/src/preload/index.ts
@@@ -502,13 -502,10 +503,17 @@@ const api: NodeTerminalApi =
read: (q?: SessionMemoryQuery) => ipcRenderer.invoke(IPC.sessionMemory, q),
host: (q?: SessionMemoryQuery) => ipcRenderer.invoke(IPC.sessionMemoryHost, q)
},
+ // Forwarded verbatim for the same reason as sessionMemory: `remote` is OR-ed with the core's own
+ // claim, and a forward request carries only node + port — the host-side address is decided in core.
+ devPorts: {
+ scan: (q?: DevPortsQuery) => ipcRenderer.invoke(IPC.devPortsScan, q),
+ forward: (req: DevPortForwardRequest) => ipcRenderer.invoke(IPC.devPortsForward, req),
+ unforward: (req: { projectId: string; localPort: number }) => ipcRenderer.invoke(IPC.devPortsUnforward, req)
+ },
+ recentConversations: {
+ list: (req?: RecentConversationsRequest) =>
+ ipcRenderer.invoke(IPC.recentConversationsList, req)
+ },
wallpaper: {
listStills: () => ipcRenderer.invoke(IPC.wallpaperListStills),
load: (w) => ipcRenderer.invoke(IPC.wallpaperLoad, w),
diff --cc src/renderer/bridge/stubs.ts
index ab7521c55,51c143f49..9350bbbe1
--- a/src/renderer/bridge/stubs.ts
+++ b/src/renderer/bridge/stubs.ts
@@@ -276,17 -276,11 +276,22 @@@ export function buildStubApi(): Omit
cookieProviders: () => Promise.resolve({}),
onUpdate: noopUnsub
},
+ devPorts: {
+ // Deliberately NOT superseded by a WS namespace: the Server Edition does not serve dev ports
+ // (its browser tab has no <webview> browser node, and a page the viewer opened would load on
+ // the viewer's machine, where the server's port is not). A relay tab shares this surface for
+ // the other reason — its sessions live on the host. `unsupported` is the honest answer on
+ // both, and the chip is not drawn.
+ scan: () => Promise.resolve({ ok: false, reason: 'unsupported', nodes: {} }),
+ forward: () =>
+ Promise.resolve({ ok: false, reason: 'unsupported', message: 'Port forwarding is not available here.' }),
+ unforward: () => Promise.resolve(false)
+ },
+ // Real in the browser (ws-bridge `buildRecentConversationsApi`). Where this stub stays in force
+ // — nowhere today — `unsupported` is the honest answer: "could not look", never "no history".
+ recentConversations: {
+ list: () => Promise.resolve({ ok: false as const, reason: 'unsupported' as const })
+ },
sessionMemory: {
// Superseded by the real WS-backed namespace in ws-bridge (the core session-memory service
// runs in the server shell too), so nothing reaches these in a live browser session. Kept
diff --cc src/shared/types.ts
index e1a6a3c40,acb744692..b9f2d1414
--- a/src/shared/types.ts
+++ b/src/shared/types.ts
@@@ -4035,7 -4046,8 +4046,9 @@@ export interface NodeTerminalApi
githubControl: import('./github-issues').GitHubControlApi
usage: UsageApi
sessionMemory: SessionMemoryApi
+ devPorts: import('./dev-ports').DevPortsApi
+ /** "Open recent" — the newest agent conversations in this machine's CLI histories. */
+ recentConversations: import('./recent-conversations').RecentConversationsApi
wallpaper: import('./wallpaper').WallpaperApi
triggers: TriggersApi
context: ContextApi