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

reviewcfe2f0e86ae7
diff --cc src/main/index.ts
index 2f08d58f5,03c12c31a..f198313a6
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@@ -263,7 -265,7 +265,8 @@@ import
locateRemoteTranscriptCommand,
remoteTranscriptRoots
} from '../core/remote-transcript-locate'
+import { readChatCatalog, registerChatCatalogIpc, type ChatCatalogDeps } from '../core/chat-catalog'
+ import { registerRecentConversationsIpc } from '../core/recent-conversations'
import { readChatTranscript, registerTranscriptIpc, resolveTranscript, type TranscriptIpcDeps } from '../core/transcript-ipc'
import { createReadRemoteGrokChat } from '../core/remote-grok-chat'
import { createHostChat, mirrorChatSendRefusal } from './remote/host-chat'
@@@ -2891,19 -2918,8 +2919,21 @@@ app.whenReady().then(async () =>
})
}
registerTranscriptIpc(transcriptIpcDeps)
+ // The ⌘M composer's `/` catalog. Core reads a local node's folders itself; the one thing this shell
+ // adds is the remote leg — ONE ssh round trip over the node's master (the same resolution the
+ // transcript legs above use), so an SSH node's commands and skills are the HOST's.
+ // Named: the phone's `chat.status` catalog (hostBridge.chat) reads through the same deps.
+ const chatCatalogDeps: ChatCatalogDeps = {
+ isRemoteNode: isRemoteTranscriptNode,
+ runRemote: async (nodeId, cmd) => {
+ const rt = sshTargetForNode(nodeId)
+ if (!rt || !sshProjectManager) return null
+ return sshProjectManager.sshRun(childArgs(rt.conn, rt.controlPath, cmd))
+ }
+ }
+ registerChatCatalogIpc(chatCatalogDeps)
+ // "Open recent": this machine's agent histories (both shells register it — core/recent-conversations.ts).
+ registerRecentConversationsIpc()
initTranscriptIndex(() => settingsStore.get().claudeAccounts ?? [])
corePlatform.handle(IPC.transcriptSearch, (query: string) => searchTranscripts(query))
diff --cc src/server/index.ts
index 64bbfd6c4,f12e82679..7610a7bc1
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@@ -106,7 -106,7 +106,8 @@@ import { wireAgentStatus } from './agen
import { initServerContextLink } from './context-link'
import { createServerWorkspaceWatcher, outsideEditPublisher } from './workspace-external-watch'
import { registerTranscriptIpc } from '../core/transcript-ipc'
+import { registerChatCatalogIpc } from '../core/chat-catalog'
+ import { registerRecentConversationsIpc } from '../core/recent-conversations'
import { registerContextEnsureIpc } from '../core/context-ensure'
import { IPC } from '@shared/ipc'
import { WhisperModelStore } from '../core/speech/whisper-models'
@@@ -523,11 -526,8 +527,13 @@@ export async function startServer
// Codex's ⌘M reader takes ITS tail's hook path (claude's `pathFor` must never answer a codex id).
codexPathFor: (sessionId) => codexContextTail.pathFor(sessionId)
})
+ // The ⌘M composer's `/` catalog. No remote leg, for the reason above: this process runs on the
+ // host whose command and skill folders a node's agent reads. An SSH-project node in this store is
+ // still someone ELSE's machine: named remote here, it answers built-ins + `partial`, never this
+ // server's own ~/.claude.
+ registerChatCatalogIpc({ isRemoteNode: (nodeId) => !!workspaceStore.sshProjectIdForNode(nodeId) })
+ // "Open recent": the SERVER host's agent histories — the machine the browser's sessions run on.
+ registerRecentConversationsIpc()
// The context meter's mount-time rehydration, registered beside the read channels and for the
// same reason: the tails it feeds are the ones created just above. Until this landed the Server
// Edition had NO handler for `context:ensure` at all — the browser cast it and nothing received