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 fix/spill-long-prompt-cold-open

review57501a6379f7
diff --cc src/renderer/canvas/Canvas.tsx
index 16e1f73fc,16c03b47a..abe9a537e
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@@ -475,8 -479,21 +475,21 @@@ import
normalizeIssueRef,
type IssueRef
} from '@shared/github-issue-ref'
+ import { planIssueWorktree } from '@shared/issue-worktree'
+ import { sharedBasePathOf, sharedWorktreeLocationRefusal } from '@shared/worktree-location'
+ import {
+ frameAgentPlacement,
+ issueWorktreeChoiceCopy,
+ issueWorktreeFrames,
+ issueWorktreeRefusal,
+ issueWorktreeRenamedNotice,
+ runExclusive,
+ type IssueWorktreeAsk,
+ type IssueWorktreeChoice,
+ type IssueWorktreeMenuAnswer
+ } from '../lib/issueWorktree'
import { runEndedEntry, runStartedEntry } from '../lib/issueRuns'
-import { resolveIssueFlagForCall, type IssueFlagResult } from '../lib/issueFlag'
+import { issueFlagScope, resolveIssueFlagForCall, type IssueFlagResult } from '../lib/issueFlag'
import type { GitHubIssueCardView } from '@shared/github-issues'
import { branchClaudeSession } from '../lib/claudeBranch'
import {
@@@ -11805,18 -12168,10 +12257,10 @@@ export function Canvas()
): CanvasNode => {
const command = node.data.initialCommand as string | undefined
if (!command) return node
- // A group counts while its launch is still PENDING (the ack — and with it `waitForSetup` —
- // has not come back yet; holding is the safe side of that unknown, and a non-waiting ack
- // releases these again) or while its acked run said `waitForSetup` and has not finished.
- const holdsForSetup =
- !!intoGroup &&
- (useProjectSetup.getState().pendingForGroup(intoGroup) > 0 ||
- setupWaitGroupsRef.current.has(intoGroup)) &&
- !setupDoneForGroup(intoGroup)
- const awaitSetupGroup = holdsForSetup ? intoGroup ?? undefined : undefined
+ const awaitSetupGroup = setupHoldGroup(intoGroup)
// Always retain the command until the PTY-ready delivery loop acknowledges it.
// Node creation (even on screen) is not command delivery.
- return queueControlLaunch(node, after, awaitSetupGroup)
+ return withLaunchBrief(queueControlLaunch(node, after, awaitSetupGroup), promptFile)
}
// Open `count` nodes INTO a group frame: grow the frame FIRST (extent:'parent' would
// clamp children landing outside it), then drop each node into the next grid slot