Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

test(pane): add real Claude Code screens at 40x24

Jack Rudenko4e15721c7c8f
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-answer-short.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-answer-short.json
new file mode 100644
index 00000000..eed13c23
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-answer-short.json
@@ -0,0 +1,89 @@
+{
+ "source": "MTL-140 live capture 40x24/answer-short",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": true
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 2,
+ "y": 17
+ },
+ "lines": [
+ "",
+ " ▐▛███▛█ Claude Code v2.1.304",
+ "▝▜██████▀ Haiku 5.5 · Claude Max",
+ " ▝▝ ▝▝ /…/T/cap40-ifnQGh/cwd",
+ "",
+ "",
+ "❯ Reply with exactly the word pear and",
+ " nothing else, thank you.",
+ "",
+ "⏺ pear",
+ "",
+ "✻ Crunched for 1s · done 12:31 am",
+ "",
+ "",
+ "",
+ " ◐ medium · /effort",
+ "────────────────────────────────────────",
+ "❯",
+ "────────────────────────────────────────",
+ " * Haiku | $0.00 | 5s | 󰍛 466M",
+ " ctx ░░░░░░ 4%",
+ " plan ████▀▀▀▀-- 5h:87% ↻2h38m 7d…",
+ " ⏸ manual mode on · ← 3 agents"
+ ],
+ "spans": [
+ [],
+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 241, -1, 0]],
+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 241, -1, 0]],
+ [[0, 9, 174, -1, 0], [11, 21, 241, -1, 0]],
+ [],
+ [],
+ [[0, 2, 241, 255, 0], [2, 37, 16, 255, 0], [39, 1, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 24, 16, 255, 0], [26, 14, -1, 255, 0]],
+ [],
+ [[0, 1, 16, -1, 0]],
+ [],
+ [[0, 1, 241, -1, 0], [2, 31, 241, -1, 0]],
+ [],
+ [],
+ [],
+ [[20, 18, 241, -1, 0]],
+ [[0, 40, 245, -1, 0]],
+ [],
+ [[0, 40, 245, -1, 0]],
+ [
+ [2, 7, 30, -1, 1],
+ [9, 1, 241, -1, 0],
+ [10, 1, 245, -1, 0],
+ [11, 1, 241, -1, 0],
+ [12, 5, 130, -1, 0],
+ [17, 1, 241, -1, 0],
+ [18, 1, 245, -1, 0],
+ [19, 1, 241, -1, 0],
+ [20, 2, 96, -1, 0],
+ [22, 1, 241, -1, 0],
+ [23, 1, 245, -1, 0],
+ [24, 1, 241, -1, 0],
+ [25, 6, 30, -1, 0]
+ ],
+ [[2, 12, 245, -1, 0], [14, 1, 241, -1, 0], [15, 2, 65, -1, 0]],
+ [
+ [2, 6, 245, -1, 0],
+ [8, 8, 202, -1, 0],
+ [16, 2, 245, -1, 0],
+ [18, 1, 241, -1, 0],
+ [19, 8, 238, 217, 1],
+ [27, 1, 241, -1, 0],
+ [28, 6, 166, -1, 1],
+ [34, 1, 241, -1, 0],
+ [35, 3, 66, -1, 0]
+ ],
+ [[2, 29, 241, -1, 0]]
+ ]
+}
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-ask-user-question.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-ask-user-question.json
new file mode 100644
index 00000000..c3c2cb48
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-ask-user-question.json
@@ -0,0 +1,67 @@
+{
+ "source": "MTL-140 live capture 40x24/ask-user-question",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": false,
+ "reason": "dialog:question",
+ "detail": "a question dialog is showing"
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 0,
+ "y": 11
+ },
+ "lines": [
+ "",
+ "",
+ "❯ Use the AskUserQuestion tool to ask",
+ " me which fruit I prefer, with the",
+ " options Apple, Pear and Plum. Do",
+ " nothing else.",
+ "────────────────────────────────────────",
+ " ☐ Fruit",
+ "",
+ "Which fruit do you prefer?",
+ "",
+ "❯ 1. Apple",
+ " Apple",
+ " 2. Pear",
+ " Pear",
+ " 3. Plum",
+ " Plum",
+ " 4. Type something.",
+ "────────────────────────────────────────",
+ " 5. Chat about this",
+ "",
+ "Enter to select · ↑/↓ to navigate · Esc",
+ "to cancel"
+ ],
+ "spans": [
+ [],
+ [],
+ [[0, 2, 241, 255, 0], [2, 36, 16, 255, 0], [38, 2, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 34, 16, 255, 0], [36, 4, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 33, 16, 255, 0], [35, 5, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 13, 16, 255, 0], [15, 25, -1, 255, 0]],
+ [[0, 40, 241, -1, 0]],
+ [[0, 9, 231, 105, 0]],
+ [],
+ [[0, 26, 16, -1, 1]],
+ [],
+ [[0, 1, 105, -1, 0], [2, 2, 241, -1, 0], [5, 5, 105, -1, 0]],
+ [[5, 5, 241, -1, 0]],
+ [[2, 2, 241, -1, 0]],
+ [[5, 4, 241, -1, 0]],
+ [[2, 2, 241, -1, 0]],
+ [[5, 4, 241, -1, 0]],
+ [[2, 18, 241, -1, 0]],
+ [[0, 40, 241, -1, 0]],
+ [],
+ [],
+ [[0, 40, 241, -1, 0]],
+ [[0, 9, 241, -1, 0]]
+ ]
+}
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-echo-submitted.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-echo-submitted.json
new file mode 100644
index 00000000..9c63a54a
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-echo-submitted.json
@@ -0,0 +1,95 @@
+{
+ "source": "MTL-140 live capture 40x24/echo-submitted",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": true
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 2,
+ "y": 17
+ },
+ "lines": [
+ "",
+ " ▐▛███▛█ Claude Code v2.1.304",
+ "▝▜██████▀ Haiku 5.5 · Claude Max",
+ " ▝▝ ▝▝ /…/T/cap40-GwlKrW/cwd",
+ "",
+ "",
+ "❯ Reply with exactly the word pear and",
+ " nothing else, thank you.",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "✻ Osmosing… (0s)",
+ " ◐ medium · /effort",
+ "────────────────────────────────────────",
+ "❯",
+ "────────────────────────────────────────",
+ " * Haiku | $0.00 | 0s | 󰍛 381M",
+ " ctx ░░░░░░ 0%",
+ " plan ████▀▀▀▀-- 5h:85% ↻2h40m 7d…",
+ " ⏸ manual mode on · ← 3 agents"
+ ],
+ "spans": [
+ [],
+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 241, -1, 0]],
+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 241, -1, 0]],
+ [[0, 9, 174, -1, 0], [11, 21, 241, -1, 0]],
+ [],
+ [],
+ [[0, 2, 241, 255, 0], [2, 37, 16, 255, 0], [39, 1, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 24, 16, 255, 0], [26, 14, -1, 255, 0]],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [
+ [0, 1, 174, -1, 0],
+ [2, 5, 174, -1, 0],
+ [7, 3, 216, -1, 0],
+ [10, 2, 174, -1, 0],
+ [12, 4, 241, -1, 0]
+ ],
+ [[20, 18, 241, -1, 0]],
+ [[0, 40, 245, -1, 0]],
+ [[0, 2, 241, -1, 0]],
+ [[0, 40, 245, -1, 0]],
+ [
+ [2, 7, 30, -1, 1],
+ [9, 1, 241, -1, 0],
+ [10, 1, 245, -1, 0],
+ [11, 1, 241, -1, 0],
+ [12, 5, 130, -1, 0],
+ [17, 1, 241, -1, 0],
+ [18, 1, 245, -1, 0],
+ [19, 1, 241, -1, 0],
+ [20, 2, 96, -1, 0],
+ [22, 1, 241, -1, 0],
+ [23, 1, 245, -1, 0],
+ [24, 1, 241, -1, 0],
+ [25, 6, 30, -1, 0]
+ ],
+ [[2, 12, 245, -1, 0], [14, 1, 241, -1, 0], [15, 2, 65, -1, 0]],
+ [
+ [2, 6, 245, -1, 0],
+ [8, 8, 202, -1, 0],
+ [16, 2, 245, -1, 0],
+ [18, 1, 241, -1, 0],
+ [19, 8, 238, 217, 1],
+ [27, 1, 241, -1, 0],
+ [28, 6, 166, -1, 1],
+ [34, 1, 241, -1, 0],
+ [35, 3, 66, -1, 0]
+ ],
+ [[2, 29, 241, -1, 0]]
+ ]
+}
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-permission-bash.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-permission-bash.json
new file mode 100644
index 00000000..65789169
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-permission-bash.json
@@ -0,0 +1,68 @@
+{
+ "source": "MTL-140 live capture 40x24/permission-bash",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": false,
+ "reason": "dialog:permission",
+ "detail": "a permission dialog is showing",
+ "dismissable": true
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 1,
+ "y": 15
+ },
+ "lines": [
+ "❯ Run the shell command: ls -la",
+ " /etc/hosts. Do nothing else.",
+ "",
+ "⏺ Bash(ls -la /etc/hosts)",
+ "",
+ "────────────────────────────────────────",
+ " Bash command",
+ " Tip: auto mode handles these prompts",
+ " for you — choose \"switch to auto mode\"",
+ " below",
+ " List details of /etc/hosts",
+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",
+ " ls -la /etc/hosts",
+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",
+ " Do you want to proceed?",
+ " ❯ 1. Yes",
+ " 2. Yes, allow reading from",
+ " /private/etc from this project",
+ " 3. Yes, and switch to auto mode ·",
+ " auto mode handles these prompts",
+ " 4. Nor you",
+ "",
+ " Esc to cancel · Tab to amend"
+ ],
+ "spans": [
+ [[0, 2, 241, 255, 0], [2, 30, 16, 255, 0], [32, 8, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 28, 16, 255, 0], [30, 10, -1, 255, 0]],
+ [],
+ [[0, 1, 241, -1, 0], [2, 4, -1, -1, 1]],
+ [],
+ [[0, 40, 105, -1, 0]],
+ [[1, 12, 105, -1, 1]],
+ [[1, 37, -1, -1, 1]],
+ [[1, 38, -1, -1, 1]],
+ [[1, 5, -1, -1, 1]],
+ [[1, 26, 241, -1, 0]],
+ [[0, 40, 248, -1, 0]],
+ [],
+ [[0, 40, 248, -1, 0]],
+ [],
+ [[1, 1, 105, -1, 0], [3, 3, 241, -1, 0], [6, 3, 105, -1, 0]],
+ [[3, 3, 241, -1, 0]],
+ [[6, 12, -1, -1, 1]],
+ [[3, 3, 241, -1, 0], [34, 3, 241, -1, 0]],
+ [[6, 32, 241, -1, 0]],
+ [[3, 3, 241, -1, 0], [8, 5, 241, -1, 0]],
+ [],
+ [[1, 28, 241, -1, 0]]
+ ]
+}
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-permission-write-long-path.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-permission-write-long-path.json
new file mode 100644
index 00000000..5081c5af
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-permission-write-long-path.json
@@ -0,0 +1,68 @@
+{
+ "source": "MTL-140 live capture 40x24/permission-write-long-path",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": false,
+ "reason": "dialog:permission",
+ "detail": "a permission dialog is showing",
+ "dismissable": true
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 1,
+ "y": 15
+ },
+ "lines": [
+ "",
+ "⏺ Write(/private/var/folders/ch/50hwlbxs",
+ " 7k588shf059gzzph0000gn/T/cap40-Gw",
+ " lKrW/cwd/deeply/nested/directory/",
+ " structure/for/the/resize/fixture/",
+ " capture/run/with/a/very/long/path",
+ " /name/hello.txt)",
+ "",
+ "────────────────────────────────────────",
+ " Create file",
+ " …/with/a/very/long/path/name/hello.txt",
+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",
+ " 1 hi",
+ "╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌",
+ " Do you want to create hello.txt?",
+ " ❯ 1. Yes",
+ " 2. Yes, and switch to accept edits",
+ " (auto-approve file edits and",
+ " common file commands) for this",
+ " session (shift+tab)",
+ " 3. No",
+ "",
+ " Esc to cancel · Tab to amend"
+ ],
+ "spans": [
+ [],
+ [[0, 1, 241, -1, 0], [2, 5, -1, -1, 1]],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [[0, 40, 105, -1, 0]],
+ [[1, 11, 105, -1, 1]],
+ [[1, 38, 241, -1, 0]],
+ [[0, 40, 248, -1, 0]],
+ [[1, 3, 236, -1, 2], [4, 2, 236, -1, 0]],
+ [[0, 40, 248, -1, 0]],
+ [[23, 9, -1, -1, 1]],
+ [[1, 1, 105, -1, 0], [3, 3, 241, -1, 0], [6, 3, 105, -1, 0]],
+ [[3, 3, 241, -1, 0], [25, 13, -1, -1, 1]],
+ [[6, 29, -1, -1, 1]],
+ [[6, 21, -1, -1, 1]],
+ [[14, 11, -1, -1, 1]],
+ [[3, 3, 241, -1, 0]],
+ [],
+ [[1, 28, 241, -1, 0]]
+ ]
+}
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-repl-boot-empty.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-repl-boot-empty.json
new file mode 100644
index 00000000..22aec70e
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-repl-boot-empty.json
@@ -0,0 +1,89 @@
+{
+ "source": "MTL-140 live capture 40x24/repl-boot-empty",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": true
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 2,
+ "y": 17
+ },
+ "lines": [
+ "",
+ " ▐▛███▛█ Claude Code v2.1.304",
+ "▝▜██████▀ Haiku 5.5 · Claude Max",
+ " ▝▝ ▝▝ /…/T/cap40-DmdzuA/cwd",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ " ◐ medium · /effort",
+ "────────────────────────────────────────",
+ "❯",
+ "────────────────────────────────────────",
+ " * Haiku | $0.00 | 0s | 󰍛 384M",
+ " ctx ░░░░░░ 0%",
+ " plan ████▀▀▀▀-- 5h:83% ↻2h42m 7d…",
+ " ⏸ manual mode on · ← 3 agents"
+ ],
+ "spans": [
+ [],
+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 241, -1, 0]],
+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 241, -1, 0]],
+ [[0, 9, 174, -1, 0], [11, 21, 241, -1, 0]],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [[20, 18, 241, -1, 0]],
+ [[0, 40, 245, -1, 0]],
+ [],
+ [[0, 40, 245, -1, 0]],
+ [
+ [2, 7, 30, -1, 1],
+ [9, 1, 241, -1, 0],
+ [10, 1, 245, -1, 0],
+ [11, 1, 241, -1, 0],
+ [12, 5, 130, -1, 0],
+ [17, 1, 241, -1, 0],
+ [18, 1, 245, -1, 0],
+ [19, 1, 241, -1, 0],
+ [20, 2, 96, -1, 0],
+ [22, 1, 241, -1, 0],
+ [23, 1, 245, -1, 0],
+ [24, 1, 241, -1, 0],
+ [25, 6, 30, -1, 0]
+ ],
+ [[2, 12, 245, -1, 0], [14, 1, 241, -1, 0], [15, 2, 65, -1, 0]],
+ [
+ [2, 6, 245, -1, 0],
+ [8, 8, 202, -1, 0],
+ [16, 2, 245, -1, 0],
+ [18, 1, 241, -1, 0],
+ [19, 8, 238, 217, 1],
+ [27, 1, 241, -1, 0],
+ [28, 6, 166, -1, 1],
+ [34, 1, 241, -1, 0],
+ [35, 3, 66, -1, 0]
+ ],
+ [[2, 29, 241, -1, 0]]
+ ]
+}
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-repl-typed-long.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-repl-typed-long.json
new file mode 100644
index 00000000..baf383ba
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-repl-typed-long.json
@@ -0,0 +1,92 @@
+{
+ "source": "MTL-140 live capture 40x24/repl-typed-long",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": false,
+ "reason": "box_not_empty",
+ "detail": "the input box already holds text",
+ "boxHasText": true
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 31,
+ "y": 17
+ },
+ "lines": [
+ "",
+ "",
+ "❯ Use the AskUserQuestion tool to ask",
+ " me which fruit I prefer, with the",
+ " options Apple, Pear and Plum. Do",
+ " nothing else.",
+ "",
+ "⏺ User declined to answer questions",
+ " ⎿  · Which fruit do you prefer? (Apple",
+ " / Pear / Plum)",
+ "",
+ "✻ Brewed for 1s · done 12:29 am",
+ " ◐ medium · /effort",
+ "────────────────────────────────────────",
+ "❯ Please summarise the purpose of this",
+ " directory in two sentences, then",
+ " list three improvements you would",
+ " make to its layout and naming",
+ "────────────────────────────────────────",
+ " * Haiku | $0.01 | 23s | 󰍛 508M",
+ " ctx ░░░░░░ 4%",
+ " plan ████▀▀▀▀-- 5h:86% ↻2h40m 7d…",
+ " ⏸ manual mode on"
+ ],
+ "spans": [
+ [],
+ [],
+ [[0, 2, 241, 255, 0], [2, 36, 16, 255, 0], [38, 2, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 34, 16, 255, 0], [36, 4, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 33, 16, 255, 0], [35, 5, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 13, 16, 255, 0], [15, 25, -1, 255, 0]],
+ [],
+ [[0, 2, 241, -1, 0]],
+ [[0, 40, 241, -1, 0]],
+ [[5, 14, 241, -1, 0]],
+ [],
+ [[0, 1, 241, -1, 0], [2, 29, 241, -1, 0]],
+ [[20, 18, 241, -1, 0]],
+ [[0, 40, 245, -1, 0]],
+ [],
+ [],
+ [],
+ [],
+ [[0, 40, 245, -1, 0]],
+ [
+ [2, 7, 30, -1, 1],
+ [9, 1, 241, -1, 0],
+ [10, 1, 245, -1, 0],
+ [11, 1, 241, -1, 0],
+ [12, 5, 130, -1, 0],
+ [17, 1, 241, -1, 0],
+ [18, 1, 245, -1, 0],
+ [19, 1, 241, -1, 0],
+ [20, 3, 96, -1, 0],
+ [23, 1, 241, -1, 0],
+ [24, 1, 245, -1, 0],
+ [25, 1, 241, -1, 0],
+ [26, 6, 30, -1, 0]
+ ],
+ [[2, 12, 245, -1, 0], [14, 1, 241, -1, 0], [15, 2, 65, -1, 0]],
+ [
+ [2, 6, 245, -1, 0],
+ [8, 8, 202, -1, 0],
+ [16, 2, 245, -1, 0],
+ [18, 1, 241, -1, 0],
+ [19, 8, 238, 217, 1],
+ [27, 1, 241, -1, 0],
+ [28, 6, 166, -1, 1],
+ [34, 1, 241, -1, 0],
+ [35, 3, 66, -1, 0]
+ ],
+ [[2, 16, 241, -1, 0]]
+ ]
+}
diff --git a/packages/cli/src/pane/test-fixtures/screens/size-40x24-working.json b/packages/cli/src/pane/test-fixtures/screens/size-40x24-working.json
new file mode 100644
index 00000000..ee98375f
--- /dev/null
+++ b/packages/cli/src/pane/test-fixtures/screens/size-40x24-working.json
@@ -0,0 +1,98 @@
+{
+ "source": "MTL-140 live capture 40x24/working",
+ "claudeCode": "2.1.304",
+ "magmux": "0.18.0",
+ "gate": {
+ "ready": false,
+ "reason": "box_not_empty",
+ "detail": "the input box already holds text",
+ "boxHasText": true
+ },
+ "rows": 23,
+ "cols": 40,
+ "alt": true,
+ "cursor": {
+ "x": 2,
+ "y": 17
+ },
+ "lines": [
+ "",
+ " ▐▛███▛█ Claude Code v2.1.304",
+ "▝▜██████▀ Haiku 5.5 · Claude Max",
+ " ▝▝ ▝▝ /…/T/cap40-ifnQGh/cwd",
+ "",
+ "",
+ "❯ Reply with exactly the word pear and",
+ " nothing else, thank you.",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "✽ Flowing… (",
+ "running UserPromptSubmit hook · 0s)",
+ " ◐ medium · /effort",
+ "────────────────────────────────────────",
+ "❯",
+ "────────────────────────────────────────",
+ " * Haiku | $0.00 | 1s | 󰍛 373M",
+ " ctx ░░░░░░ 0%",
+ " plan █████▀▀▀-- 5h:86% ↻2h38m 7d…",
+ " ⏸ manual mode on · ← 3 agents"
+ ],
+ "spans": [
+ [],
+ [[0, 2, 174, -1, 0], [2, 6, 174, 16, 0], [11, 11, -1, -1, 1], [23, 8, 241, -1, 0]],
+ [[0, 2, 174, -1, 0], [2, 5, 174, 16, 0], [7, 2, 174, -1, 0], [11, 22, 241, -1, 0]],
+ [[0, 9, 174, -1, 0], [11, 21, 241, -1, 0]],
+ [],
+ [],
+ [[0, 2, 241, 255, 0], [2, 37, 16, 255, 0], [39, 1, -1, 255, 0]],
+ [[0, 2, -1, 255, 0], [2, 24, 16, 255, 0], [26, 14, -1, 255, 0]],
+ [],
+ [],
+ [],
+ [],
+ [],
+ [
+ [0, 1, 174, -1, 0],
+ [2, 2, 174, -1, 0],
+ [4, 3, 216, -1, 0],
+ [7, 4, 174, -1, 0],
+ [11, 1, 241, -1, 0]
+ ],
+ [[0, 35, 241, -1, 0]],
+ [[20, 18, 241, -1, 0]],
+ [[0, 40, 245, -1, 0]],
+ [[0, 2, 241, -1, 0]],
+ [[0, 40, 245, -1, 0]],
+ [
+ [2, 7, 30, -1, 1],
+ [9, 1, 241, -1, 0],
+ [10, 1, 245, -1, 0],
+ [11, 1, 241, -1, 0],
+ [12, 5, 130, -1, 0],
+ [17, 1, 241, -1, 0],
+ [18, 1, 245, -1, 0],
+ [19, 1, 241, -1, 0],
+ [20, 2, 96, -1, 0],
+ [22, 1, 241, -1, 0],
+ [23, 1, 245, -1, 0],
+ [24, 1, 241, -1, 0],
+ [25, 6, 30, -1, 0]
+ ],
+ [[2, 12, 245, -1, 0], [14, 1, 241, -1, 0], [15, 2, 65, -1, 0]],
+ [
+ [2, 6, 245, -1, 0],
+ [8, 8, 202, -1, 0],
+ [16, 2, 245, -1, 0],
+ [18, 1, 241, -1, 0],
+ [19, 8, 238, 217, 1],
+ [27, 1, 241, -1, 0],
+ [28, 6, 166, -1, 1],
+ [34, 1, 241, -1, 0],
+ [35, 3, 61, -1, 0]
+ ],
+ [[2, 29, 241, -1, 0]]
+ ]
+}