Skip to content

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

fix(team): require magmux 0.15.1 so a taller pane redraws Claude Code

Jack Rudenko243bd0142b70
diff --git a/.github/magmux.env b/.github/magmux.env
index fe74b9ae..fbb9d9e4 100644
--- a/.github/magmux.env
+++ b/.github/magmux.env
@@ -3,8 +3,8 @@
# Bump the tag and all four checksums together, deliberately, after the pane suites
# pass against the new release. The sums are copied from the release's checksums.txt
# and verified independently of it: a replaced asset or a moved tag fails the download.
-MAGMUX_TAG=v0.15.0
-MAGMUX_SHA256_darwin_amd64=927ec2309973d1fd7c4aaf9ed59be25799445174b154304a6d663ab31161f148
-MAGMUX_SHA256_darwin_arm64=89a7bf7bc3208f1dc1bd9d5742390c650cf1aa00f4d74a8b4fa6f6bf8c7f0531
-MAGMUX_SHA256_linux_amd64=2971e527fd8f3ef37deed31bd59a2aeb14b1465334b5de94111bbaa641ac9ee6
-MAGMUX_SHA256_linux_arm64=24c506e91c2673d1d62d18bc3cb4542367652dd75cccd7ca55ea96584163918a
+MAGMUX_TAG=v0.15.1
+MAGMUX_SHA256_darwin_amd64=a3eaa190fc13700cdd62d58a22cfa5211fa42cc8332fd69fb49b3f99ff667604
+MAGMUX_SHA256_darwin_arm64=bc1ad66b09f7344d725dc010240bcdc868cfa361e0555ffdd2287c9fb9be7e3a
+MAGMUX_SHA256_linux_amd64=e3e8c16d50e7978cc27a1bd75293c785dd081f607778af3a3e67ffec387d2f83
+MAGMUX_SHA256_linux_arm64=c0076445e1b0a8c982c680e8a421309518343b16b0d0fbf8d5b8bee09c98d372
diff --git a/ai-docs/architecture/mcp-sessions.md b/ai-docs/architecture/mcp-sessions.md
index de782462..0469972b 100644
--- a/ai-docs/architecture/mcp-sessions.md
+++ b/ai-docs/architecture/mcp-sessions.md
@@ -51,7 +51,7 @@ A refusal is an `invalid_args` error before any credential work. `create_session
argument becomes `--agent <name>`; an unknown name is refused by the child itself (FAILED
`agent_rejected`), so claudish runs no agent probe of its own.
-**A session is created in this order**: the flag check, `assertMagmuxAvailable` (magmux ≥ 0.15.0,
+**A session is created in this order**: the flag check, `assertMagmuxAvailable` (magmux ≥ 0.15.1,
else `Error: magmux_unavailable: …`), credential pre-hydration, the parent session read, a pane
reservation (`Error: pane_limit: …` past 48 live panes per user), `prompt.md`, `spawn.json`, then the
pane. `create_session` returns `{session_id, state}` once the pane exists, without waiting for boot.
@@ -334,8 +334,11 @@ pending?}`: the size actually set after clamping to 80–500 × 24–200, and th
redraw at that size has landed, so a capture with that `since_seq` already sees it. Their errors
are a JSON `ContractError`; `resize` is the only verb that emits the two codes it added,
`resize_unsupported` (the magmux has no `resize` op) and `delivery_unavailable` (magmux refused, or
-the pane is unreachable). `capabilities` lists `resize` since the pin moved to magmux 0.15.0, the
-first release with the op; the per-pane check of magmux's `verbs` stays as the defence against a
+the pane is unreachable). `capabilities` lists `resize` since the pin moved to magmux 0.15.1. The
+floor is 0.15.1, not 0.15.0 (the first release with the op): 0.15.0 kept the scroll region's old
+bottom after a row grow and clamped cursor-down to it, so Claude Code's relative-move redraw
+collapsed its input box onto the old last row and `pathPrimary` never settled the next turn. The
+fake child redraws with relative cursor-down for that reason. The per-pane check of magmux's `verbs` stays as the defence against a
binary that passes the version floor but lacks the op. `team` gains the same verbs as modes (`list`, `status`, `capture`,
`cancel`, `resize`). Why the size is the viewer's and what resizing costs the screen heuristics:
`pane-session.md`, "Terminal size".
diff --git a/ai-docs/architecture/pane-session.md b/ai-docs/architecture/pane-session.md
index b795d3de..ffe53ff3 100644
--- a/ai-docs/architecture/pane-session.md
+++ b/ai-docs/architecture/pane-session.md
@@ -608,8 +608,8 @@ reserves N panes before a run's spawn loop; each start consumes one, whether it
pane's life. `capture` and `capture_session` are memory reads. `aboveBoxChangedAt` moves only when a
row ABOVE the input box changes, so the status line ticking under the box never holds a quiet window
open. 4 fps (research recommended 2–4) halves boot, witness and settle latency at no idle cost.
-- `assertMagmuxAvailable` requires `magmux --version` ≥ 0.15.0 (cached per binary), and every
- connect re-checks `capabilities` (`protocol: 1`, version ≥ 0.15.0). claudish never substitutes print mode.
+- `assertMagmuxAvailable` requires `magmux --version` ≥ 0.15.1 (cached per binary), and every
+ connect re-checks `capabilities` (`protocol: 1`, version ≥ 0.15.1). claudish never substitutes print mode.
The release job bundles a pinned magmux and checks the pin against `MIN_MAGMUX_VERSION`.
- **Latent, outside this driver:** `team-grid.ts` (CLI `--grid`) does not pass `--sock-dir`, so an
inherited `MAGMUX_SOCK_DIR` would move its socket (F7).
diff --git a/docs/usage/magmux.md b/docs/usage/magmux.md
index 2fbf9de8..80a628c9 100644
--- a/docs/usage/magmux.md
+++ b/docs/usage/magmux.md
@@ -60,7 +60,7 @@ has finished, and closes the pane when the slot or session ends.
**Requirements:**
-- **magmux 0.15.0 or newer.** The npm package bundles it on macOS and Linux; otherwise
+- **magmux 0.15.1 or newer.** The npm package bundles it on macOS and Linux; otherwise
`brew install MadAppGang/tap/magmux`. With an older magmux, or none, `team(mode:"run")`,
`create_session` and `claudish team` / `--team` refuse with `magmux_unavailable`; claudish
never substitutes print mode.
diff --git a/docs/usage/mcp-server.md b/docs/usage/mcp-server.md
index 1ef05d3c..9d8ddbaa 100644
--- a/docs/usage/mcp-server.md
+++ b/docs/usage/mcp-server.md
@@ -13,7 +13,7 @@ The server exposes **15 tools** across four groups: low-level (3), agentic (3),
Every `team` slot and every `create_session` session is a real, interactive Claude Code session
running your model, inside its own headless [magmux](magmux.md) pane. That needs:
-- **magmux 0.15.0 or newer.** It is bundled with the npm package on macOS and Linux; otherwise
+- **magmux 0.15.1 or newer.** It is bundled with the npm package on macOS and Linux; otherwise
install it with `brew install MadAppGang/tap/magmux`. Without it, `team(mode:"run")`,
`create_session` and the CLI's `claudish team` / `--team` refuse with
`Error: magmux_unavailable: …` instead of falling back to anything else.
@@ -440,7 +440,8 @@ Set a session's terminal size. The child gets a real resize signal and Claude Co
new width; the next `capture_session` reports the new `cols`/`rows` under a new `seq`. Allowed in
every state, mid-turn included. When several callers resize the same session, the last one wins.
-Needs magmux 0.15.0 or newer, the first release that resizes a headless pane. `list_sessions` and
+Needs magmux 0.15.1 or newer. 0.15.0 added the resize op, but a pane that grew taller kept its old
+scroll region, which garbled Claude Code's input box and stopped its turns from ending. `list_sessions` and
`team` list `resize` in `capabilities`. If magmux lacks the `resize` verb, the call answers
`resize_unsupported`.
@@ -671,7 +672,7 @@ CLAUDISH_MCP_TOOLS=session OPENROUTER_API_KEY=sk-or-v1-... claudish --mcp
**Check magmux** (needed by `team` and sessions):
```bash
-magmux --version # 0.15.0 or newer
+magmux --version # 0.15.1 or newer
```
---
@@ -684,7 +685,7 @@ magmux --version # 0.15.0 or newer
**Rate limits:** OpenRouter has rate limits. Heavy parallel usage might hit them.
-**Platforms:** `team` and sessions need magmux 0.15.0+ and run on macOS and Linux only; Windows is not supported for them.
+**Platforms:** `team` and sessions need magmux 0.15.1+ and run on macOS and Linux only; Windows is not supported for them.
---
diff --git a/packages/cli/src/mcp-server.ts b/packages/cli/src/mcp-server.ts
index 1b7ac4aa..3ddb8fd4 100644
--- a/packages/cli/src/mcp-server.ts
+++ b/packages/cli/src/mcp-server.ts
@@ -459,7 +459,7 @@ export const NEXT_STEP: Record<FailureReason, string> = {
"the child never read all of its task file — check that its agent or tool flags allow " +
"Read and that the model can call tools; `what` says which lines were read",
child_exited: "read the evidence screen, then retry or drop the model",
- pane_lost: "magmux died — check `magmux --version` ≥ 0.15.0 and retry",
+ pane_lost: "magmux died — check `magmux --version` ≥ 0.15.1 and retry",
blocked:
"the child asked a question team cannot answer — make the prompt self-contained or use " +
"create_session",
@@ -1948,7 +1948,7 @@ function defineTools(sessionManager: SessionManager, nested: boolean): ToolDefin
"it in its own headless magmux pane. Returns at once with state STARTING; nothing is " +
"pushed while it runs: poll list_sessions (about once every 10 s) for its state, then " +
"call get_output once it is COMPLETED. With a prompt it is one-shot (it ends when that turn " +
- "settles); without one it is interactive and waits for send_input. Needs magmux >= 0.15.0 " +
+ "settles); without one it is interactive and waits for send_input. Needs magmux >= 0.15.1 " +
"(darwin and linux).",
inputSchema: {
type: "object",
diff --git a/packages/cli/src/pane/contract.ts b/packages/cli/src/pane/contract.ts
index cb133a20..9868bca6 100644
--- a/packages/cli/src/pane/contract.ts
+++ b/packages/cli/src/pane/contract.ts
@@ -11,7 +11,7 @@
export const CONTRACT_VERSION = 1;
-/** v1 announces exactly these. `resize` is additive: it needs magmux >= 0.15.0. */
+/** v1 announces exactly these. `resize` is additive: it needs magmux >= 0.15.1. */
export const CAPABILITIES = [
"list",
"status",
diff --git a/packages/cli/src/pane/pane-launch.test.ts b/packages/cli/src/pane/pane-launch.test.ts
index 3fa3b082..a48102ad 100644
--- a/packages/cli/src/pane/pane-launch.test.ts
+++ b/packages/cli/src/pane/pane-launch.test.ts
@@ -274,26 +274,26 @@ describe("watcher argv and version gate", () => {
test("the magmux version probe never blocks the event loop; an old version is refused", async () => {
const dir = tmp();
const slow = join(dir, "magmux-slow");
- writeFileSync(slow, "#!/bin/sh\nsleep 0.6\necho 'magmux 0.15.0 (fake)'\n");
+ writeFileSync(slow, "#!/bin/sh\nsleep 0.6\necho 'magmux 0.15.1 (fake)'\n");
chmodSync(slow, 0o755);
let ticks = 0;
const timer = setInterval(() => ticks++, 50);
try {
- expect(await assertMagmuxAvailable(slow)).toEqual({ binary: slow, version: "0.15.0" });
+ expect(await assertMagmuxAvailable(slow)).toEqual({ binary: slow, version: "0.15.1" });
} finally {
clearInterval(timer);
}
expect(ticks).toBeGreaterThanOrEqual(5); // a synchronous probe would let none run
const old = join(dir, "magmux-old");
- writeFileSync(old, "#!/bin/sh\necho 'magmux 0.14.0'\n");
+ writeFileSync(old, "#!/bin/sh\necho 'magmux 0.15.0'\n");
chmodSync(old, 0o755);
- await expect(assertMagmuxAvailable(old)).rejects.toThrow(/panes need >= 0.15.0/);
+ await expect(assertMagmuxAvailable(old)).rejects.toThrow(/panes need >= 0.15.1/);
});
test("versionAtLeast", () => {
- expect(versionAtLeast("0.15.0", "0.15.0")).toBe(true);
- expect(versionAtLeast("0.15.2", "0.15.0")).toBe(true);
- expect(versionAtLeast("0.14.9", "0.15.0")).toBe(false);
- expect(versionAtLeast("1.0.0", "0.15.0")).toBe(true);
+ expect(versionAtLeast("0.15.1", "0.15.1")).toBe(true);
+ expect(versionAtLeast("0.15.2", "0.15.1")).toBe(true);
+ expect(versionAtLeast("0.15.0", "0.15.1")).toBe(false);
+ expect(versionAtLeast("1.0.0", "0.15.1")).toBe(true);
});
});
diff --git a/packages/cli/src/pane/pane-launch.ts b/packages/cli/src/pane/pane-launch.ts
index 057186af..5698da9d 100644
--- a/packages/cli/src/pane/pane-launch.ts
+++ b/packages/cli/src/pane/pane-launch.ts
@@ -484,7 +484,7 @@ export const KNOWN_CLAUDISH_FLAGS: readonly string[] = Object.keys(CLAUDISH_FLAG
/* ───────────────────────────── magmux binary ───────────────────────────── */
-export const MIN_MAGMUX_VERSION = "0.15.0";
+export const MIN_MAGMUX_VERSION = "0.15.1";
export class MagmuxUnavailableError extends Error {
readonly code = "magmux_unavailable";
@@ -505,7 +505,7 @@ export function versionAtLeast(v: string, min: string): boolean {
const magmuxCache = new Map<string, { binary: string; version: string }>();
const execFileAsync = promisify(execFile);
-/** The magmux binary and its version (≥ 0.15.0), cached per process. Never a `-p` fallback. */
+/** The magmux binary and its version (≥ 0.15.1), cached per process. Never a `-p` fallback. */
export async function assertMagmuxAvailable(
binary?: string
): Promise<{ binary: string; version: string }> {
diff --git a/packages/cli/src/pane/pane-registry.test.ts b/packages/cli/src/pane/pane-registry.test.ts
index 71d498ab..b114ca71 100644
--- a/packages/cli/src/pane/pane-registry.test.ts
+++ b/packages/cli/src/pane/pane-registry.test.ts
@@ -433,7 +433,7 @@ describe.skipIf(!MAGMUX)(`pane registry, real magmux (${MAGMUX ? "" : NO_MAGMUX_
test("R3-M1: a magmux spawn failure reaps at once — record and dirs gone, no watcher, livePaneCount 0", async () => {
const t = env();
const fake = join(t.tmp, "magmux-fake");
- writeFileSync(fake, "#!/bin/sh\necho 'magmux 0.15.0 (fake)'\n");
+ writeFileSync(fake, "#!/bin/sh\necho 'magmux 0.15.1 (fake)'\n");
chmodSync(fake, 0o755);
await assertMagmuxAvailable(fake); // passes the version gate …
rmSync(fake);
diff --git a/packages/cli/src/team-cli.ts b/packages/cli/src/team-cli.ts
index 1644a8ac..22db32c9 100644
--- a/packages/cli/src/team-cli.ts
+++ b/packages/cli/src/team-cli.ts
@@ -88,7 +88,7 @@ Options (run / run-and-judge):
--timeout <secs> Grid modes only: magmux's own per-pane timeout (default: 300).
json mode has no deadline — nothing kills a working model.
json mode runs each model as an interactive pane in a headless
- magmux (>= 0.15.0; darwin and linux).
+ magmux (>= 0.15.1; darwin and linux).
--grid Show all models in a magmux grid with live output + status bar
--mode <m> run only: json (default, panes), default (the grid, as --grid)
or interactive (as --interactive)
diff --git a/packages/cli/src/team-orchestrator.ts b/packages/cli/src/team-orchestrator.ts
index e6aebdb9..e4429bcc 100644
--- a/packages/cli/src/team-orchestrator.ts
+++ b/packages/cli/src/team-orchestrator.ts
@@ -1139,7 +1139,7 @@ function assertValidRequirePattern(pattern: string | undefined): void {
/**
* The pre-spawn refusals of a team run, in the order the MCP `run` handler applies them
* BEFORE `setupSession` writes anything (§4.1): the caller's flags (D18), a prompt that
- * cannot be delivered with those flags (§2.3 rule 4), magmux present (≥ 0.15.0), no
+ * cannot be delivered with those flags (§2.3 rule 4), magmux present (≥ 0.15.1), no
* ACTIVE run at the path, and room under the per-user pane limit. Each throws an Error
* whose message starts with its code (`invalid_args:`, `magmux_unavailable:`,
* `pane_limit:`). `startModels` repeats them, so the CLI gets the same checks.