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 branch 'fix/spill-long-prompt-cold-open' into feat/after-until-pr

reviewdd184ea9215d
diff --cc src/core/canvas-control-core.ts
index e486d083f,ad2ad85cc..6a75e8d8e
--- a/src/core/canvas-control-core.ts
+++ b/src/core/canvas-control-core.ts
@@@ -23,7 -23,7 +23,8 @@@ import { nodeColorChoices } from '@shar
import { offScreenGuidanceLines } from '@shared/control-off-screen'
import { codexThreadIdentityResolverSh } from './codex-thread-identity-sh'
import { ISSUE_SESSION_COLUMNS, issueLaunchPrompt, parseIssueArg } from '../shared/github-issue-ref'
+import { PR_DEADLINE_DEFAULT_MS, PR_DEADLINE_MAX_MS, PR_WAIT_MAX, afterPrFlagRefusal } from '../shared/pr-wait'
+ import { ISSUE_BRANCH_SLUG_MAX, issueWorktreeBranch } from '../shared/issue-worktree'
/**
* The messaging verbs' retry guidance, RENDERED from `RETRYABLE` — the table is the source, and
diff --cc src/renderer/canvas/Canvas.tsx
index c222f9cca,abe9a537e..43d43126c
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@@ -513,10 -525,11 +526,15 @@@ import
LAUNCH_STALL_MS,
type ArmedNode
} from '../lib/pendingLaunch'
+import { prHoldReports, prWaitReplyLine, resolvePrWaitFor, startFreshReadAsks, type PrWaitArmResult } from '../lib/prWait'
+import { RUN_NOW_AFTER_PR_REFUSAL } from '@shared/pr-wait'
+import { lookupPullRequests, pullBoardFor, useGitHubIssues } from '../state/githubIssues'
+import { usePullChase } from '../components/kanban/usePullAutoMove'
+ import {
+ createBoundWorktree,
+ type CreateBoundWorktreeDeps,
+ type WorktreeAttachTarget
+ } from '../lib/worktreeCreate'
import { WAIT_LABEL, dropAfterDep, edgeHidden, hiddenEdgeNodeIds, missingDepRopes, ropeInfoOf, ropeVisual } from '../lib/edgeModel'
import { triggerEdges } from '../lib/triggerCard'
import {
@@@ -11962,18 -12257,10 +12414,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 withLaunchBrief(queueControlLaunch(node, after, awaitSetupGroup), promptFile)
+ return withPrHold(withLaunchBrief(queueControlLaunch(node, after, awaitSetupGroup), promptFile), prHoldPre)
}
// 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