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 pull request #1278 from iceclatterWT/feat/aerial-wallpaper

eneskirca226f7e5a4349
diff --cc src/renderer/canvas/Canvas.tsx
index 52c14c47d,f41ef84c6..c6b54fb2e
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@@ -19747,25 -19639,15 +19756,25 @@@ export function Canvas()
</div>
</div>
)}
- {/* The active project's node subtree runs under ITS session (local for a local tab, the
- relay session for a remote tab). Keyed by session id so an api swap REMOUNTS the nodes
- (obligation 3): TerminalNode/EditorNode capture `api` in []-effects, so a live
- api change must remount them or they keep talking to the old core. For an all-local user
- the key is always 'local', so this never remounts — zero behavior change. */}
- <SessionProvider session={sessionForProject(activeProjectId || '')} key={sessionForProject(activeProjectId || '').id}>
+ {/* The node subtree runs under the session of the project whose nodes React Flow's STORE
+ holds (`flowOwnerProjectId`) — local for a local tab, the relay session for a remote
+ tab. Keyed by session id so an api swap REMOUNTS the nodes (obligation 3):
+ TerminalNode/EditorNode capture `api` in []-effects, so a live api change must remount
+ them or they keep talking to the old core. NOT keyed on `activeProjectId`: xyflow copies
+ the `nodes` prop into its store in a passive effect and `ReactFlowProvider` sits above
+ this provider, so a key that flipped with the active id remounted whatever the store
+ still held — the OUTGOING nodes — under the INCOMING session (a team tab's terminals
+ were created on this desktop's core). For an all-local user the key is always 'local',
+ so this never remounts. */}
+ <SessionProvider session={nodeSession} key={nodeSession.id}>
+ <OwningProjectContext.Provider value={flowOwnerProjectId}>
<ReactFlow
- className={wallpaperBg ? 'has-wallpaper' : undefined}
+ className={hasWallpaper ? 'has-wallpaper' : undefined}
nodes={allNodes}
+ // Read only at mount. A session-changing switch remounts this <ReactFlow> (key above) one
+ // commit AFTER the load effect applied the project's camera, and the fresh pan/zoom starts
+ // here — so hand it the live camera; xyflow's default put every such switch at the origin.
+ defaultViewport={viewportRef.current}
edges={displayEdges}
nodeTypes={nodeTypes}
edgeTypes={edgeTypes}
diff --cc src/renderer/components/kanban/GlobalKanbanView.tsx
index 72dc414fa,99c6d2205..56f8c4b40
--- a/src/renderer/components/kanban/GlobalKanbanView.tsx
+++ b/src/renderer/components/kanban/GlobalKanbanView.tsx
@@@ -3,8 -3,8 +3,9 @@@ import type { BridgeLink, CanvasNodeSta
import { AGENT_CONFIG, BUILTIN_AGENT_IDS, type AgentId } from '@shared/agents/config'
import { useProjects } from '../../state/projects'
import { useSettings } from '../../state/settings'
+import { useAgentStatus } from '../../state/agentStatus'
import { useBoardWallpaperStyle } from '../../state/wallpaper'
+ import { AerialWallpaper } from '../AerialWallpaper'
import {
addColumn, assignNode, assignedTo, boardLabels, cardMatchesLabelFilter, cardMeta, columnForNode,
deleteColumn, labelsForCard, moveColumn,