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 main into docs/canvas-control-prompt-is-single-line — keep both test pins (#516 + #517)

enes8b473598b521
diff --cc src/main/canvas-control-core.test.ts
index 1a6fef57f,2ac2983f1..c02d3d269
--- a/src/main/canvas-control-core.test.ts
+++ b/src/main/canvas-control-core.test.ts
@@@ -292,19 -292,15 +292,28 @@@ describe('parseControlRequest', () =>
expect(isDestructiveVerb('sticky')).toBe(false)
})
+ it('both agent-facing texts warn that --prompt is one line and must not start with a slash', () => {
+ for (const body of [buildCanvasSkillBody('/x/shim.sh'), buildCanvasControlInstructions('/tmp/nodeterm.sh')]) {
+ // `assembleLaunchCommand` collapses every whitespace run in the prompt, because the prompt
+ // rides argv on a line that is typed into the pane. An agent that does not know this writes
+ // a numbered brief and gets one paragraph.
+ expect(body.toLowerCase()).toContain('one line')
+ // The failure that costs a whole station: flattened, a leading slash command swallows the
+ // task as its argument, and the node then reads as idle to `--after`. Silence here is what
+ // let that ship.
+ expect(body).toMatch(/start a prompt with `\/`|begin a prompt with `\/`/i)
+ }
+ })
+
+ it('both agent-facing texts separate a denial from an unanswered dialog', () => {
+ for (const body of [buildCanvasSkillBody('/x/shim.sh'), buildCanvasControlInstructions('/tmp/nodeterm.sh')]) {
+ // The two answers carry opposite guidance — a denial is final, a timeout is retryable — and
+ // a body that names only "may be denied" leaves a caller reading its own timeout as refusal.
+ expect(body).toContain('denied by user')
+ expect(body).toContain('no answer within 120s')
+ }
+ })
+
it('both agent-facing texts document --model on the open verbs and per-role model on spawn-team', () => {
for (const body of [buildCanvasSkillBody('/x/shim.sh'), buildCanvasControlInstructions('/tmp/nodeterm.sh')]) {
// The flag is the only cost lever an orchestrator has: without it every station it opens