Claude Code. Any Model. The most powerful AI coding agent now speaks every language.
fix(pane): match echo, dialog and working rows at any terminal width
Jack Rudenkocd6baf37b9ba
diff --git a/packages/cli/src/pane/pane-session.ts b/packages/cli/src/pane/pane-session.tsindex 5505e77a..01df900a 100644--- a/packages/cli/src/pane/pane-session.ts+++ b/packages/cli/src/pane/pane-session.ts@@ -87,8 +87,12 @@ import {import { type Delivery, planDelivery, writeTurnFile } from "./prompt-delivery.js";import {agentRejectedLine,+ boxStartsWith,choiceDialog,+ echoHead,+ flatText,hasChoiceDialog,+ hasEcho,inputBox,isWorking,readBoot,@@ -1086,16 +1090,16 @@ export class PaneSessionImpl implements PaneSession, RegisteredPane {/** After a lost reply: the line is in the box (typed), or already submitted (echo, witness). */private async landedAfterLostReply(text: string, enter: boolean): Promise<boolean> {await this.nextFrame(1000);- const head = text.slice(0, 40);+ const head = echoHead(text, this.screen.cols);const box = inputBox(this.screen);- let landed = !!box && box.text.startsWith(head);+ let landed = !!box && boxStartsWith(box, head);if (landed && enter) await this.key("enter");if (!landed && enter) {this.follower.poll();const cur = this.follower.view().current;landed =(!!cur && cur.index === this.turnIndex && cur.acceptedAt !== null) ||- this.screen.lines.some((l) => l.startsWith(`❯ ${head}`));+ hasEcho(this.screen.lines, head);}if (landed) this.anomaly("send_reply_lost");return landed;@@ -1146,7 +1150,7 @@ export class PaneSessionImpl implements PaneSession, RegisteredPane {return (!inputBox(this.screen) &&!hasChoiceDialog(this.screen) &&- /Esc to cancel/.test(screenText(this.screen))+ /Esc to cancel/.test(flatText(this.screen.lines)));}@@ -1199,7 +1203,7 @@ export class PaneSessionImpl implements PaneSession, RegisteredPane {if (this.admission !== adm || this.phase !== "ADMITTING") return "gone";const box = inputBox(this.screen);if (box && box.text === "") return "empty";- if (box && !box.text.startsWith(head)) return "other";+ if (box && !boxStartsWith(box, head)) return "other";const left = end - Date.now();if (left <= 0) return box ? "line" : "other";// Resolves on the next frame (screen seq change) or at the deadline.@@ -1210,8 +1214,8 @@ export class PaneSessionImpl implements PaneSession, RegisteredPane {private nudge(adm: Admission): void {const box = inputBox(this.screen);const line = adm.plan.mode === "control" || adm.plan.mode === "refused" ? "" : adm.plan.line;- const head = line.slice(0, 40);- if (!adm.resent && box && line && box.text.startsWith(head)) {+ const head = echoHead(line, this.screen.cols);+ if (!adm.resent && box && line && boxStartsWith(box, head)) {adm.resent = true;this.anomaly("resent_enter");void (async () => {@@ -1236,7 +1240,7 @@ export class PaneSessionImpl implements PaneSession, RegisteredPane {!adm.panelEscaped &&!box &&!hasChoiceDialog(this.screen) &&- /Esc to cancel/.test(screenText(this.screen))+ /Esc to cancel/.test(flatText(this.screen.lines))) {// A panel command (`/cost`, `/usage`, …) writes no record and swallows input until Esc.adm.panelEscaped = true;@@ -1251,7 +1255,7 @@ export class PaneSessionImpl implements PaneSession, RegisteredPane {const box = inputBox(this.screen);if (!box || box.text !== "") return;const line = adm.plan.mode === "control" || adm.plan.mode === "refused" ? "" : adm.plan.line;- const echo = this.screen.lines.some((l) => l.startsWith(`❯ ${line.slice(0, 40)}`));+ const echo = hasEcho(this.screen.lines, echoHead(line, this.screen.cols));// H2: a resize redraws everything above the box; within its quiet window only the echo countsconst changed =adm.deliveredAt !== null &&diff --git a/packages/cli/src/pane/screen-classifier.ts b/packages/cli/src/pane/screen-classifier.tsindex 33880250..0914a6e1 100644--- a/packages/cli/src/pane/screen-classifier.ts+++ b/packages/cli/src/pane/screen-classifier.ts@@ -39,7 +39,8 @@ export type ChoiceDialogKind = "permission" | "plan" | "question";/*** The choice dialogs a RUNNING turn can block on (R3-H1's closed list). Each header is- * verbatim from a 2.1.290 capture. None of them has a `No, and tell Claude …(esc)` row+ * verbatim from a 2.1.290 capture, and is matched against the dialog region flattened into+ * one string (`flatText`), so a header word-wrapped on a narrow pane still matches. None of them has a `No, and tell Claude …(esc)` row* any more: permission ends `3. No` / `Esc to cancel · Tab to amend`, plan approval has* no No row at all, AskUserQuestion ends `Enter to select · ↑/↓ to navigate · Esc to cancel`.*/@@ -47,7 +48,8 @@ export const CHOICE_DIALOGS: ReadonlyArray<{ kind: ChoiceDialogKind; header: Reg{ kind: "permission", header: /\bDo you want to proceed\?/ },{kind: "permission",- header: /\bDo you want to (create|make this edit to|overwrite|delete) .+\?/,+ // the file name is bounded so a flattened region never lets it span a whole dialog+ header: /\bDo you want to (create|make this edit to|overwrite|delete) .{1,300}?\?/,},{ kind: "plan", header: /\bWould you like to proceed\?/ },{ kind: "question", header: /Enter to select · ↑\/↓ to navigate/ },@@ -60,8 +62,11 @@ const FIRST_OPTION = /^\s*(❯\s*)?1\.\s+\S/;/** Footers of 2.1.290's selection dialogs (boot dialogs have no numbers). */const SELECT_FOOTER = /Enter to (confirm|select)\b.*Esc to cancel/;-/** The working row: glyph, a capitalised word ending in `…`, an optional `(…)`. */-const WORKING_ROW = /^\s*[·✢✳✶✻✽*●∗]\s+[A-Z][\w'-]*…(\s+\(.*\))?\s*$/;+/**+ * The working row: glyph, a capitalised word ending in `…`, an optional `(…)`. On a narrow+ * pane the parenthesised tail can wrap, so a tail with no `)` on this row also matches.+ */+const WORKING_ROW = /^\s*[·✢✳✶✻✽*●∗]\s+[A-Z][\w'-]*…(\s+\((?:.*\)|[^)]*))?\s*$/;/** Bullet of an assistant message block. */const BULLET = /^⏺(\s|$)/;@@ -79,6 +84,32 @@ export function screenText(s: ScreenState): string {return lines.join("\n");}+/**+ * Rows joined with a space, whitespace runs collapsed: what a marker phrase is matched+ * against. Claude Code word-wraps dialog prose to the pane width and drops the space at+ * the wrap, so a phrase on one 160-column row can split across two at 80 columns.+ */+export function flatText(lines: readonly string[]): string {+ return lines.join(" ").replace(/\s+/g, " ").trim();+}++/** Whitespace removed. Typed text and echoes wrap at a space (not drawn) or mid-word. */+function squash(s: string): string {+ return s.replace(/\s+/g, "");+}++/**+ * How many leading characters of a typed line identify it on screen: `min(40, cols − 4)`,+ * compared with whitespace removed and across wrapped rows (`echoAt`, `boxStartsWith`).+ */+export function echoHeadLength(cols: number): number {+ return Math.max(1, Math.min(40, cols - 4));+}++export function echoHead(line: string, cols: number): string {+ return line.slice(0, echoHeadLength(cols));+}+/** Characters of `line` whose cell is NOT faint. Columns are code-point indexes. */function visibleText(line: string, spans: readonly SpanRun[] | undefined): string {if (!spans?.length) return line;@@ -98,6 +129,40 @@ export interface InputBox {menuItem: string | null;}+/**+ * The box holds a line starting with `head`. `box.text` joins its rows with `\n`, and a+ * long line wraps at a space Claude Code does not draw, so both sides lose their whitespace.+ */+export function boxStartsWith(box: InputBox, head: string): boolean {+ return squash(box.text).startsWith(squash(head));+}++/**+ * Row `i` is the echo of a submitted line starting with `head`: `❯ ` with an ASCII space+ * (the box prompt is `❯` + NO-BREAK SPACE, so the box itself never matches), followed by+ * its two-space continuation rows when the echo wraps, compared with whitespace removed.+ * At 120 columns a prompt whose third word is a long path echoes as `❯ Use the Write tool+ * to create the file` alone, the path on the next row (`size-120x40-permission-…`).+ */+export function echoAt(lines: readonly string[], i: number, head: string): boolean {+ const first = lines[i] ?? "";+ if (!first.startsWith("❯ ")) return false;+ const want = squash(head);+ let got = squash(first.slice(2));+ for (let j = i + 1; got.length < want.length && j < lines.length; j++) {+ const row = lines[j] ?? "";+ if (!/^ {2}\S/.test(row)) break;+ got += squash(row);+ }+ return got.startsWith(want);+}++/** Some row is the echo of a submitted line starting with `head`. */+export function hasEcho(lines: readonly string[], head: string): boolean {+ for (let i = 0; i < lines.length; i++) if (echoAt(lines, i, head)) return true;+ return false;+}+const MENU_ROW = /^\s{2}❯ \/\S|^\s{4}\/\S|^\s{4}[*+] \S/;/**@@ -169,7 +234,8 @@ export function choiceDialog(s: ScreenState): ChoiceDialog | null {const lines = s.lines;const start = lastBulletRow(lines) + 1;const below = lines.slice(start);- const kind = CHOICE_DIALOGS.find((d) => below.some((l) => d.header.test(l)))?.kind;+ const flat = flatText(below);+ const kind = CHOICE_DIALOGS.find((d) => d.header.test(flat))?.kind;if (!kind) return null;if (!below.some((l) => FIRST_OPTION.test(l))) return null;return { kind, text: below.filter((l) => l.trim()).join("\n") };@@ -230,7 +296,7 @@ export function screenAnswer(s: ScreenState, echo: string): string {const lines = s.lines;const top = boxTopRow(lines, s.cols);const end = top >= 0 ? top : lines.length;- const start = echoRow(lines, end, `❯ ${echo.slice(0, 40)}`) + 1;+ const start = echoRow(lines, end, echoHead(echo, s.cols)) + 1;if (start <= 0) return "";const out: string[] = [];let inProse = false;@@ -242,9 +308,10 @@ export function screenAnswer(s: ScreenState, echo: string): string {return out.join("\n").trim();}-/** The LAST row above `end` starting with `head`, or -1. */+/** The LAST echo row above `end` of a line starting with `head`, or -1. */function echoRow(lines: readonly string[], end: number, head: string): number {- for (let i = end - 1; i >= 0; i--) if ((lines[i] ?? "").startsWith(head)) return i;+ const above = lines.slice(0, end);+ for (let i = end - 1; i >= 0; i--) if (echoAt(above, i, head)) return i;return -1;}@@ -275,8 +342,9 @@ export function agentRejectedLine(text: string): string | null {return m ? m[0] : null;}-function namedDialog(text: string): NamedDialog | null {- for (const d of NAMED_DIALOGS) if (text.includes(d.marker)) return d.name;+/** Matched against the flattened screen, so a marker wrapped on a narrow pane still names it. */+function namedDialog(flat: string): NamedDialog | null {+ for (const d of NAMED_DIALOGS) if (flat.includes(d.marker)) return d.name;return null;}@@ -292,7 +360,7 @@ function isUnnamedChoice(lines: readonly string[]): boolean {export function readBoot(s: ScreenState): BootReading {const text = screenText(s);const box = inputBox(s);- const named = namedDialog(text);+ const named = namedDialog(flatText(s.lines));if (box && !named) return box.text === "" ? { kind: "repl" } : { kind: "booting" };if (named) return { kind: "dialog", name: named, text };if (isUnnamedChoice(s.lines)) return { kind: "choice", text };diff --git a/packages/cli/src/pane/screen-model.ts b/packages/cli/src/pane/screen-model.tsindex fcabd08c..bec3275a 100644--- a/packages/cli/src/pane/screen-model.ts+++ b/packages/cli/src/pane/screen-model.ts@@ -15,7 +15,6 @@*/import type { SpanRun } from "./contract.js";-import { DEFAULT_PANE_COLS } from "./pane-size.js";export interface ScreenState {seq: number;@@ -72,13 +71,14 @@ export function emptyScreen(cols: number, rows: number): ScreenState {* Claude Code writes the agent's name into the top rule's right end (`──── dev:reviewer ─`),* so one ` label ─` tail is part of the rule.*- * The width floor is capped at the launch width: every capture this rule was measured on- * is 160 columns wide, and whether Claude Code draws the rule edge to edge on a much wider- * screen is not yet captured. On a narrower screen the floor is `cols − 1`.+ * Claude Code draws the rule edge to edge at every width captured: 80, 120, 160 and 250+ * columns (Claude Code 2.1.299, `test-fixtures/screens/size-*`; the 250-column rules are+ * 250 cells), so the floor is `cols − 1` with no cap. A screen whose rows are still the+ * pre-resize width reads as "no box" until Claude Code redraws it.*/export function isBoxRule(line: string | undefined, cols: number): boolean {if (!line || !/^─+(?: [^─]+ ─+)?$/.test(line)) return false;- return line.length >= Math.max(20, Math.min(cols, DEFAULT_PANE_COLS) - 1);+ return line.length >= Math.max(20, cols - 1);}/**diff --git a/packages/cli/src/pane/test-fixtures/screens/size-120x40-answer-short.json b/packages/cli/src/pane/test-fixtures/screens/size-120x40-answer-short.jsonnew file mode 100644index 00000000..2762d9d0--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-120x40-answer-short.json@@ -0,0 +1,96 @@+{+ "source": "resize H1 live capture main-120x40/answer",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 40,+ "cols": 120,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 37+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-120x40/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Cooked for 1s · done 10:58 pm",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 57, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 29, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[100, 18, 246, -1, 0]],+ [[0, 120, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 120, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-120x40-dialog-trust.json b/packages/cli/src/pane/test-fixtures/screens/size-120x40-dialog-trust.jsonnew file mode 100644index 00000000..0f6f9625--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-120x40-dialog-trust.json@@ -0,0 +1,104 @@+{+ "source": "resize H1 live capture trust-120x40/trust",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 40,+ "cols": 120,+ "alt": false,+ "cursor": {+ "x": 1,+ "y": 13+ },+ "lines": [+ "",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " Accessing workspace:",+ "",+ " /private/tmp/rsz/trust-120x40/cwd",+ "",+ " Quick safety check: Is this a project you created or one you trust? (Like your own code, a well-known open source",+ " project, or work from your team). If not, take a moment to review what's in this folder first.",+ "",+ " Claude Code'll be able to read, edit, and execute files here.",+ "",+ " Security guide",+ "",+ " ❯ No, exit",+ " Yes, I trust this folder",+ "",+ " Enter to confirm · Esc to cancel",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ ""+ ],+ "spans": [+ [],+ [[0, 120, 220, -1, 0]],+ [[1, 9, 220, -1, 1], [11, 10, 220, -1, 1]],+ [],+ [[1, 33, -1, -1, 1]],+ [],+ [],+ [],+ [],+ [],+ [],+ [[1, 8, 246, -1, 0], [10, 5, 246, -1, 0]],+ [],+ [[1, 1, 153, -1, 0], [3, 3, 153, -1, 0], [7, 4, 153, -1, 0]],+ [],+ [],+ [+ [1, 5, 246, -1, 0],+ [7, 2, 246, -1, 0],+ [10, 7, 246, -1, 0],+ [18, 1, 246, -1, 0],+ [20, 3, 246, -1, 0],+ [24, 2, 246, -1, 0],+ [27, 6, 246, -1, 0]+ ],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ []+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-120x40-echo-submitted.json b/packages/cli/src/pane/test-fixtures/screens/size-120x40-echo-submitted.jsonnew file mode 100644index 00000000..3c6cd67e--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-120x40-echo-submitted.json@@ -0,0 +1,96 @@+{+ "source": "resize H1 live capture main-120x40/submitted",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 40,+ "cols": 120,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 37+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-120x40/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✶ Hyperspacing…",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 57, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 14, 174, -1, 0]],+ [[100, 18, 246, -1, 0]],+ [[0, 120, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 120, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-120x40-permission-write-long-path.json b/packages/cli/src/pane/test-fixtures/screens/size-120x40-permission-write-long-path.jsonnew file mode 100644index 00000000..bfd80870--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-120x40-permission-write-long-path.json@@ -0,0 +1,96 @@+{+ "source": "resize H1 live capture main-120x40/permission",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 40,+ "cols": 120,+ "alt": true,+ "cursor": {+ "x": 1,+ "y": 25+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-120x40/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Cooked for 1s · done 10:58 pm",+ "",+ "❯ Use the Write tool to create the file",+ " deeply/nested/directory/structure/for/the/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt containing",+ " the word hi. Do nothing else.",+ "",+ "⏺ Write(deeply/nested/directory/structure/for/the/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt)",+ "",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " Create file",+ " deeply/nested/directory/structure/for/the/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " 1 hi",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " Do you want to create hello.txt?",+ " ❯ 1. Yes",+ " 2. Yes, and switch to accept edits (auto-approve file edits and common file commands) for this session (shift+tab)",+ " 3. No",+ "",+ " Esc to cancel · Tab to amend",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ ""+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 57, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 29, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 38, 231, 237, 0], [40, 80, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 117, 231, 237, 0], [119, 1, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 29, 231, 237, 0], [31, 89, -1, 237, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 5, -1, -1, 1]],+ [],+ [[0, 120, 153, -1, 0]],+ [[1, 11, 153, -1, 1]],+ [[1, 105, 246, -1, 0]],+ [[0, 120, 239, -1, 0]],+ [[1, 3, 231, -1, 2], [4, 2, 231, -1, 0]],+ [[0, 120, 239, -1, 0]],+ [[23, 9, -1, -1, 1]],+ [[1, 1, 153, -1, 0], [3, 3, 246, -1, 0], [6, 3, 153, -1, 0]],+ [[3, 3, 246, -1, 0], [25, 63, -1, -1, 1], [106, 11, -1, -1, 1]],+ [[3, 3, 246, -1, 0]],+ [],+ [[1, 28, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ []+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-120x40-repl-boot-empty.json b/packages/cli/src/pane/test-fixtures/screens/size-120x40-repl-boot-empty.jsonnew file mode 100644index 00000000..d776f69d--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-120x40-repl-boot-empty.json@@ -0,0 +1,96 @@+{+ "source": "resize H1 live capture main-120x40/boot",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 40,+ "cols": 120,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 37+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-120x40/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[100, 18, 246, -1, 0]],+ [[0, 120, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 120, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-120x40-repl-typed-long.json b/packages/cli/src/pane/test-fixtures/screens/size-120x40-repl-typed-long.jsonnew file mode 100644index 00000000..698e4c2d--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-120x40-repl-typed-long.json@@ -0,0 +1,96 @@+{+ "source": "resize H1 live capture main-120x40/typed-long",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 40,+ "cols": 120,+ "alt": true,+ "cursor": {+ "x": 19,+ "y": 37+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-120x40/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯ Please summarise the purpose of this directory in two sentences, then list three improvements you would make to its",+ " layout and naming",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[100, 18, 246, -1, 0]],+ [[0, 120, 244, -1, 0]],+ [],+ [[19, 1, -1, -1, 16]],+ [[0, 120, 244, -1, 0]],+ [[2, 16, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-120x40-working.json b/packages/cli/src/pane/test-fixtures/screens/size-120x40-working.jsonnew file mode 100644index 00000000..5ada64f1--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-120x40-working.json@@ -0,0 +1,96 @@+{+ "source": "resize H1 live capture main-120x40/working",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 40,+ "cols": 120,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 37+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-120x40/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✶ Hyperspacing…",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 57, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 14, 174, -1, 0]],+ [[100, 18, 246, -1, 0]],+ [[0, 120, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 120, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-250x60-answer-short.json b/packages/cli/src/pane/test-fixtures/screens/size-250x60-answer-short.jsonnew file mode 100644index 00000000..cca868e2--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-250x60-answer-short.json@@ -0,0 +1,136 @@+{+ "source": "resize H1 live capture main-250x60/answer",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 60,+ "cols": 250,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 57+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-250x60/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Crunched for 1s · done 10:59 pm",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 187, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 31, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[230, 18, 246, -1, 0]],+ [[0, 250, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 250, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-250x60-dialog-trust.json b/packages/cli/src/pane/test-fixtures/screens/size-250x60-dialog-trust.jsonnew file mode 100644index 00000000..86a4c7a7--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-250x60-dialog-trust.json@@ -0,0 +1,144 @@+{+ "source": "resize H1 live capture trust-250x60/trust",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 60,+ "cols": 250,+ "alt": false,+ "cursor": {+ "x": 1,+ "y": 12+ },+ "lines": [+ "",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " Accessing workspace:",+ "",+ " /private/tmp/rsz/trust-250x60/cwd",+ "",+ " Quick safety check: Is this a project you created or one you trust? (Like your own code, a well-known open source project, or work from your team). If not, take a moment to review what's in this folder first.",+ "",+ " Claude Code'll be able to read, edit, and execute files here.",+ "",+ " Security guide",+ "",+ " ❯ No, exit",+ " Yes, I trust this folder",+ "",+ " Enter to confirm · Esc to cancel",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ ""+ ],+ "spans": [+ [],+ [[0, 250, 220, -1, 0]],+ [[1, 9, 220, -1, 1], [11, 10, 220, -1, 1]],+ [],+ [[1, 33, -1, -1, 1]],+ [],+ [],+ [],+ [],+ [],+ [[1, 8, 246, -1, 0], [10, 5, 246, -1, 0]],+ [],+ [[1, 1, 153, -1, 0], [3, 3, 153, -1, 0], [7, 4, 153, -1, 0]],+ [],+ [],+ [+ [1, 5, 246, -1, 0],+ [7, 2, 246, -1, 0],+ [10, 7, 246, -1, 0],+ [18, 1, 246, -1, 0],+ [20, 3, 246, -1, 0],+ [24, 2, 246, -1, 0],+ [27, 6, 246, -1, 0]+ ],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ []+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-250x60-echo-submitted.json b/packages/cli/src/pane/test-fixtures/screens/size-250x60-echo-submitted.jsonnew file mode 100644index 00000000..34dc165e--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-250x60-echo-submitted.json@@ -0,0 +1,136 @@+{+ "source": "resize H1 live capture main-250x60/submitted",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 60,+ "cols": 250,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 57+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-250x60/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✽ Osmosing…",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 187, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 10, 174, -1, 0]],+ [[230, 18, 246, -1, 0]],+ [[0, 250, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 250, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-250x60-permission-write-long-path.json b/packages/cli/src/pane/test-fixtures/screens/size-250x60-permission-write-long-path.jsonnew file mode 100644index 00000000..6fb1edc6--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-250x60-permission-write-long-path.json@@ -0,0 +1,136 @@+{+ "source": "resize H1 live capture main-250x60/permission",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 60,+ "cols": 250,+ "alt": true,+ "cursor": {+ "x": 1,+ "y": 23+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-250x60/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Crunched for 1s · done 10:59 pm",+ "",+ "❯ Use the Write tool to create the file deeply/nested/directory/structure/for/the/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt containing the word hi. Do nothing else.",+ "",+ "⏺ Write(deeply/nested/directory/structure/for/the/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt)",+ "",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " Create file",+ " deeply/nested/directory/structure/for/the/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " 1 hi",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " Do you want to create hello.txt?",+ " ❯ 1. Yes",+ " 2. Yes, and switch to accept edits (auto-approve file edits and common file commands) for this session (shift+tab)",+ " 3. No",+ "",+ " Esc to cancel · Tab to amend",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ ""+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 187, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 31, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 184, 231, 237, 0], [186, 64, -1, 237, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 5, -1, -1, 1]],+ [],+ [[0, 250, 153, -1, 0]],+ [[1, 11, 153, -1, 1]],+ [[1, 105, 246, -1, 0]],+ [[0, 250, 239, -1, 0]],+ [[1, 3, 231, -1, 2], [4, 2, 231, -1, 0]],+ [[0, 250, 239, -1, 0]],+ [[23, 9, -1, -1, 1]],+ [[1, 1, 153, -1, 0], [3, 3, 246, -1, 0], [6, 3, 153, -1, 0]],+ [[3, 3, 246, -1, 0], [25, 63, -1, -1, 1], [106, 11, -1, -1, 1]],+ [[3, 3, 246, -1, 0]],+ [],+ [[1, 28, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ []+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-250x60-repl-boot-empty.json b/packages/cli/src/pane/test-fixtures/screens/size-250x60-repl-boot-empty.jsonnew file mode 100644index 00000000..729e1087--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-250x60-repl-boot-empty.json@@ -0,0 +1,136 @@+{+ "source": "resize H1 live capture main-250x60/boot",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 60,+ "cols": 250,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 57+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-250x60/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[230, 18, 246, -1, 0]],+ [[0, 250, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 250, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-250x60-repl-typed-long.json b/packages/cli/src/pane/test-fixtures/screens/size-250x60-repl-typed-long.jsonnew file mode 100644index 00000000..f0342126--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-250x60-repl-typed-long.json@@ -0,0 +1,136 @@+{+ "source": "resize H1 live capture main-250x60/typed-long",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 60,+ "cols": 250,+ "alt": true,+ "cursor": {+ "x": 135,+ "y": 57+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-250x60/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯ Please summarise the purpose of this directory in two sentences, then list three improvements you would make to its layout and naming",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[230, 18, 246, -1, 0]],+ [[0, 250, 244, -1, 0]],+ [[135, 1, -1, -1, 16]],+ [[0, 250, 244, -1, 0]],+ [[2, 16, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-250x60-working.json b/packages/cli/src/pane/test-fixtures/screens/size-250x60-working.jsonnew file mode 100644index 00000000..0af9931a--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-250x60-working.json@@ -0,0 +1,136 @@+{+ "source": "resize H1 live capture main-250x60/working",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 60,+ "cols": 250,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 57+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-250x60/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✽ Osmosing…",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 32, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 187, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 10, 174, -1, 0]],+ [[230, 18, 246, -1, 0]],+ [[0, 250, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 250, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-answer-short.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-answer-short.jsonnew file mode 100644index 00000000..a77e6eef--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-answer-short.json@@ -0,0 +1,64 @@+{+ "source": "resize H1 live capture main-80x24/answer",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 21+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-80x24/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Baked for 1s · done 10:58 pm",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 31, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 17, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[60, 18, 246, -1, 0]],+ [[0, 80, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 80, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-dialog-trust.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-dialog-trust.jsonnew file mode 100644index 00000000..073ffd47--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-dialog-trust.json@@ -0,0 +1,72 @@+{+ "source": "resize H1 live capture trust-80x24/trust",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": false,+ "cursor": {+ "x": 1,+ "y": 14+ },+ "lines": [+ "",+ "────────────────────────────────────────────────────────────────────────────────",+ " Accessing workspace:",+ "",+ " /private/tmp/rsz/trust-80x24/cwd",+ "",+ " Quick safety check: Is this a project you created or one you trust? (Like your",+ " own code, a well-known open source project, or work from your team). If not,",+ " take a moment to review what's in this folder first.",+ "",+ " Claude Code'll be able to read, edit, and execute files here.",+ "",+ " Security guide",+ "",+ " ❯ No, exit",+ " Yes, I trust this folder",+ "",+ " Enter to confirm · Esc to cancel",+ "",+ "",+ "",+ "",+ "",+ ""+ ],+ "spans": [+ [],+ [[0, 80, 220, -1, 0]],+ [[1, 9, 220, -1, 1], [11, 10, 220, -1, 1]],+ [],+ [[1, 32, -1, -1, 1]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[1, 8, 246, -1, 0], [10, 5, 246, -1, 0]],+ [],+ [[1, 1, 153, -1, 0], [3, 3, 153, -1, 0], [7, 4, 153, -1, 0]],+ [],+ [],+ [+ [1, 5, 246, -1, 0],+ [7, 2, 246, -1, 0],+ [10, 7, 246, -1, 0],+ [18, 1, 246, -1, 0],+ [20, 3, 246, -1, 0],+ [24, 2, 246, -1, 0],+ [27, 6, 246, -1, 0]+ ],+ [],+ [],+ [],+ [],+ [],+ []+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-echo-submitted.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-echo-submitted.jsonnew file mode 100644index 00000000..c9181af0--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-echo-submitted.json@@ -0,0 +1,64 @@+{+ "source": "resize H1 live capture main-80x24/submitted",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 21+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-80x24/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✳ Processing…",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 31, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 17, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 12, 174, -1, 0]],+ [[60, 18, 246, -1, 0]],+ [[0, 80, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 80, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-permission-write-long-path.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-permission-write-long-path.jsonnew file mode 100644index 00000000..3bc73faa--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-permission-write-long-path.json@@ -0,0 +1,64 @@+{+ "source": "resize H1 live capture main-80x24/permission",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 1,+ "y": 18+ },+ "lines": [+ "",+ "⏺ pear",+ "",+ "✻ Baked for 1s · done 10:58 pm",+ "",+ "❯ Use the Write tool to create the file deeply/nested/directory/structure/for/t",+ " he/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt containing",+ " the word hi. Do nothing else.",+ "",+ "⏺ Write(deeply/nested/directory/structure/for/the/resize/fixture/cap…/hello.txt)",+ "",+ "────────────────────────────────────────────────────────────────────────────────",+ " Create file",+ " …cture/for/the/resize/fixture/capture/run/with/a/very/long/path/name/hello.txt",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " 1 hi",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " Do you want to create hello.txt?",+ " ❯ 1. Yes",+ " 2. Yes, and switch to accept edits (auto-approve file edits and common file",+ " commands) for this session (shift+tab)",+ " 3. No",+ "",+ " Esc to cancel · Tab to amend"+ ],+ "spans": [+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 77, 231, 237, 0], [79, 1, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 77, 231, 237, 0], [79, 1, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 29, 231, 237, 0], [31, 49, -1, 237, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 5, -1, -1, 1]],+ [],+ [[0, 80, 153, -1, 0]],+ [[1, 11, 153, -1, 1]],+ [[1, 78, 246, -1, 0]],+ [[0, 80, 239, -1, 0]],+ [[1, 3, 231, -1, 2], [4, 2, 231, -1, 0]],+ [[0, 80, 239, -1, 0]],+ [[23, 9, -1, -1, 1]],+ [[1, 1, 153, -1, 0], [3, 3, 246, -1, 0], [6, 3, 153, -1, 0]],+ [[3, 3, 246, -1, 0], [25, 54, -1, -1, 1]],+ [[6, 9, -1, -1, 1], [33, 11, -1, -1, 1]],+ [[3, 3, 246, -1, 0]],+ [],+ [[1, 28, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-repl-boot-empty.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-repl-boot-empty.jsonnew file mode 100644index 00000000..4c1783f6--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-repl-boot-empty.json@@ -0,0 +1,64 @@+{+ "source": "resize H1 live capture main-80x24/boot",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 21+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-80x24/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 31, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[60, 18, 246, -1, 0]],+ [[0, 80, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 80, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-repl-typed-long.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-repl-typed-long.jsonnew file mode 100644index 00000000..08a7d51b--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-repl-typed-long.json@@ -0,0 +1,64 @@+{+ "source": "resize H1 live capture main-80x24/typed-long",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 60,+ "y": 21+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-80x24/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────",+ "❯ Please summarise the purpose of this directory in two sentences, then list",+ " three improvements you would make to its layout and naming",+ "────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 31, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[60, 18, 246, -1, 0]],+ [[0, 80, 244, -1, 0]],+ [],+ [[60, 1, -1, -1, 16]],+ [[0, 80, 244, -1, 0]],+ [[2, 16, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-working-tail.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-working-tail.jsonnew file mode 100644index 00000000..8c2ad917--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-working-tail.json@@ -0,0 +1,72 @@+{+ "source": "resize H1 live capture tail-80x24/working-tail",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 21+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/tail-80x24/cwd",+ "",+ "",+ "❯ Write a 600-word story about a pear that learns to sail. Plain prose, no",+ " headings.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✢ Unfurling… (1s · thinking)",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 31, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 73, 231, 237, 0], [75, 5, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 9, 231, 237, 0], [11, 69, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [+ [0, 1, 174, -1, 0],+ [2, 1, 174, -1, 0],+ [3, 3, 216, -1, 0],+ [6, 7, 174, -1, 0],+ [13, 6, 246, -1, 0],+ [19, 8, 249, -1, 0],+ [27, 1, 246, -1, 0]+ ],+ [[60, 18, 246, -1, 0]],+ [[0, 80, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 80, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]+ ]+}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-working.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-working.jsonnew file mode 100644index 00000000..b02a722a--- /dev/null+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-working.json@@ -0,0 +1,64 @@+{+ "source": "resize H1 live capture main-80x24/working",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 21+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.299",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rsz/main-80x24/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✳ Processing…",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"+ ],+ "spans": [+ [],+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 246, -1, 0]],+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 246, -1, 0]],+ [[0, 9, 174, -1, 0], [11, 31, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 17, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 12, 174, -1, 0]],+ [[60, 18, 246, -1, 0]],+ [[0, 80, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 80, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]+ ]+}