Claude Code. Any Model. The most powerful AI coding agent now speaks every language.
style(pane): fix import order and Infinity lint errors in pane tests
Jack Rudenkoe8e0be03d7d5
diff --git a/packages/cli/src/mcp-blackbox/channel-sessions.blackbox.test.ts b/packages/cli/src/mcp-blackbox/channel-sessions.blackbox.test.tsindex ea04f019..52c6f7ec 100644--- a/packages/cli/src/mcp-blackbox/channel-sessions.blackbox.test.ts+++ b/packages/cli/src/mcp-blackbox/channel-sessions.blackbox.test.ts@@ -31,7 +31,15 @@ useBlackboxEnv();const T_TEST = 90_000;type Json = Record<string, unknown>;-const CAPABILITIES = ["list", "status", "cancel", "capture", "capture_since_seq", "capture_spans", "resize"];+const CAPABILITIES = [+ "list",+ "status",+ "cancel",+ "capture",+ "capture_since_seq",+ "capture_spans",+ "resize",+];const SLOT_STATES = ["STARTING","RUNNING",diff --git a/packages/cli/src/mcp-blackbox/team-contract.blackbox.test.ts b/packages/cli/src/mcp-blackbox/team-contract.blackbox.test.tsindex 304c2b24..4b73b097 100644--- a/packages/cli/src/mcp-blackbox/team-contract.blackbox.test.ts+++ b/packages/cli/src/mcp-blackbox/team-contract.blackbox.test.ts@@ -34,7 +34,15 @@ type Json = Record<string, unknown>;/* ─────────────── literals from the frozen contract (§8 Types) ─────────────── */-const CAPABILITIES = ["list", "status", "cancel", "capture", "capture_since_seq", "capture_spans", "resize"];+const CAPABILITIES = [+ "list",+ "status",+ "cancel",+ "capture",+ "capture_since_seq",+ "capture_spans",+ "resize",+];const SLOT_STATES = ["STARTING","RUNNING",diff --git a/packages/cli/src/mcp-blackbox/tool-surface.blackbox.test.ts b/packages/cli/src/mcp-blackbox/tool-surface.blackbox.test.tsindex c23650ee..0e1da051 100644--- a/packages/cli/src/mcp-blackbox/tool-surface.blackbox.test.ts+++ b/packages/cli/src/mcp-blackbox/tool-surface.blackbox.test.ts@@ -24,7 +24,15 @@ useBlackboxEnv();type Json = Record<string, unknown>;const keys = (v: unknown): string[] => Object.keys(v as Json).sort();-const CAPABILITIES = ["list", "status", "cancel", "capture", "capture_since_seq", "capture_spans", "resize"];+const CAPABILITIES = [+ "list",+ "status",+ "cancel",+ "capture",+ "capture_since_seq",+ "capture_spans",+ "resize",+];// REQ-15: literal sorted sets from architecture-contracts.md, not from implementation.const ALL_TOOLS = [diff --git a/packages/cli/src/pane/box-locate.test.ts b/packages/cli/src/pane/box-locate.test.tsindex 23e287d6..f111be4b 100644--- a/packages/cli/src/pane/box-locate.test.ts+++ b/packages/cli/src/pane/box-locate.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from "bun:test";import { isRuleRow, locateBox } from "./box-locate.js";-import { boxTopRow, type ScreenState } from "./screen-model.js";+import { type ScreenState, boxTopRow } from "./screen-model.js";import { loadScreen } from "./test-helpers/fixtures.js";// Literal row indexes read from the real captures, independent of either locator.@@ -182,15 +182,23 @@ describe("U5 locateBox at captured widths", () => {});test("includes a bounding rule exactly 40 rows from the cursor", () => {- for (const [above, below] of [[40, 1], [1, 40]] as const) {+ for (const [above, below] of [+ [40, 1],+ [1, 40],+ ] as const) {expect(locateBox(withRuleDistances(above, below))).toEqual({- top: 0, bottom: 41, caretRow: above,+ top: 0,+ bottom: 41,+ caretRow: above,});}});test("does not search beyond 40 rows for either bounding rule", () => {- for (const [above, below] of [[41, 1], [1, 41]] as const) {+ for (const [above, below] of [+ [41, 1],+ [1, 41],+ ] as const) {expect(locateBox(withRuleDistances(above, below))).toBeNull();}});@@ -207,7 +215,15 @@ describe("U6 isRuleRow without a width test", () => {test("rejects 19-cell indented dashed empty and missing rows", () => {const rule = loadScreen("repl-typed").lines[45]!.slice(0, 20);- for (const line of [rule.slice(0, 19), ` ${rule}`, `${rule} `, "╌".repeat(20), "-".repeat(20), "", undefined]) {+ for (const line of [+ rule.slice(0, 19),+ ` ${rule}`,+ `${rule} `,+ "╌".repeat(20),+ "-".repeat(20),+ "",+ undefined,+ ]) {expect(isRuleRow(line)).toBe(false);}});@@ -239,7 +255,9 @@ describe("U6 isRuleRow without a width test", () => {test("locating a box never reads cols", () => {const screen = loadScreen("repl-typed");Object.defineProperty(screen, "cols", {- get() { throw new Error("locateBox read cols"); },+ get() {+ throw new Error("locateBox read cols");+ },});expect(locateBox(screen)).toEqual({ top: 45, bottom: 47, caretRow: 46 });});diff --git a/packages/cli/src/pane/input-gate.test.ts b/packages/cli/src/pane/input-gate.test.tsindex 9970acb7..1ab72bd5 100644--- a/packages/cli/src/pane/input-gate.test.ts+++ b/packages/cli/src/pane/input-gate.test.ts@@ -1,5 +1,13 @@import { afterEach, describe, expect, test } from "bun:test";-import { existsSync, mkdirSync, mkdtempSync, realpathSync, rmSync, symlinkSync, writeFileSync } from "node:fs";+import {+ existsSync,+ mkdirSync,+ mkdtempSync,+ realpathSync,+ rmSync,+ symlinkSync,+ writeFileSync,+} from "node:fs";import { tmpdir } from "node:os";import { join, relative } from "node:path";import { checkGateBinding, normaliseTranscriptPath } from "./gate-binding.js";@@ -252,7 +260,9 @@ describe("U1 classifySendReply", () => {for (const reason of ["text_mismatch", "empty_box", "still_in_box", "unconfirmed"] as const) {for (const fields of [{}, { typed: false }, { typed: true }]) {expect(- classifySendReply(failure("not_accepted", "pane 0: refusal detail", { reason, ...fields }))+ classifySendReply(+ failure("not_accepted", "pane 0: refusal detail", { reason, ...fields })+ )).toEqual({kind: "not_accepted",reason,@@ -271,7 +281,13 @@ describe("U1 classifySendReply", () => {const error = formatDetail(message, "it differs from what was sent");expect(classifySendReply(failure("not_accepted", error, { reason: "text_mismatch", typed: true }))- ).toEqual({ kind: "not_accepted", reason: "text_mismatch", maybeSubmitted: true, typed: true, detail: error });+ ).toEqual({+ kind: "not_accepted",+ reason: "text_mismatch",+ maybeSubmitted: true,+ typed: true,+ detail: error,+ });});test("does not mark noLoss, windowCut or lostAgain mismatches maybeSubmitted", () => {@@ -285,7 +301,13 @@ describe("U1 classifySendReply", () => {const error = formatDetail(MISMATCH_MESSAGE, detail);expect(classifySendReply(failure("not_accepted", error, { reason: "text_mismatch", typed: true }))- ).toEqual({ kind: "not_accepted", reason: "text_mismatch", maybeSubmitted: false, typed: true, detail: error });+ ).toEqual({+ kind: "not_accepted",+ reason: "text_mismatch",+ maybeSubmitted: false,+ typed: true,+ detail: error,+ });}});@@ -342,7 +364,14 @@ describe("U1 classifySendReply", () => {});test("keeps other README codes and unknown codes unexpected", () => {- for (const code of ["unknown_verb", "unsupported", "internal", "pane_is_control", "too_small", "future_code"]) {+ for (const code of [+ "unknown_verb",+ "unsupported",+ "internal",+ "pane_is_control",+ "too_small",+ "future_code",+ ]) {expect(classifySendReply(failure(code, "upstream detail"))).toEqual({kind: "unexpected",code,@@ -355,44 +384,105 @@ describe("U1 classifySendReply", () => {describe("U3 sendBudgetMs", () => {// Literal expected values from magmux's TestSendBudgetWorkedValues; no copied formula oracle.test.each([- ["Go short submit", { readyTimeoutMs: 0, text: "", keys: 0, submit: true, typed: false }, 20780],- ["Go 500 keys and a submit", { readyTimeoutMs: 0, text: "", keys: 500, submit: true, typed: false }, 42780],- ["Go readyTimeoutMs 60000", { readyTimeoutMs: 60000, text: "", keys: 0, submit: true, typed: false }, 70780],- ["Go TYPE with three writes", { readyTimeoutMs: 0, text: "a\nb", keys: 0, submit: false, typed: true }, 14840],- ["13-character SUBMIT", { readyTimeoutMs: 10000, text: "run the tests", keys: 1, submit: true }, 20844],- ["300-character file-template SUBMIT", { readyTimeoutMs: 10000, text: "x".repeat(300), keys: 1, submit: true }, 21024],- ["512-character typed SUBMIT", { readyTimeoutMs: 10000, text: "x".repeat(512), keys: 1, submit: true }, 21144],- ["command TYPE", { readyTimeoutMs: 10000, text: "/model haiku", keys: 0, submit: false }, 14800],+ [+ "Go short submit",+ { readyTimeoutMs: 0, text: "", keys: 0, submit: true, typed: false },+ 20780,+ ],+ [+ "Go 500 keys and a submit",+ { readyTimeoutMs: 0, text: "", keys: 500, submit: true, typed: false },+ 42780,+ ],+ [+ "Go readyTimeoutMs 60000",+ { readyTimeoutMs: 60000, text: "", keys: 0, submit: true, typed: false },+ 70780,+ ],+ [+ "Go TYPE with three writes",+ { readyTimeoutMs: 0, text: "a\nb", keys: 0, submit: false, typed: true },+ 14840,+ ],+ [+ "13-character SUBMIT",+ { readyTimeoutMs: 10000, text: "run the tests", keys: 1, submit: true },+ 20844,+ ],+ [+ "300-character file-template SUBMIT",+ { readyTimeoutMs: 10000, text: "x".repeat(300), keys: 1, submit: true },+ 21024,+ ],+ [+ "512-character typed SUBMIT",+ { readyTimeoutMs: 10000, text: "x".repeat(512), keys: 1, submit: true },+ 21144,+ ],+ [+ "command TYPE",+ { readyTimeoutMs: 10000, text: "/model haiku", keys: 0, submit: false },+ 14800,+ ],["command Enter SUBMIT", { readyTimeoutMs: 10000, text: "", keys: 1, submit: true }, 20824],] as const)("matches %s exactly", (_name, shape, expected) => {expect(sendBudgetMs(shape)).toBe(expected);});test("defaults nonpositive readiness waits and clamps only above 60000", () => {- for (const [ready, expected] of [[0, 10000], [-5, 10000], [1, 1], [2500, 2500], [60000, 60000], [600000, 60000]] as const) {+ for (const [ready, expected] of [+ [0, 10000],+ [-5, 10000],+ [1, 1],+ [2500, 2500],+ [60000, 60000],+ [600000, 60000],+ ] as const) {expect(readyWaitMs(ready)).toBe(expected);}});test("uses the default or clamped readiness wait in the full budget", () => {- for (const [readyTimeoutMs, expected] of [[0, 20844], [-5, 20844], [60000, 70844], [600000, 70844]] as const) {- expect(sendBudgetMs({ readyTimeoutMs, text: "run the tests", keys: 1, submit: true })).toBe(expected);+ for (const [readyTimeoutMs, expected] of [+ [0, 20844],+ [-5, 20844],+ [60000, 70844],+ [600000, 70844],+ ] as const) {+ expect(sendBudgetMs({ readyTimeoutMs, text: "run the tests", keys: 1, submit: true })).toBe(+ expected+ );}});test("counts typed writes at rune and newline boundaries", () => {for (const [text, expected] of [- ["", 0], ["hi", 1], ["a".repeat(32), 1], ["a".repeat(33), 2],- ["a".repeat(512), 16], ["a\nb", 3], ["a\r\nb", 3], ["a\rb", 3],- ["\n", 1], ["\r\n", 1], ["\r", 1], ["\n\n", 2],- ["😀".repeat(32), 1], ["😀".repeat(33), 2],+ ["", 0],+ ["hi", 1],+ ["a".repeat(32), 1],+ ["a".repeat(33), 2],+ ["a".repeat(512), 16],+ ["a\nb", 3],+ ["a\r\nb", 3],+ ["a\rb", 3],+ ["\n", 1],+ ["\r\n", 1],+ ["\r", 1],+ ["\n\n", 2],+ ["😀".repeat(32), 1],+ ["😀".repeat(33), 2],] as const) {expect(typedWriteCount(text)).toBe(expected);}});test("uses rune and newline write counts in full TYPE budgets", () => {- for (const [text, expected] of [["😀".repeat(33), 14820], ["a\nb", 14840], ["a\r\nb", 14840], ["a\rb", 14840]] as const) {+ for (const [text, expected] of [+ ["😀".repeat(33), 14820],+ ["a\nb", 14840],+ ["a\r\nb", 14840],+ ["a\rb", 14840],+ ] as const) {expect(sendBudgetMs({ readyTimeoutMs: 10000, text, keys: 0, submit: false })).toBe(expected);}});@@ -401,58 +491,105 @@ describe("U3 sendBudgetMs", () => {describe("U4 parseGateInput", () => {test("selects pane 0 by id rather than array position", () => {expect(- parseGateInput({ panes: [- { pane: 7, input: { ready: false, reason: "dialog:trust" } },- { pane: 0, input: { ready: true } },- ] }, 1234)+ parseGateInput(+ {+ panes: [+ { pane: 7, input: { ready: false, reason: "dialog:trust" } },+ { pane: 0, input: { ready: true } },+ ],+ },+ 1234+ )).toEqual({ ready: true, reason: null, dialog: null, detail: null, receivedAt: 1234 });});test("returns null when pane 0 or its input is absent", () => {- for (const list of [undefined, null, {}, { panes: [] },+ for (const list of [+ undefined,+ null,+ {},+ { panes: [] },{ panes: [{ pane: 1, input: { ready: true } }] },- paneList({}), paneList({ input: null }),+ paneList({}),+ paneList({ input: null }),]) {expect(parseGateInput(list, 1234)).toBeNull();}});test("preserves the documented reason detail and caller timestamp", () => {- expect(parseGateInput(paneList({ input: {- ready: false, reason: "box_not_empty", detail: "the input box holds text",- } }), 42)).toEqual({- ready: false, reason: "box_not_empty", dialog: null,- detail: "the input box holds text", receivedAt: 42,+ expect(+ parseGateInput(+ paneList({+ input: {+ ready: false,+ reason: "box_not_empty",+ detail: "the input box holds text",+ },+ }),+ 42+ )+ ).toEqual({+ ready: false,+ reason: "box_not_empty",+ dialog: null,+ detail: "the input box holds text",+ receivedAt: 42,});});test("parses all eight dialog kinds", () => {for (const dialog of DIALOG_KINDS) {- expect(parseGateInput(paneList({ input: { ready: false, reason: `dialog:${dialog}` } }), 10)).toEqual({- ready: false, reason: `dialog:${dialog}`, dialog, detail: null, receivedAt: 10,+ expect(+ parseGateInput(paneList({ input: { ready: false, reason: `dialog:${dialog}` } }), 10)+ ).toEqual({+ ready: false,+ reason: `dialog:${dialog}`,+ dialog,+ detail: null,+ receivedAt: 10,});}});test("keeps future dialog and readiness reasons raw", () => {for (const reason of ["dialog:future_kind", "future_readiness_reason"]) {- expect(parseGateInput(paneList({ input: { ready: false, reason, detail: "new detail" } }), 10)).toEqual({- ready: false, reason, dialog: null, detail: "new detail", receivedAt: 10,+ expect(+ parseGateInput(paneList({ input: { ready: false, reason, detail: "new detail" } }), 10)+ ).toEqual({+ ready: false,+ reason,+ dialog: null,+ detail: "new detail",+ receivedAt: 10,});}});test("ignores undocumented boxHasText and dismissable fields", () => {- expect(parseGateInput(paneList({ input: {- ready: true, boxHasText: true, dismissable: ["permission"],- } }), 10)).toEqual({ ready: true, reason: null, dialog: null, detail: null, receivedAt: 10 });+ expect(+ parseGateInput(+ paneList({+ input: {+ ready: true,+ boxHasText: true,+ dismissable: ["permission"],+ },+ }),+ 10+ )+ ).toEqual({ ready: true, reason: null, dialog: null, detail: null, receivedAt: 10 });});test("normalises omitted reason and detail and refreshes receivedAt", () => {const list = paneList({ input: { ready: false } });for (const now of [0, 100, 200]) {expect(parseGateInput(list, now)).toEqual({- ready: false, reason: null, dialog: null, detail: null, receivedAt: now,+ ready: false,+ reason: null,+ dialog: null,+ detail: null,+ receivedAt: now,});}});@@ -463,50 +600,90 @@ describe("U4 R1.8 parseGateBinding", () => {const transcriptPath = "/isolated/config/projects/project-a/session-a.jsonl";test("selects pane 0 binding by id rather than array position", () => {- expect(parseGateBinding({ panes: [- { pane: 2, bound: "mtime", sessionId: "other-session", transcriptPath: "/other/session.jsonl" },- { pane: 0, bound: "named", sessionId, transcriptPath },- ] })).toEqual({ bound: "named", boundRaw: "named", sessionId, transcriptPath });+ expect(+ parseGateBinding({+ panes: [+ {+ pane: 2,+ bound: "mtime",+ sessionId: "other-session",+ transcriptPath: "/other/session.jsonl",+ },+ { pane: 0, bound: "named", sessionId, transcriptPath },+ ],+ })+ ).toEqual({ bound: "named", boundRaw: "named", sessionId, transcriptPath });});test("preserves named prompt and mtime binding kinds without promoting them", () => {for (const bound of ["named", "prompt", "mtime"] as const) {expect(parseGateBinding(paneList({ bound, sessionId, transcriptPath }))).toEqual({- bound, boundRaw: bound, sessionId, transcriptPath,+ bound,+ boundRaw: bound,+ sessionId,+ transcriptPath,});}});test("returns null when pane 0 is absent", () => {- for (const list of [undefined, null, {}, { panes: [] }, { panes: [{ pane: 1, bound: "named", sessionId, transcriptPath }] }]) {+ for (const list of [+ undefined,+ null,+ {},+ { panes: [] },+ { panes: [{ pane: 1, bound: "named", sessionId, transcriptPath }] },+ ]) {expect(parseGateBinding(list)).toBeNull();}});test("reports missing binding metadata as unbound rather than named", () => {expect(parseGateBinding(paneList({}))).toEqual({- bound: "unbound", boundRaw: null, sessionId: null, transcriptPath: null,+ bound: "unbound",+ boundRaw: null,+ sessionId: null,+ transcriptPath: null,});expect(parseGateBinding(paneList({ sessionId, transcriptPath }))).toEqual({- bound: "unbound", boundRaw: null, sessionId, transcriptPath,+ bound: "unbound",+ boundRaw: null,+ sessionId,+ transcriptPath,});});test("keeps an unknown raw binding while classifying it unbound", () => {- expect(parseGateBinding(paneList({ bound: "future_binding", sessionId, transcriptPath }))).toEqual({- bound: "unbound", boundRaw: "future_binding", sessionId, transcriptPath,+ expect(+ parseGateBinding(paneList({ bound: "future_binding", sessionId, transcriptPath }))+ ).toEqual({+ bound: "unbound",+ boundRaw: "future_binding",+ sessionId,+ transcriptPath,});});test("treats missing identity or path as unbound without borrowing another pane", () => {// R1.8: a missing binding field is unbound, even if bound itself says named.for (const [own, missing] of [- [{ bound: "named", transcriptPath }, { sessionId: null, transcriptPath }],- [{ bound: "named", sessionId }, { sessionId, transcriptPath: null }],+ [+ { bound: "named", transcriptPath },+ { sessionId: null, transcriptPath },+ ],+ [+ { bound: "named", sessionId },+ { sessionId, transcriptPath: null },+ ],] as const) {- expect(parseGateBinding({ panes: [- { pane: 1, bound: "named", sessionId, transcriptPath }, { pane: 0, ...own },- ] })).toEqual({ bound: "unbound", boundRaw: "named", ...missing });+ expect(+ parseGateBinding({+ panes: [+ { pane: 1, bound: "named", sessionId, transcriptPath },+ { pane: 0, ...own },+ ],+ })+ ).toEqual({ bound: "unbound", boundRaw: "named", ...missing });}});});@@ -569,7 +746,9 @@ describe("U11 checkGateBinding and normaliseTranscriptPath", () => {];for (const transcriptPath of paths) {expect(normaliseTranscriptPath(transcriptPath)).toBe(canonical);- expect(checkGateBinding(namedList(expected, { transcriptPath }), expected)).toEqual({ ok: true });+ expect(checkGateBinding(namedList(expected, { transcriptPath }), expected)).toEqual({+ ok: true,+ });}});@@ -582,8 +761,12 @@ describe("U11 checkGateBinding and normaliseTranscriptPath", () => {const canonical = realpathSync(expected.transcriptPath);for (const transcriptPath of [join(parentLink, `${expected.sessionUuid}.jsonl`), fileLink]) {expect(normaliseTranscriptPath(transcriptPath)).toBe(canonical);- expect(checkGateBinding(namedList(expected, { transcriptPath }), expected)).toEqual({ ok: true });- expect(checkGateBinding(namedList(expected), { ...expected, transcriptPath })).toEqual({ ok: true });+ expect(checkGateBinding(namedList(expected, { transcriptPath }), expected)).toEqual({+ ok: true,+ });+ expect(checkGateBinding(namedList(expected), { ...expected, transcriptPath })).toEqual({+ ok: true,+ });}});@@ -603,14 +786,18 @@ describe("U11 checkGateBinding and normaliseTranscriptPath", () => {expect(existsSync(expectedPath)).toBe(false);expect(normaliseTranscriptPath(actualPath)).toBe(canonical);expect(normaliseTranscriptPath(expectedPath)).toBe(canonical);- expect(checkGateBinding(- namedList(expected, { transcriptPath: actualPath, transcriptSeen: false }),- { ...expected, transcriptPath: expectedPath }- )).toEqual({ ok: true });- expect(checkGateBinding(- namedList(expected, { transcriptPath: expectedPath, transcriptSeen: false }),- { ...expected, transcriptPath: actualPath }- )).toEqual({ ok: true });+ expect(+ checkGateBinding(+ namedList(expected, { transcriptPath: actualPath, transcriptSeen: false }),+ { ...expected, transcriptPath: expectedPath }+ )+ ).toEqual({ ok: true });+ expect(+ checkGateBinding(+ namedList(expected, { transcriptPath: expectedPath, transcriptSeen: false }),+ { ...expected, transcriptPath: actualPath }+ )+ ).toEqual({ ok: true });expect(existsSync(expectedPath)).toBe(false);}});@@ -640,18 +827,26 @@ describe("U11 checkGateBinding and normaliseTranscriptPath", () => {{ bound: "named" },];for (const binding of bindings) {- expectUnbound({ panes: [- { pane: 1, ...declaredPane, bound: "named", sessionId, transcriptPath },- { pane: 0, ...declaredPane, ...binding },- ] }, expected);+ expectUnbound(+ {+ panes: [+ { pane: 1, ...declaredPane, bound: "named", sessionId, transcriptPath },+ { pane: 0, ...declaredPane, ...binding },+ ],+ },+ expected+ );}});test("rejects a different session id even when the transcript path matches", () => {const { expected } = bindingSetup();- expectUnbound(namedList(expected, {- sessionId: "22222222-2222-4222-8222-222222222222",- }), expected);+ expectUnbound(+ namedList(expected, {+ sessionId: "22222222-2222-4222-8222-222222222222",+ }),+ expected+ );});test("rejects a different transcript path even when the session id or basename matches", () => {@@ -662,13 +857,16 @@ describe("U11 checkGateBinding and normaliseTranscriptPath", () => {symlinkSync(otherProject, otherParentLink, "dir");const sameBasename = join(otherProject, `${expected.sessionUuid}.jsonl`);const differentBasename = join(projectDir, "other-session.jsonl");- for (const transcriptPath of [sameBasename, differentBasename]) writeFileSync(transcriptPath, "");+ for (const transcriptPath of [sameBasename, differentBasename])+ writeFileSync(transcriptPath, "");for (const transcriptPath of [sameBasename,differentBasename,join(otherParentLink, `${expected.sessionUuid}.jsonl`),]) {- expect(normaliseTranscriptPath(transcriptPath)).not.toBe(realpathSync(expected.transcriptPath));+ expect(normaliseTranscriptPath(transcriptPath)).not.toBe(+ realpathSync(expected.transcriptPath)+ );expectUnbound(namedList(expected, { transcriptPath }), expected);}});diff --git a/packages/cli/src/pane/magmux-client-reason.test.ts b/packages/cli/src/pane/magmux-client-reason.test.tsindex fe37340c..aa4cb0f4 100644--- a/packages/cli/src/pane/magmux-client-reason.test.ts+++ b/packages/cli/src/pane/magmux-client-reason.test.ts@@ -1,6 +1,6 @@import { describe, expect, test } from "bun:test";import { existsSync, mkdtempSync, rmSync } from "node:fs";-import { createServer, type Socket } from "node:net";+import { type Socket, createServer } from "node:net";import { join } from "node:path";import { MagmuxClient, type MagmuxReply } from "./magmux-client.js";@@ -26,8 +26,7 @@ async function exchange(replies: FailureLine[], fragmented = false): Promise<Maglet buffer = "";socket.on("data", (chunk) => {buffer += chunk.toString("utf8");- let newline: number;- while ((newline = buffer.indexOf("\n")) >= 0) {+ for (let newline = buffer.indexOf("\n"); newline >= 0; newline = buffer.indexOf("\n")) {const line = buffer.slice(0, newline);buffer = buffer.slice(newline + 1);if (!line) continue;@@ -65,7 +64,9 @@ async function exchange(replies: FailureLine[], fragmented = false): Promise<Magclient = await MagmuxClient.dial(sockPath);const results: MagmuxReply[] = [];for (let index = 0; index < replies.length; index++) {- results.push(await client.request({ type: "send", pane: 0, text: "run the tests", typed: true }, 2000));+ results.push(+ await client.request({ type: "send", pane: 0, text: "run the tests", typed: true }, 2000)+ );}return results;} finally {@@ -74,7 +75,7 @@ async function exchange(replies: FailureLine[], fragmented = false): Promise<Magtry {if (server.listening) {await new Promise<void>((resolve, reject) => {- server.close((error) => error ? reject(error) : resolve());+ server.close((error) => (error ? reject(error) : resolve()));});}} finally {@@ -88,12 +89,24 @@ async function exchange(replies: FailureLine[], fragmented = false): Promise<Magdescribe("U2 MagmuxClient failure reply fields", () => {test("keeps busy reason and typed true", async () => {- const reply: FailureLine = { ok: false, code: "busy", error: "typing stopped", reason: "dialog:permission", typed: true };+ const reply: FailureLine = {+ ok: false,+ code: "busy",+ error: "typing stopped",+ reason: "dialog:permission",+ typed: true,+ };expect(await exchange([reply])).toEqual([reply]);});test("keeps not_accepted reason and typed true", async () => {- const reply: FailureLine = { ok: false, code: "not_accepted", error: "the text is still in the box", reason: "still_in_box", typed: true };+ const reply: FailureLine = {+ ok: false,+ code: "not_accepted",+ error: "the text is still in the box",+ reason: "still_in_box",+ typed: true,+ };expect(await exchange([reply])).toEqual([reply]);});@@ -105,21 +118,36 @@ describe("U2 MagmuxClient failure reply fields", () => {});test("keeps typed while omitting absent reason", async () => {- const reply: FailureLine = { ok: false, code: "pane_dead", error: "pane died while typing", typed: true };+ const reply: FailureLine = {+ ok: false,+ code: "pane_dead",+ error: "pane died while typing",+ typed: true,+ };const results = await exchange([reply]);expect(results).toEqual([reply]);expect(Object.hasOwn(results[0]!, "reason")).toBe(false);});test("preserves an explicitly false typed field", async () => {- const reply: FailureLine = { ok: false, code: "busy", error: "not ready", reason: "terminal_not_ready", typed: false };+ const reply: FailureLine = {+ ok: false,+ code: "busy",+ error: "not ready",+ reason: "terminal_not_ready",+ typed: false,+ };const results = await exchange([reply]);expect(results).toEqual([reply]);expect(Object.hasOwn(results[0]!, "typed")).toBe(true);});test("omits both fields on an ordinary failure", async () => {- const reply: FailureLine = { ok: false, code: "no_such_pane", error: "no pane 0 (it may have been closed)" };+ const reply: FailureLine = {+ ok: false,+ code: "no_such_pane",+ error: "no pane 0 (it may have been closed)",+ };const results = await exchange([reply]);expect(results).toEqual([reply]);expect(Object.hasOwn(results[0]!, "reason")).toBe(false);@@ -127,7 +155,13 @@ describe("U2 MagmuxClient failure reply fields", () => {});test("keeps an unknown reason verbatim", async () => {- const reply: FailureLine = { ok: false, code: "busy", error: "new gate state", reason: "dialog:future_kind", typed: true };+ const reply: FailureLine = {+ ok: false,+ code: "busy",+ error: "new gate state",+ reason: "dialog:future_kind",+ typed: true,+ };expect(await exchange([reply])).toEqual([reply]);});@@ -143,7 +177,13 @@ describe("U2 MagmuxClient failure reply fields", () => {});test("keeps optional fields when a failure line arrives in fragments", async () => {- const reply: FailureLine = { ok: false, code: "busy", error: "question appeared", reason: "dialog:question", typed: true };+ const reply: FailureLine = {+ ok: false,+ code: "busy",+ error: "question appeared",+ reason: "dialog:question",+ typed: true,+ };expect(await exchange([reply], true)).toEqual([reply]);});});diff --git a/packages/cli/src/pane/pane-gated-delivery.integration.test.ts b/packages/cli/src/pane/pane-gated-delivery.integration.test.tsindex 3da3c1f5..36d463e7 100644--- a/packages/cli/src/pane/pane-gated-delivery.integration.test.ts+++ b/packages/cli/src/pane/pane-gated-delivery.integration.test.ts@@ -11,14 +11,14 @@ import type { MagmuxReply } from "./magmux-client.js";import { inputBox } from "./screen-classifier.js";import type { ScreenState } from "./screen-model.js";import {+ type GateRun,+ type SendTrace,clientOf,disposeGatePanes,gateUntil,gatedSends,- type GateRun,startGatePane,submissions,- type SendTrace,} from "./test-helpers/gated-pane.js";import { MAGMUX, NO_MAGMUX_MESSAGE } from "./test-helpers/hermetic-env.js";@@ -105,7 +105,9 @@ async function assertLoudLoss(r: GateRun, reason: string): Promise<void> {expect(r.transitions.some(({ to }) => to === "EMPTY" || to === "COMPLETED")).toBe(false);expect(submissions(r)).toEqual([]);const failedAt = r.transitions.find(({ to }) => to === "FAILED")?.at ?? 0;- expect(failedAt - (gatedSends(r)[0]?.at ?? Infinity)).toBeGreaterThanOrEqual(29_000);+ expect(failedAt - (gatedSends(r)[0]?.at ?? Number.POSITIVE_INFINITY)).toBeGreaterThanOrEqual(+ 29_000+ );expect(failedAt - (gatedSends(r)[0]?.at ?? 0)).toBeLessThanOrEqual(31_000);}@@ -221,7 +223,9 @@ describe.skipIf(!MAGMUX)(({ reply }) => reply?.ok && reply.result.evidence === "history");expect(confirmation?.repliedAt).toBeDefined();- expect(runningAt).toBeGreaterThanOrEqual(confirmation?.repliedAt ?? Infinity);+ expect(runningAt).toBeGreaterThanOrEqual(+ confirmation?.repliedAt ?? Number.POSITIVE_INFINITY+ );expect(existsSync(r.transcript)).toBe(false);await settled(r);assertOneCopy(r, PROMPT);@@ -294,7 +298,9 @@ describe.skipIf(!MAGMUX)();expect(clears).toHaveLength(command ? 1 : 0);if (command)- expect(clears[0]?.at).toBeGreaterThanOrEqual(typed[0]?.repliedAt ?? Infinity);+ expect(clears[0]?.at).toBeGreaterThanOrEqual(+ typed[0]?.repliedAt ?? Number.POSITIVE_INFINITY+ );},T);@@ -450,7 +456,7 @@ describe.skipIf(!MAGMUX)(expect(snapshot.anomalies).toContain("gate_vim_mode");expect(submissions(r)).toEqual([]);expect(- (r.transitions.find(({ to }) => to === "FAILED")?.at ?? Infinity) -+ (r.transitions.find(({ to }) => to === "FAILED")?.at ?? Number.POSITIVE_INFINITY) -(gatedSends(r)[0]?.at ?? 0)).toBeLessThan(12_000);},@@ -498,7 +504,8 @@ describe.skipIf(!MAGMUX)(expect(snapshot.detail).toContain("-- INSERT --");expect(snapshot.anomalies).toContain("gate_vim_mode");expect(- (r.transitions.find(({ to }) => to === "FAILED")?.at ?? Infinity) - startedAt+ (r.transitions.find(({ to }) => to === "FAILED")?.at ?? Number.POSITIVE_INFINITY) -+ startedAt).toBeLessThan(5000);expect(gatedSends(r)).toEqual([]);expect(submissions(r)).toEqual([]);@@ -607,7 +614,9 @@ describe.skipIf(!MAGMUX)(for (const send of gatedSends(r)) {expect(send.message.readyTimeoutMs as number).toBeGreaterThanOrEqual(1000);expect(send.message.readyTimeoutMs as number).toBeLessThanOrEqual(10_000);- expect(send.at + (send.timeout ?? Infinity)).toBeLessThanOrEqual(began + 30_000);+ expect(send.at + (send.timeout ?? Number.POSITIVE_INFINITY)).toBeLessThanOrEqual(+ began + 30_000+ );expect(send.repliedAt).toBeDefined();}expect(submissions(r)).toEqual([]);diff --git a/packages/cli/src/pane/pane-resize.integration.test.ts b/packages/cli/src/pane/pane-resize.integration.test.tsindex d0b06514..ffadff90 100644--- a/packages/cli/src/pane/pane-resize.integration.test.ts+++ b/packages/cli/src/pane/pane-resize.integration.test.ts@@ -37,7 +37,8 @@ async function resizeAvailable(): Promise<boolean> {);const socket = await waitFor(() => {- if (proc?.exitCode !== null) throw new Error("magmux capability probe exited before its socket appeared");+ if (proc?.exitCode !== null)+ throw new Error("magmux capability probe exited before its socket appeared");try {return findSocket(env.sockRoot);} catch (error) {@@ -48,7 +49,8 @@ async function resizeAvailable(): Promise<boolean> {{ what: "capability probe socket", timeoutMs: 5_000, intervalMs: 50 }).catch(async (error) => {proc?.kill("SIGTERM");- const stderr = proc?.stderr instanceof ReadableStream ? await new Response(proc.stderr).text() : "";+ const stderr =+ proc?.stderr instanceof ReadableStream ? await new Response(proc.stderr).text() : "";throw new Error(`${String(error)}; magmux stderr: ${stderr}`);});client = await MagmuxClient.connect(socket);@@ -67,7 +69,10 @@ async function resizeAvailable(): Promise<boolean> {client?.close();proc?.kill("SIGTERM");if (proc) {- const ended = await Promise.race([proc.exited.then(() => true), Bun.sleep(2_000).then(() => false)]);+ const ended = await Promise.race([+ proc.exited.then(() => true),+ Bun.sleep(2_000).then(() => false),+ ]);if (!ended) {proc.kill("SIGKILL");await proc.exited;@@ -98,8 +103,7 @@ function findSocket(dir: string): string | undefined {}const RESIZE_AVAILABLE = await resizeAvailable();-if (!RESIZE_AVAILABLE)- console.warn(`pane resize SKIPPED — ${resizeUnavailableReason}`);+if (!RESIZE_AVAILABLE) console.warn(`pane resize SKIPPED — ${resizeUnavailableReason}`);const T_TEST = 60_000;type Json = Record<string, unknown>;@@ -142,155 +146,249 @@ describe.skipIf(!RESIZE_AVAILABLE)("pane resize through MCP (requires magmux resconst created = await call("create_session", { model });const id = created.session_id as string;await waitFor(async () => (await row(id))?.state === "AWAITING_INPUT", {- what: "promptless session ready", timeoutMs: 20_000, intervalMs: 100,+ what: "promptless session ready",+ timeoutMs: 20_000,+ intervalMs: 100,});return id;}async function capture(id: string): Promise<CaptureResult> {- return await call("capture_session", { session_id: id }) as unknown as CaptureResult;+ return (await call("capture_session", { session_id: id })) as unknown as CaptureResult;}async function resize(id: string, cols: number, rows: number): Promise<ResizeResult> {- return await call("resize_session", { session_id: id, cols, rows }) as unknown as ResizeResult;+ return (await call("resize_session", {+ session_id: id,+ cols,+ rows,+ })) as unknown as ResizeResult;}async function redrawn(id: string, cols: number, rows: number): Promise<CaptureResult> {- return await waitFor(async () => {- const c = await capture(id);- return c.cols === cols && c.rows === rows && c.lines.some((l) => new RegExp(`─{${cols - 1},}`).test(l))- ? c : undefined;- }, { what: "fake child SIGWINCH redraw", timeoutMs: 10_000, intervalMs: 100 });+ return await waitFor(+ async () => {+ const c = await capture(id);+ return c.cols === cols &&+ c.rows === rows &&+ c.lines.some((l) => new RegExp(`─{${cols - 1},}`).test(l))+ ? c+ : undefined;+ },+ { what: "fake child SIGWINCH redraw", timeoutMs: 10_000, intervalMs: 100 }+ );}- test("resize reports coherent capture geometry, seq and a full-width box rule", async () => {- const id = await create();- const before = await capture(id);- const r = await resize(id, 100, 40);- expect(r).toMatchObject({ session_id: id, cols: 100, rows: 40, changed: true });- expect(typeof r.seq).toBe("number");- expect(r.seq).toBeGreaterThan(before.seq);- const c = await capture(id);- expect(c.cols).toBe(100);- expect(c.rows).toBe(40);- expect(c.seq).toBeGreaterThanOrEqual(r.seq);- expect((await redrawn(id, 100, 40)).lines.some((l) => /─{99,}/.test(l))).toBe(true);- }, T_TEST);+ test(+ "resize reports coherent capture geometry, seq and a full-width box rule",+ async () => {+ const id = await create();+ const before = await capture(id);+ const r = await resize(id, 100, 40);+ expect(r).toMatchObject({ session_id: id, cols: 100, rows: 40, changed: true });+ expect(typeof r.seq).toBe("number");+ expect(r.seq).toBeGreaterThan(before.seq);+ const c = await capture(id);+ expect(c.cols).toBe(100);+ expect(c.rows).toBe(40);+ expect(c.seq).toBeGreaterThanOrEqual(r.seq);+ expect((await redrawn(id, 100, 40)).lines.some((l) => /─{99,}/.test(l))).toBe(true);+ },+ T_TEST+ );for (const growth of [{ name: "160x50 → 160x60", from: undefined, cols: 160 },{ name: "100x40 → 220x60", from: { cols: 100, rows: 40 }, cols: 220 },]) {- test(`row grow ${growth.name} preserves the input box and settles the next turn`, async () => {- const id = await create();- expect(await capture(id)).toMatchObject({ cols: 160, rows: 50 });- const firstPrompt = "answer before growing the pane";- await call("send_input", { session_id: id, text: firstPrompt });- await waitFor(async () => {- const s = await row(id);- return s?.state === "AWAITING_INPUT" && (s.turns_completed as number) >= 1;- }, { what: "first turn settled before grow", timeoutMs: 25_000, intervalMs: 100 });+ test(+ `row grow ${growth.name} preserves the input box and settles the next turn`,+ async () => {+ const id = await create();+ expect(await capture(id)).toMatchObject({ cols: 160, rows: 50 });+ const firstPrompt = "answer before growing the pane";+ await call("send_input", { session_id: id, text: firstPrompt });+ await waitFor(+ async () => {+ const s = await row(id);+ return s?.state === "AWAITING_INPUT" && (s.turns_completed as number) >= 1;+ },+ { what: "first turn settled before grow", timeoutMs: 25_000, intervalMs: 100 }+ );- if (growth.from) {- await resize(id, growth.from.cols, growth.from.rows);- await redrawn(id, growth.from.cols, growth.from.rows);- }- await resize(id, growth.cols, 60);- const c = await redrawn(id, growth.cols, 60);- expect(c).toMatchObject({ cols: growth.cols, rows: 60 });- const rule = new RegExp(`─{${growth.cols - 1},}`);- expect(c.lines.slice(-6).some((l) => rule.test(l))).toBe(true);- expect(c.lines.some((l) => l.includes("─") && /cwd • fake|bypass permissions on/.test(l)))- .toBe(false);+ if (growth.from) {+ await resize(id, growth.from.cols, growth.from.rows);+ await redrawn(id, growth.from.cols, growth.from.rows);+ }+ await resize(id, growth.cols, 60);+ const c = await redrawn(id, growth.cols, 60);+ expect(c).toMatchObject({ cols: growth.cols, rows: 60 });+ const rule = new RegExp(`─{${growth.cols - 1},}`);+ expect(c.lines.slice(-6).some((l) => rule.test(l))).toBe(true);+ expect(+ c.lines.some((l) => l.includes("─") && /cwd • fake|bypass permissions on/.test(l))+ ).toBe(false);- const prompt = "answer after growing the pane";- await call("send_input", { session_id: id, text: prompt });- const answer = `ANSWER contract-fake-model ${createHash("sha1").update(prompt).digest("hex").slice(0, 8)}`;- await waitFor(async () => {- const s = await row(id);- const screen = await capture(id);- return s?.state === "AWAITING_INPUT" && (s.turns_completed as number) >= 2- && screen.lines.some((l) => l.includes(answer));- }, { what: "grown pane turn settled with answer", timeoutMs: 25_000, intervalMs: 100 });- }, T_TEST);+ const prompt = "answer after growing the pane";+ await call("send_input", { session_id: id, text: prompt });+ const answer = `ANSWER contract-fake-model ${createHash("sha1").update(prompt).digest("hex").slice(0, 8)}`;+ await waitFor(+ async () => {+ const s = await row(id);+ const screen = await capture(id);+ return (+ s?.state === "AWAITING_INPUT" &&+ (s.turns_completed as number) >= 2 &&+ screen.lines.some((l) => l.includes(answer))+ );+ },+ { what: "grown pane turn settled with answer", timeoutMs: 25_000, intervalMs: 100 }+ );+ },+ T_TEST+ );}- test("same size leaves the idle capture seq unchanged", async () => {- const id = await create();- await resize(id, 100, 40);- await redrawn(id, 100, 40);- const stable = await waitFor(async () => {- const a = await capture(id);- await Bun.sleep(400);- const b = await capture(id);- return a.seq === b.seq ? b : undefined;- }, { what: "stable resized screen", timeoutMs: 10_000, intervalMs: 100 });- const r = await resize(id, 100, 40);- expect(r).toMatchObject({ cols: 100, rows: 40, changed: false, seq: stable.seq });- expect(await call("capture_session", { session_id: id, since_seq: stable.seq }))- .toEqual({ unchanged: true, seq: stable.seq, final: false });- }, T_TEST);+ test(+ "same size leaves the idle capture seq unchanged",+ async () => {+ const id = await create();+ await resize(id, 100, 40);+ await redrawn(id, 100, 40);+ const stable = await waitFor(+ async () => {+ const a = await capture(id);+ await Bun.sleep(400);+ const b = await capture(id);+ return a.seq === b.seq ? b : undefined;+ },+ { what: "stable resized screen", timeoutMs: 10_000, intervalMs: 100 }+ );+ const r = await resize(id, 100, 40);+ expect(r).toMatchObject({ cols: 100, rows: 40, changed: false, seq: stable.seq });+ expect(await call("capture_session", { session_id: id, since_seq: stable.seq })).toEqual({+ unchanged: true,+ seq: stable.seq,+ final: false,+ });+ },+ T_TEST+ );- test("small dimensions clamp to 80 columns and 24 rows", async () => {- const id = await create();- expect(await resize(id, 5, 5)).toMatchObject({ cols: 80, rows: 24, changed: true });- await redrawn(id, 80, 24);- }, T_TEST);+ test(+ "small dimensions clamp to 80 columns and 24 rows",+ async () => {+ const id = await create();+ expect(await resize(id, 5, 5)).toMatchObject({ cols: 80, rows: 24, changed: true });+ await redrawn(id, 80, 24);+ },+ T_TEST+ );- test("a running slow turn survives resize and completes with its answer", async () => {- const id = await create("fake-tool_slow");- const prompt = "answer after the slow tool";- await call("send_input", { session_id: id, text: prompt });- await waitFor(async () => {- const s = await row(id);- return s?.state === "RUNNING" && s.activity === "Bash";- }, { what: "slow Bash tool running", timeoutMs: 20_000, intervalMs: 100 });- expect(await resize(id, 100, 40)).toMatchObject({ cols: 100, rows: 40, changed: true });- const answer = `ANSWER fake-tool_slow ${createHash("sha1").update(prompt).digest("hex").slice(0, 8)}`;- await waitFor(async () => {- const s = await row(id);- const c = await capture(id);- return s?.state === "AWAITING_INPUT" && (s.turns_completed as number) >= 1- && c.lines.some((l) => l.includes(answer));- }, { what: "resized turn settled with answer", timeoutMs: 25_000, intervalMs: 100 });- await call("send_input", { session_id: id, text: "/exit" });- await waitFor(async () => (await row(id))?.state === "COMPLETED", {- what: "answered session COMPLETED", timeoutMs: 15_000, intervalMs: 100,- });- }, T_TEST);+ test(+ "a running slow turn survives resize and completes with its answer",+ async () => {+ const id = await create("fake-tool_slow");+ const prompt = "answer after the slow tool";+ await call("send_input", { session_id: id, text: prompt });+ await waitFor(+ async () => {+ const s = await row(id);+ return s?.state === "RUNNING" && s.activity === "Bash";+ },+ { what: "slow Bash tool running", timeoutMs: 20_000, intervalMs: 100 }+ );+ expect(await resize(id, 100, 40)).toMatchObject({ cols: 100, rows: 40, changed: true });+ const answer = `ANSWER fake-tool_slow ${createHash("sha1").update(prompt).digest("hex").slice(0, 8)}`;+ await waitFor(+ async () => {+ const s = await row(id);+ const c = await capture(id);+ return (+ s?.state === "AWAITING_INPUT" &&+ (s.turns_completed as number) >= 1 &&+ c.lines.some((l) => l.includes(answer))+ );+ },+ { what: "resized turn settled with answer", timeoutMs: 25_000, intervalMs: 100 }+ );+ await call("send_input", { session_id: id, text: "/exit" });+ await waitFor(async () => (await row(id))?.state === "COMPLETED", {+ what: "answered session COMPLETED",+ timeoutMs: 15_000,+ intervalMs: 100,+ });+ },+ T_TEST+ );- test("concurrent resize calls leave the last caller's dimensions", async () => {- const id = await create();- const calls = [resize(id, 120, 40), resize(id, 90, 30), resize(id, 140, 45)];- const results = await Promise.all(calls);- for (const r of results) expect(typeof r.seq).toBe("number");- const c = await capture(id);- expect(c).toMatchObject({ cols: 140, rows: 45 });- await redrawn(id, 140, 45);- }, T_TEST);+ test(+ "concurrent resize calls leave the last caller's dimensions",+ async () => {+ const id = await create();+ const calls = [resize(id, 120, 40), resize(id, 90, 30), resize(id, 140, 45)];+ const results = await Promise.all(calls);+ for (const r of results) expect(typeof r.seq).toBe("number");+ const c = await capture(id);+ expect(c).toMatchObject({ cols: 140, rows: 45 });+ await redrawn(id, 140, 45);+ },+ T_TEST+ );- test("team resize addresses one live slot and its capture", async () => {- const path = join(layout.cwd, "resize-team");- const started = await call("team", {- mode: "run", path, models: ["contract-fake-model"], input: "stay running @@HANG@@",- });- const r = (await call("team", { mode: "resize", path, slot: "01", cols: 110, rows: 35 })) as unknown as TeamResizeResult;- expect(r).toMatchObject({ run_id: started.run_id, path, slot: "01", cols: 110, rows: 35, changed: true });- expect(typeof r.seq).toBe("number");- const c = await call("team", { mode: "capture", path, slot: "01" });- expect(c).toMatchObject({ cols: 110, rows: 35 });- expect(c.seq as number).toBeGreaterThanOrEqual(r.seq);- }, T_TEST);+ test(+ "team resize addresses one live slot and its capture",+ async () => {+ const path = join(layout.cwd, "resize-team");+ const started = await call("team", {+ mode: "run",+ path,+ models: ["contract-fake-model"],+ input: "stay running @@HANG@@",+ });+ const r = (await call("team", {+ mode: "resize",+ path,+ slot: "01",+ cols: 110,+ rows: 35,+ })) as unknown as TeamResizeResult;+ expect(r).toMatchObject({+ run_id: started.run_id,+ path,+ slot: "01",+ cols: 110,+ rows: 35,+ changed: true,+ });+ expect(typeof r.seq).toBe("number");+ const c = await call("team", { mode: "capture", path, slot: "01" });+ expect(c).toMatchObject({ cols: 110, rows: 35 });+ expect(c.seq as number).toBeGreaterThanOrEqual(r.seq);+ },+ T_TEST+ );- test("cancelled session resize preserves the final capture's size", async () => {- const id = await create();- await resize(id, 100, 40);- await redrawn(id, 100, 40);- await call("cancel_session", { session_id: id });- const final = await waitFor(async () => {- const c = await capture(id);- return c.final ? c : undefined;- }, { what: "cancelled final capture", timeoutMs: 15_000, intervalMs: 100 });- expect(await resize(id, 140, 45)).toMatchObject({- session_id: id, cols: final.cols, rows: final.rows, changed: false, seq: final.seq,- });- expect(await capture(id)).toEqual(final);- }, T_TEST);+ test(+ "cancelled session resize preserves the final capture's size",+ async () => {+ const id = await create();+ await resize(id, 100, 40);+ await redrawn(id, 100, 40);+ await call("cancel_session", { session_id: id });+ const final = await waitFor(+ async () => {+ const c = await capture(id);+ return c.final ? c : undefined;+ },+ { what: "cancelled final capture", timeoutMs: 15_000, intervalMs: 100 }+ );+ expect(await resize(id, 140, 45)).toMatchObject({+ session_id: id,+ cols: final.cols,+ rows: final.rows,+ changed: false,+ seq: final.seq,+ });+ expect(await capture(id)).toEqual(final);+ },+ T_TEST+ );});diff --git a/packages/cli/src/pane/screen-classifier-sizes.test.ts b/packages/cli/src/pane/screen-classifier-sizes.test.tsindex 67be84ba..8f4c5703 100644--- a/packages/cli/src/pane/screen-classifier-sizes.test.ts+++ b/packages/cli/src/pane/screen-classifier-sizes.test.ts@@ -30,7 +30,11 @@ const STATES = ["answer-short",] as const;-for (const [cols, rows] of [[80, 24], [120, 40], [250, 60]] as const) {+for (const [cols, rows] of [+ [80, 24],+ [120, 40],+ [250, 60],+] as const) {describe(`${cols}x${rows} real Claude Code captures`, () => {test.each([...STATES])("%s", (state) => {const screen = loadScreen(`size-${cols}x${rows}-${state}`);diff --git a/packages/cli/src/pane/settle-rule.test.ts b/packages/cli/src/pane/settle-rule.test.tsindex 162ff317..29e46fa3 100644--- a/packages/cli/src/pane/settle-rule.test.ts+++ b/packages/cli/src/pane/settle-rule.test.ts@@ -1,8 +1,8 @@import { afterEach, describe, expect, test } from "bun:test";import {CORROBORATION_GRACE_MS,- SECONDARY_QUIET_MS,type CorroborationFacts,+ SECONDARY_QUIET_MS,type SettleInput,agentCountMismatch,decideSettle,diff --git a/packages/cli/src/pane/test-fixtures/screens/size-350x80-answer-short.json b/packages/cli/src/pane/test-fixtures/screens/size-350x80-answer-short.jsonindex 72f7777e..dc13d5ed 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-350x80-answer-short.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-350x80-answer-short.json@@ -1,334 +1,176 @@{- "source": "wide live capture w-350x80/answer",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 80,- "cols": 350,- "alt": true,- "cursor": {- "x": 2,- "y": 77- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "⏺ pear",- "",- "✻ Brewed for 2s · done 1:01 am",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- " ◐ medium · /effort",- "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- "❯",- "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " ⏸ manual mode on · ? for shortcuts"- ],- "spans": [- [],- [- [- 0,- 2,- 174,- -1,- 0- ],- [- 2,- 6,- 174,- 16,- 0- ],- [- 11,- 11,- -1,- -1,- 1- ],- [- 23,- 8,- 246,- -1,- 0- ]+ "source": "wide live capture w-350x80/answer",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 80,+ "cols": 350,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 77+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Brewed for 2s · done 1:01 am",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts"],- [- [- 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,- 30,- 246,- -1,- 0- ]- ],- [],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 61,- 231,- 237,- 0- ],- [- 63,- 287,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 231,- -1,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 28,- 246,- -1,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 330,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [- [- 2,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [- [- 2,- 34,- 246,- -1,- 0- ]+ "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, 30, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 287, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[330, 18, 246, -1, 0]],+ [[0, 350, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 350, 244, -1, 0]],+ [[2, 34, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-350x80-ask-user-question.json b/packages/cli/src/pane/test-fixtures/screens/size-350x80-ask-user-question.jsonindex 18cce387..129b7696 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-350x80-ask-user-question.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-350x80-ask-user-question.json@@ -1,492 +1,176 @@{- "source": "wide live capture w-350x80/ask",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 80,- "cols": 350,- "alt": true,- "cursor": {- "x": 0,- "y": 26- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "⏺ pear",- "",- "✻ Brewed for 2s · done 1:01 am",- "",- "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",- "",- "⏺ Write(hello.txt)",- " ⎿ User rejected write to hello.txt",- " 1 hi",- "",- "✻ Sautéed for 2s · done 1:01 am",- "",- "❯ Use the AskUserQuestion tool to ask me which fruit I prefer, with exactly two options: Apple and Pear. Do nothing else.",- "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " ☐ Fruit",- "",- "Which fruit do you prefer?",- "",- "❯ 1. Apple",- " Choose Apple as your preferred fruit.",- " 2. Pear",- " Choose Pear as your preferred fruit.",- " 3. Type something.",- "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " 4. Chat about this",- "",- "Enter to select · ↑/↓ to navigate · Esc to cancel",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- ""- ],- "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,- 30,- 246,- -1,- 0- ]- ],- [],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 61,- 231,- 237,- 0- ],- [- 63,- 287,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 231,- -1,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 28,- 246,- -1,- 0- ]- ],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 88,- 231,- 237,- 0- ],- [- 90,- 260,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 211,- -1,- 0- ],- [- 2,- 5,- -1,- -1,- 1- ]- ],- [- [- 0,- 5,- 246,- -1,- 0- ],- [- 5,- 23,- 239,- -1,- 0- ],- [- 28,- 9,- 239,- -1,- 1- ]- ],- [- [- 5,- 5,- 231,- -1,- 2- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 29,- 246,- -1,- 0- ]- ],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 119,- 231,- 237,- 0- ],- [- 121,- 229,- -1,- 237,- 0- ]- ],- [- [- 0,- 350,- 246,- -1,- 0- ]- ],- [- [- 0,- 9,- 16,- 153,- 0- ]- ],- [],- [- [- 0,- 26,- 231,- -1,- 1- ]- ],- [],- [- [- 0,- 1,- 153,- -1,- 0- ],- [- 2,- 2,- 246,- -1,- 0- ],- [- 5,- 5,- 153,- -1,- 0- ]- ],- [- [- 5,- 37,- 246,- -1,- 0- ]- ],- [- [- 2,- 2,- 246,- -1,- 0- ]- ],- [- [- 5,- 36,- 246,- -1,- 0- ]- ],- [- [- 2,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 350,- 246,- -1,- 0- ]- ],- [],- [],- [- [- 0,- 49,- 246,- -1,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- []- ]+ "source": "wide live capture w-350x80/ask",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 80,+ "cols": 350,+ "alt": true,+ "cursor": {+ "x": 0,+ "y": 26+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Brewed for 2s · done 1:01 am",+ "",+ "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",+ "",+ "⏺ Write(hello.txt)",+ " ⎿ User rejected write to hello.txt",+ " 1 hi",+ "",+ "✻ Sautéed for 2s · done 1:01 am",+ "",+ "❯ Use the AskUserQuestion tool to ask me which fruit I prefer, with exactly two options: Apple and Pear. Do nothing else.",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ☐ Fruit",+ "",+ "Which fruit do you prefer?",+ "",+ "❯ 1. Apple",+ " Choose Apple as your preferred fruit.",+ " 2. Pear",+ " Choose Pear as your preferred fruit.",+ " 3. Type something.",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " 4. Chat about this",+ "",+ "Enter to select · ↑/↓ to navigate · Esc to cancel",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ ""+ ],+ "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, 30, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 287, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 88, 231, 237, 0], [90, 260, -1, 237, 0]],+ [],+ [[0, 1, 211, -1, 0], [2, 5, -1, -1, 1]],+ [[0, 5, 246, -1, 0], [5, 23, 239, -1, 0], [28, 9, 239, -1, 1]],+ [[5, 5, 231, -1, 2]],+ [],+ [[0, 1, 246, -1, 0], [2, 29, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 119, 231, 237, 0], [121, 229, -1, 237, 0]],+ [[0, 350, 246, -1, 0]],+ [[0, 9, 16, 153, 0]],+ [],+ [[0, 26, 231, -1, 1]],+ [],+ [[0, 1, 153, -1, 0], [2, 2, 246, -1, 0], [5, 5, 153, -1, 0]],+ [[5, 37, 246, -1, 0]],+ [[2, 2, 246, -1, 0]],+ [[5, 36, 246, -1, 0]],+ [[2, 18, 246, -1, 0]],+ [[0, 350, 246, -1, 0]],+ [],+ [],+ [[0, 49, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ []+ ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-350x80-permission-write.json b/packages/cli/src/pane/test-fixtures/screens/size-350x80-permission-write.jsonindex 311fec6e..1139552d 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-350x80-permission-write.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-350x80-permission-write.json@@ -1,454 +1,176 @@{- "source": "wide live capture w-350x80/permission",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 80,- "cols": 350,- "alt": true,- "cursor": {- "x": 1,- "y": 23- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "⏺ pear",- "",- "✻ Brewed for 2s · done 1:01 am",- "",- "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",- "",- "⏺ Write(hello.txt)",- "",- "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " Create file",- " 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,- 30,- 246,- -1,- 0- ]- ],- [],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 61,- 231,- 237,- 0- ],- [- 63,- 287,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 231,- -1,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 28,- 246,- -1,- 0- ]- ],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 88,- 231,- 237,- 0- ],- [- 90,- 260,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 5,- -1,- -1,- 1- ]- ],- [],- [- [- 0,- 350,- 153,- -1,- 0- ]- ],- [- [- 1,- 11,- 153,- -1,- 1- ]- ],- [- [- 1,- 9,- 246,- -1,- 0- ]- ],- [- [- 0,- 350,- 239,- -1,- 0- ]- ],- [- [- 1,- 3,- 231,- -1,- 2- ],- [- 4,- 2,- 231,- -1,- 0- ]- ],- [- [- 0,- 350,- 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- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- []- ]+ "source": "wide live capture w-350x80/permission",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 80,+ "cols": 350,+ "alt": true,+ "cursor": {+ "x": 1,+ "y": 23+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Brewed for 2s · done 1:01 am",+ "",+ "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",+ "",+ "⏺ Write(hello.txt)",+ "",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " Create file",+ " 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, 30, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 287, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 88, 231, 237, 0], [90, 260, -1, 237, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 5, -1, -1, 1]],+ [],+ [[0, 350, 153, -1, 0]],+ [[1, 11, 153, -1, 1]],+ [[1, 9, 246, -1, 0]],+ [[0, 350, 239, -1, 0]],+ [[1, 3, 231, -1, 2], [4, 2, 231, -1, 0]],+ [[0, 350, 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-350x80-repl-boot-empty.json b/packages/cli/src/pane/test-fixtures/screens/size-350x80-repl-boot-empty.jsonindex 9534a972..86c24012 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-350x80-repl-boot-empty.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-350x80-repl-boot-empty.json@@ -1,289 +1,176 @@{- "source": "wide live capture w-350x80/boot",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 80,- "cols": 350,- "alt": true,- "cursor": {- "x": 2,- "y": 77- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/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- ]+ "source": "wide live capture w-350x80/boot",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 80,+ "cols": 350,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 77+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"],- [- [- 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,- 30,- 246,- -1,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 330,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [- [- 2,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [- [- 2,- 49,- 246,- -1,- 0- ]+ "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, 30, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[330, 18, 246, -1, 0]],+ [[0, 350, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 350, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-350x80-repl-typed-long.json b/packages/cli/src/pane/test-fixtures/screens/size-350x80-repl-typed-long.jsonindex 362251c2..69550572 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-350x80-repl-typed-long.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-350x80-repl-typed-long.json@@ -1,289 +1,176 @@{- "source": "wide live capture w-350x80/typed-long",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 80,- "cols": 350,- "alt": true,- "cursor": {- "x": 214,- "y": 77- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/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, and after that explain how you would reorganise the test data folders so that every captured terminal screen is grouped by the width and height it was recorded at, how you would name each file so the Claude Code",- " version and the magmux version are obvious at a glance, and finally which checks you would add so that a capture taken at a new size is compared against the older ones before anybody relies on it for the zucchini",- "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " ⏸ manual mode on"- ],- "spans": [- [],- [- [- 0,- 2,- 174,- -1,- 0- ],- [- 2,- 6,- 174,- 16,- 0- ],- [- 11,- 11,- -1,- -1,- 1- ],- [- 23,- 8,- 246,- -1,- 0- ]+ "source": "wide live capture w-350x80/typed-long",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 80,+ "cols": 350,+ "alt": true,+ "cursor": {+ "x": 214,+ "y": 77+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/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, and after that explain how you would reorganise the test data folders so that every captured terminal screen is grouped by the width and height it was recorded at, how you would name each file so the Claude Code",+ " version and the magmux version are obvious at a glance, and finally which checks you would add so that a capture taken at a new size is compared against the older ones before anybody relies on it for the zucchini",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on"],- [- [- 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,- 30,- 246,- -1,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 330,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [],- [- [- 214,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [- [- 2,- 16,- 246,- -1,- 0- ]+ "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, 30, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[330, 18, 246, -1, 0]],+ [[0, 350, 244, -1, 0]],+ [],+ [[214, 1, -1, -1, 16]],+ [[0, 350, 244, -1, 0]],+ [[2, 16, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-350x80-working.json b/packages/cli/src/pane/test-fixtures/screens/size-350x80-working.jsonindex ac19fb21..f8e2ca5e 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-350x80-working.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-350x80-working.json@@ -1,333 +1,176 @@{- "source": "wide live capture w-350x80/working",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 80,- "cols": 350,- "alt": true,- "cursor": {- "x": 2,- "y": 77- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "✳ Swirling…",- " ◐ 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- ]+ "source": "wide live capture w-350x80/working",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 80,+ "cols": 350,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 77+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-350x80/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✳ Swirling…",+ " ◐ medium · /effort",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"],- [- [- 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,- 30,- 246,- -1,- 0- ]- ],- [],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 61,- 231,- 237,- 0- ],- [- 63,- 287,- -1,- 237,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 0,- 1,- 174,- -1,- 0- ],- [- 2,- 10,- 174,- -1,- 0- ]- ],- [- [- 330,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [- [- 0,- 2,- 246,- -1,- 0- ],- [- 2,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 350,- 244,- -1,- 0- ]- ],- [- [- 2,- 50,- 246,- -1,- 0- ]+ "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, 30, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 287, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 10, 174, -1, 0]],+ [[330, 18, 246, -1, 0]],+ [[0, 350, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 350, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-500x100-answer-short.json b/packages/cli/src/pane/test-fixtures/screens/size-500x100-answer-short.jsonindex 3b0a34c7..1387fce6 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-500x100-answer-short.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-500x100-answer-short.json@@ -1,374 +1,216 @@{- "source": "wide live capture w-500x100/answer",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 100,- "cols": 500,- "alt": true,- "cursor": {- "x": 2,- "y": 97- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "⏺ pear",- "",- "✻ Cooked for 2s · done 1:01 am",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- " ◐ medium · /effort",- "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- "❯",- "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " ⏸ manual mode on · ? for shortcuts"- ],- "spans": [- [],- [- [- 0,- 2,- 174,- -1,- 0- ],- [- 2,- 6,- 174,- 16,- 0- ],- [- 11,- 11,- -1,- -1,- 1- ],- [- 23,- 8,- 246,- -1,- 0- ]+ "source": "wide live capture w-500x100/answer",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 100,+ "cols": 500,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 97+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Cooked for 2s · done 1:01 am",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts"],- [- [- 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,- 437,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 231,- -1,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 28,- 246,- -1,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 480,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [- [- 2,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [- [- 2,- 34,- 246,- -1,- 0- ]+ "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, 437, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[480, 18, 246, -1, 0]],+ [[0, 500, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 500, 244, -1, 0]],+ [[2, 34, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-500x100-ask-user-question.json b/packages/cli/src/pane/test-fixtures/screens/size-500x100-ask-user-question.jsonindex e2b03b50..3f3a2179 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-500x100-ask-user-question.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-500x100-ask-user-question.json@@ -1,532 +1,216 @@{- "source": "wide live capture w-500x100/ask",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 100,- "cols": 500,- "alt": true,- "cursor": {- "x": 0,- "y": 26- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "⏺ pear",- "",- "✻ Cooked for 2s · done 1:01 am",- "",- "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",- "",- "⏺ Write(hello.txt)",- " ⎿ User rejected write to hello.txt",- " 1 hi",- "",- "✻ Cooked for 2s · done 1:01 am",- "",- "❯ Use the AskUserQuestion tool to ask me which fruit I prefer, with exactly two options: Apple and Pear. Do nothing else.",- "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " ☐ Fruit",- "",- "Which fruit do you prefer?",- "",- "❯ 1. Apple",- " You prefer apples.",- " 2. Pear",- " You prefer pears.",- " 3. Type something.",- "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " 4. Chat about this",- "",- "Enter to select · ↑/↓ to navigate · Esc to cancel",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- ""- ],- "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,- 437,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 231,- -1,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 28,- 246,- -1,- 0- ]- ],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 88,- 231,- 237,- 0- ],- [- 90,- 410,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 211,- -1,- 0- ],- [- 2,- 5,- -1,- -1,- 1- ]- ],- [- [- 0,- 5,- 246,- -1,- 0- ],- [- 5,- 23,- 239,- -1,- 0- ],- [- 28,- 9,- 239,- -1,- 1- ]- ],- [- [- 5,- 5,- 231,- -1,- 2- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 28,- 246,- -1,- 0- ]- ],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 119,- 231,- 237,- 0- ],- [- 121,- 379,- -1,- 237,- 0- ]- ],- [- [- 0,- 500,- 246,- -1,- 0- ]- ],- [- [- 0,- 9,- 16,- 153,- 0- ]- ],- [],- [- [- 0,- 26,- 231,- -1,- 1- ]- ],- [],- [- [- 0,- 1,- 153,- -1,- 0- ],- [- 2,- 2,- 246,- -1,- 0- ],- [- 5,- 5,- 153,- -1,- 0- ]- ],- [- [- 5,- 18,- 246,- -1,- 0- ]- ],- [- [- 2,- 2,- 246,- -1,- 0- ]- ],- [- [- 5,- 17,- 246,- -1,- 0- ]- ],- [- [- 2,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 500,- 246,- -1,- 0- ]- ],- [],- [],- [- [- 0,- 49,- 246,- -1,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- []- ]+ "source": "wide live capture w-500x100/ask",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 100,+ "cols": 500,+ "alt": true,+ "cursor": {+ "x": 0,+ "y": 26+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Cooked for 2s · done 1:01 am",+ "",+ "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",+ "",+ "⏺ Write(hello.txt)",+ " ⎿ User rejected write to hello.txt",+ " 1 hi",+ "",+ "✻ Cooked for 2s · done 1:01 am",+ "",+ "❯ Use the AskUserQuestion tool to ask me which fruit I prefer, with exactly two options: Apple and Pear. Do nothing else.",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ☐ Fruit",+ "",+ "Which fruit do you prefer?",+ "",+ "❯ 1. Apple",+ " You prefer apples.",+ " 2. Pear",+ " You prefer pears.",+ " 3. Type something.",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " 4. Chat about this",+ "",+ "Enter to select · ↑/↓ to navigate · Esc to cancel",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ ""+ ],+ "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, 437, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 88, 231, 237, 0], [90, 410, -1, 237, 0]],+ [],+ [[0, 1, 211, -1, 0], [2, 5, -1, -1, 1]],+ [[0, 5, 246, -1, 0], [5, 23, 239, -1, 0], [28, 9, 239, -1, 1]],+ [[5, 5, 231, -1, 2]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 119, 231, 237, 0], [121, 379, -1, 237, 0]],+ [[0, 500, 246, -1, 0]],+ [[0, 9, 16, 153, 0]],+ [],+ [[0, 26, 231, -1, 1]],+ [],+ [[0, 1, 153, -1, 0], [2, 2, 246, -1, 0], [5, 5, 153, -1, 0]],+ [[5, 18, 246, -1, 0]],+ [[2, 2, 246, -1, 0]],+ [[5, 17, 246, -1, 0]],+ [[2, 18, 246, -1, 0]],+ [[0, 500, 246, -1, 0]],+ [],+ [],+ [[0, 49, 246, -1, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ []+ ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-500x100-permission-write.json b/packages/cli/src/pane/test-fixtures/screens/size-500x100-permission-write.jsonindex c3fd8348..1e8f2313 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-500x100-permission-write.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-500x100-permission-write.json@@ -1,494 +1,216 @@{- "source": "wide live capture w-500x100/permission",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 100,- "cols": 500,- "alt": true,- "cursor": {- "x": 1,- "y": 23- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "⏺ pear",- "",- "✻ Cooked for 2s · done 1:01 am",- "",- "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",- "",- "⏺ Write(hello.txt)",- "",- "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " Create file",- " 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,- 31,- 246,- -1,- 0- ]- ],- [],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 61,- 231,- 237,- 0- ],- [- 63,- 437,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 231,- -1,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 28,- 246,- -1,- 0- ]- ],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 88,- 231,- 237,- 0- ],- [- 90,- 410,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 5,- -1,- -1,- 1- ]- ],- [],- [- [- 0,- 500,- 153,- -1,- 0- ]- ],- [- [- 1,- 11,- 153,- -1,- 1- ]- ],- [- [- 1,- 9,- 246,- -1,- 0- ]- ],- [- [- 0,- 500,- 239,- -1,- 0- ]- ],- [- [- 1,- 3,- 231,- -1,- 2- ],- [- 4,- 2,- 231,- -1,- 0- ]- ],- [- [- 0,- 500,- 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- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- []- ]+ "source": "wide live capture w-500x100/permission",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 100,+ "cols": 500,+ "alt": true,+ "cursor": {+ "x": 1,+ "y": 23+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "⏺ pear",+ "",+ "✻ Cooked for 2s · done 1:01 am",+ "",+ "❯ Use the Write tool to create the file hello.txt containing the word hi. Do nothing else.",+ "",+ "⏺ Write(hello.txt)",+ "",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " Create file",+ " 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, 31, 246, -1, 0]],+ [],+ [],+ [[0, 2, 246, 237, 0], [2, 61, 231, 237, 0], [63, 437, -1, 237, 0]],+ [],+ [[0, 1, 231, -1, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 28, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 88, 231, 237, 0], [90, 410, -1, 237, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 5, -1, -1, 1]],+ [],+ [[0, 500, 153, -1, 0]],+ [[1, 11, 153, -1, 1]],+ [[1, 9, 246, -1, 0]],+ [[0, 500, 239, -1, 0]],+ [[1, 3, 231, -1, 2], [4, 2, 231, -1, 0]],+ [[0, 500, 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-500x100-repl-boot-empty.json b/packages/cli/src/pane/test-fixtures/screens/size-500x100-repl-boot-empty.jsonindex c380eaba..d544d1b9 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-500x100-repl-boot-empty.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-500x100-repl-boot-empty.json@@ -1,329 +1,216 @@{- "source": "wide live capture w-500x100/boot",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 100,- "cols": 500,- "alt": true,- "cursor": {- "x": 2,- "y": 97- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/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- ]+ "source": "wide live capture w-500x100/boot",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 100,+ "cols": 500,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 97+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · ? for shortcuts · ← for agents"],- [- [- 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- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 480,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [- [- 2,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [- [- 2,- 49,- 246,- -1,- 0- ]+ "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]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[480, 18, 246, -1, 0]],+ [[0, 500, 244, -1, 0]],+ [[2, 1, -1, -1, 16]],+ [[0, 500, 244, -1, 0]],+ [[2, 49, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-500x100-repl-typed-long.json b/packages/cli/src/pane/test-fixtures/screens/size-500x100-repl-typed-long.jsonindex 7f45aa2e..33ebb3f5 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-500x100-repl-typed-long.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-500x100-repl-typed-long.json@@ -1,329 +1,216 @@{- "source": "wide live capture w-500x100/typed-long",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 100,- "cols": 500,- "alt": true,- "cursor": {- "x": 69,- "y": 97- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/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, and after that explain how you would reorganise the test data folders so that every captured terminal screen is grouped by the width and height it was recorded at, how you would name each file so the Claude Code version and the magmux version are obvious at a glance, and finally which checks you would add so that a capture taken at a new size is compared",- " against the older ones before anybody relies on it for the zucchini",- "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",- " ⏸ manual mode on"- ],- "spans": [- [],- [- [- 0,- 2,- 174,- -1,- 0- ],- [- 2,- 6,- 174,- 16,- 0- ],- [- 11,- 11,- -1,- -1,- 1- ],- [- 23,- 8,- 246,- -1,- 0- ]+ "source": "wide live capture w-500x100/typed-long",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 100,+ "cols": 500,+ "alt": true,+ "cursor": {+ "x": 69,+ "y": 97+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/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, and after that explain how you would reorganise the test data folders so that every captured terminal screen is grouped by the width and height it was recorded at, how you would name each file so the Claude Code version and the magmux version are obvious at a glance, and finally which checks you would add so that a capture taken at a new size is compared",+ " against the older ones before anybody relies on it for the zucchini",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on"],- [- [- 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- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 480,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [],- [- [- 69,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [- [- 2,- 16,- 246,- -1,- 0- ]+ "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]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[480, 18, 246, -1, 0]],+ [[0, 500, 244, -1, 0]],+ [],+ [[69, 1, -1, -1, 16]],+ [[0, 500, 244, -1, 0]],+ [[2, 16, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-500x100-working.json b/packages/cli/src/pane/test-fixtures/screens/size-500x100-working.jsonindex 52d80637..4687aa04 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-500x100-working.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-500x100-working.json@@ -1,373 +1,216 @@{- "source": "wide live capture w-500x100/working",- "claudeCode": "2.1.303",- "magmux": "0.16.0",- "rows": 100,- "cols": 500,- "alt": true,- "cursor": {- "x": 2,- "y": 97- },- "lines": [- "",- " ▐▛███▛█ Claude Code v2.1.303",- "▝▜██████▀ Haiku 5.5 · Claude API",- " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else, thank you.",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "✳ Pontificating…",- " ◐ 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- ]+ "source": "wide live capture w-500x100/working",+ "claudeCode": "2.1.303",+ "magmux": "0.16.0",+ "rows": 100,+ "cols": 500,+ "alt": true,+ "cursor": {+ "x": 2,+ "y": 97+ },+ "lines": [+ "",+ " ▐▛███▛█ Claude Code v2.1.303",+ "▝▜██████▀ Haiku 5.5 · Claude API",+ " ▝▝ ▝▝ /private/tmp/rszw/w-500x100/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else, thank you.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✳ Pontificating…",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"],- [- [- 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,- 437,- -1,- 237,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 0,- 1,- 174,- -1,- 0- ],- [- 2,- 15,- 174,- -1,- 0- ]- ],- [- [- 480,- 18,- 246,- -1,- 0- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [- [- 0,- 2,- 246,- -1,- 0- ],- [- 2,- 1,- -1,- -1,- 16- ]- ],- [- [- 0,- 500,- 244,- -1,- 0- ]- ],- [- [- 2,- 50,- 246,- -1,- 0- ]+ "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, 437, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 15, 174, -1, 0]],+ [[480, 18, 246, -1, 0]],+ [[0, 500, 244, -1, 0]],+ [[0, 2, 246, -1, 0], [2, 1, -1, -1, 16]],+ [[0, 500, 244, -1, 0]],+ [[2, 50, 246, -1, 0]]]- ]}diff --git a/packages/cli/src/pane/test-fixtures/screens/size-80x24-echo-wrapped.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-echo-wrapped.jsonindex 9dd60141..7948c2f9 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-80x24-echo-wrapped.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-echo-wrapped.json@@ -1,257 +1,64 @@{- "source": "resize H1 live capture wrap-80x24/echo-wrapped",- "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/wrap-80x24/cwd",- "",- "",- "❯ Reply with exactly the word pear and nothing else; this prompt is padded so",- " its echo wraps past eighty columns.",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "",- "✽ Creating…",- " ◐ 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- ]+ "source": "resize H1 live capture wrap-80x24/echo-wrapped",+ "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/wrap-80x24/cwd",+ "",+ "",+ "❯ Reply with exactly the word pear and nothing else; this prompt is padded so",+ " its echo wraps past eighty columns.",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "",+ "✽ Creating…",+ " ◐ medium · /effort",+ "────────────────────────────────────────────────────────────────────────────────",+ "❯",+ "────────────────────────────────────────────────────────────────────────────────",+ " ⏸ manual mode on · esc to interrupt · ← for agents"],- [- [- 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,- 76,- 231,- 237,- 0- ],- [- 78,- 2,- -1,- 237,- 0- ]- ],- [- [- 0,- 2,- -1,- 237,- 0- ],- [- 2,- 35,- 231,- 237,- 0- ],- [- 37,- 43,- -1,- 237,- 0- ]- ],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [],- [- [- 0,- 1,- 174,- -1,- 0- ],- [- 2,- 3,- 174,- -1,- 0- ],- [- 5,- 3,- 216,- -1,- 0- ],- [- 8,- 4,- 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- ]+ "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, 76, 231, 237, 0], [78, 2, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 35, 231, 237, 0], [37, 43, -1, 237, 0]],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [],+ [[0, 1, 174, -1, 0], [2, 3, 174, -1, 0], [5, 3, 216, -1, 0], [8, 4, 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-header-wrapped.json b/packages/cli/src/pane/test-fixtures/screens/size-80x24-permission-header-wrapped.jsonindex e902d6e1..aaf2e4cc 100644--- a/packages/cli/src/pane/test-fixtures/screens/size-80x24-permission-header-wrapped.json+++ b/packages/cli/src/pane/test-fixtures/screens/size-80x24-permission-header-wrapped.json@@ -1,291 +1,64 @@{- "source": "resize H1 live capture wrap-80x24/permission-header",- "claudeCode": "2.1.299",- "magmux": "0.14.0",- "rows": 24,- "cols": 80,- "alt": true,- "cursor": {- "x": 1,- "y": 18- },- "lines": [- "",- "",- "✻ Sautéed for 1s · done 11:26 pm",- "",- "❯ Use the Write tool to create the file",- " a-deliberately-very-long-file-name-for-wrapping-the-permission-header.txt",- " containing the word hi. Do nothing else.",- "",- "⏺ Write(…eliberately-very-long-file-name-for-wrapping-the-permission-header.txt)",- "",- "────────────────────────────────────────────────────────────────────────────────",- " Create file",- " a-deliberately-very-long-file-name-for-wrapping-the-permission-header.txt",- "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",- " 1 hi",- "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",- " Do you want to create",- " a-deliberately-very-long-file-name-for-wrapping-the-permission-header.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,- 246,- -1,- 0- ],- [- 2,- 30,- 246,- -1,- 0- ]- ],- [],- [- [- 0,- 2,- 246,- 237,- 0- ],- [- 2,- 38,- 231,- 237,- 0- ],- [- 40,- 40,- -1,- 237,- 0- ]- ],- [- [- 0,- 2,- -1,- 237,- 0- ],- [- 2,- 74,- 231,- 237,- 0- ],- [- 76,- 4,- -1,- 237,- 0- ]- ],- [- [- 0,- 2,- -1,- 237,- 0- ],- [- 2,- 40,- 231,- 237,- 0- ],- [- 42,- 38,- -1,- 237,- 0- ]- ],- [],- [- [- 0,- 1,- 246,- -1,- 0- ],- [- 2,- 5,- -1,- -1,- 1- ]- ],- [],- [- [- 0,- 80,- 153,- -1,- 0- ]- ],- [- [- 1,- 11,- 153,- -1,- 1- ]- ],- [- [- 1,- 73,- 246,- -1,- 0- ]- ],- [- [- 0,- 80,- 239,- -1,- 0- ]- ],- [- [- 1,- 3,- 231,- -1,- 2- ],- [- 4,- 2,- 231,- -1,- 0- ]- ],- [- [- 0,- 80,- 239,- -1,- 0- ]- ],- [],- [- [- 1,- 73,- -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- ]+ "source": "resize H1 live capture wrap-80x24/permission-header",+ "claudeCode": "2.1.299",+ "magmux": "0.14.0",+ "rows": 24,+ "cols": 80,+ "alt": true,+ "cursor": {+ "x": 1,+ "y": 18+ },+ "lines": [+ "",+ "",+ "✻ Sautéed for 1s · done 11:26 pm",+ "",+ "❯ Use the Write tool to create the file",+ " a-deliberately-very-long-file-name-for-wrapping-the-permission-header.txt",+ " containing the word hi. Do nothing else.",+ "",+ "⏺ Write(…eliberately-very-long-file-name-for-wrapping-the-permission-header.txt)",+ "",+ "────────────────────────────────────────────────────────────────────────────────",+ " Create file",+ " a-deliberately-very-long-file-name-for-wrapping-the-permission-header.txt",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " 1 hi",+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",+ " Do you want to create",+ " a-deliberately-very-long-file-name-for-wrapping-the-permission-header.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, 246, -1, 0], [2, 30, 246, -1, 0]],+ [],+ [[0, 2, 246, 237, 0], [2, 38, 231, 237, 0], [40, 40, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 74, 231, 237, 0], [76, 4, -1, 237, 0]],+ [[0, 2, -1, 237, 0], [2, 40, 231, 237, 0], [42, 38, -1, 237, 0]],+ [],+ [[0, 1, 246, -1, 0], [2, 5, -1, -1, 1]],+ [],+ [[0, 80, 153, -1, 0]],+ [[1, 11, 153, -1, 1]],+ [[1, 73, 246, -1, 0]],+ [[0, 80, 239, -1, 0]],+ [[1, 3, 231, -1, 2], [4, 2, 231, -1, 0]],+ [[0, 80, 239, -1, 0]],+ [],+ [[1, 73, -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-helpers/fake-interactive-child.ts b/packages/cli/src/pane/test-helpers/fake-interactive-child.tsindex 439e624d..9bf37b49 100755--- a/packages/cli/src/pane/test-helpers/fake-interactive-child.ts+++ b/packages/cli/src/pane/test-helpers/fake-interactive-child.ts@@ -499,10 +499,13 @@ function drawInput(): void {render();if (selfSubmitting) {if (selfSubmit) clearTimeout(selfSubmit);- selfSubmit = setTimeout(() => {- externalSubmitDone = true;- acceptText(S.box);- }, historyWithheld ? 300 : 75);+ selfSubmit = setTimeout(+ () => {+ externalSubmitDone = true;+ acceptText(S.box);+ },+ historyWithheld ? 300 : 75+ );}if (scenario === "command_left_box" &&@@ -1041,7 +1044,7 @@ async function submit(line: string): Promise<void> {let ignoredEnters = 0;const ignoredEnterLimit =scenario === "enter_ignored_forever"- ? Infinity+ ? Number.POSITIVE_INFINITY: Number(scenario.match(/^enter_ignored_(\d+)$/)?.[1]) || 0;function onEnter(): void {diff --git a/packages/cli/src/pane/test-helpers/gated-pane.ts b/packages/cli/src/pane/test-helpers/gated-pane.tsindex d52e70dd..0e1a8a17 100644--- a/packages/cli/src/pane/test-helpers/gated-pane.ts+++ b/packages/cli/src/pane/test-helpers/gated-pane.ts@@ -6,10 +6,10 @@ import type { MagmuxReply } from "../magmux-client.js";import { type PaneSession, type PaneSessionOptions, startPaneSession } from "../pane-session.js";import type { PaneSnapshot, SettledTurn } from "../types.js";import {+ type PaneTestEnv,killLeftovers,makePaneTestEnv,newSessionUuid,- type PaneTestEnv,waitNoOrphans,} from "./hermetic-env.js";