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 remote-tracking branch 'origin/main' into pr1268-fixes

review6a9b0b9ed336
diff --cc src/core/workspace-store.ts
index 17222d56f,1c86f2ce5..db8ffaf22
--- a/src/core/workspace-store.ts
+++ b/src/core/workspace-store.ts
@@@ -640,15 -585,10 +620,15 @@@ export class WorkspaceStore
...(history ? { closedSessions: history } : {}),
...(admitted ? { layouts: admitted } : {}),
...(views ? { layoutViewports: views } : {})
- }
+ })
})
+ } else if (folderData) {
+ // File AND cache gone. Never fall through to the folder branch below: that reads the
+ // folder's own `.nodeterm/project.json` — a stale copy or a teammate's canvas — and the
+ // next save would adopt it as this project. The grey placeholder keeps the kind instead.
+ built.push({ entry: e, project: { ...unavailableProject(e), storeInAppData: true } })
} else if (e.cwd) {
- if (sideline) await sweepStaleTmp(projectFilePath(e.cwd))
+ if (sideline) await sweepForeignTempFiles(projectFilePath(e.cwd))
const read = await this.readProjectFile(e.cwd, sideline)
if (read) {
const p = read.file
diff --cc src/renderer/components/settings/sections/BehaviorSection.tsx
index de2fac67d,1e6cd3b83..7cb709a3d
--- a/src/renderer/components/settings/sections/BehaviorSection.tsx
+++ b/src/renderer/components/settings/sections/BehaviorSection.tsx
@@@ -14,7 -15,16 +15,17 @@@ import { backgroundCloseDescription, ba
import type { BackgroundOnCloseSetting } from '@shared/types'
import { clampWheelZoomSpeed } from '@renderer/canvas/wheel-zoom'
import { DEFAULT_WORKTREE_PATH_TEMPLATE } from '@shared/worktree'
+import type { NewProjectStorage } from '@shared/project-storage'
+ import { Button } from '@renderer/ui/Button'
+ import type { NodeSize } from '@shared/default-node-size'
+ import {
+ NODE_SIZE_CHOICES,
+ NODE_SIZE_CHOICE_LABELS,
+ nodeSizeField,
+ nodeSizePatch,
+ nodeSizeResetPatch,
+ type NodeSizeChoice
+ } from '@renderer/lib/defaultNodeSizeSetting'
const ROWS = {
defaultView: {
diff --cc src/renderer/state/projects.ts
index 3eb737c06,3b752478d..9b499ed3d
--- a/src/renderer/state/projects.ts
+++ b/src/renderer/state/projects.ts
@@@ -31,8 -31,8 +31,9 @@@ import { groupsFirst } from '@shared/no
import { applyOwnCanvasMutation, createProject, reorderGroupWithinParent } from './workspace'
import { registerCodexRelayProjectCheck } from './codexCli'
import { markWorkspaceDirty } from './workspaceDirty'
+ import { rootPositionWith } from '@shared/root-position'
import { folderName } from '../lib/projectOpen'
+import { useSettings } from './settings'
// One order-independent key for an edge's endpoints — the SAME rule `hiddenLinkIds` uses, so a
// rope and the bridge it covers are recognized as one relationship here too.
import { pairKey as bridgePairKey } from '../lib/noteLink'