Claude Code. Any Model. The most powerful AI coding agent now speaks every language.
docs(reports): record how the 11.0.0 pane and team fixes were verified
Jack Rudenkoe8d1f5bd81b2
diff --git a/ai-docs/reports/2026-10-16-session-unsettled-background-agents.md b/ai-docs/reports/2026-10-16-session-unsettled-background-agents.mdindex f5d024f4..ea4c45db 100644--- a/ai-docs/reports/2026-10-16-session-unsettled-background-agents.md+++ b/ai-docs/reports/2026-10-16-session-unsettled-background-agents.md@@ -1,6 +1,6 @@# One-shot session never settles: background-agent notifications delivered mid-turn are not read-Date: 2026-10-16. Status: diagnosed, not fixed. Diagnosis verdict: **Confirmed** (offline replay of the real transcript through the production reducer and settle rule).+Date: 2026-10-16. Status: **fixed in 11.0.0** — `fix(pane): settle turns whose background agents finish mid-turn` reads the `attachment/queued_command` form; `feat(pane): report agent_count_mismatch when agent counts disagree` adds suggested-fix item 3 as a warning only (it never settles a turn). Verified offline (the replay below: agents 2/2, settled by `turn_duration` at line 654) and live on 2026-10-17 (a bare CLI `team run` with the live recipe: the child transcript, Claude Code 2.1.301, held one async launch and its notification as `attachment/queued_command`, zero `user` notifications; the slot COMPLETED in 42 s with `DONE`, no anomalies). Diagnosis verdict: **Confirmed** (offline replay of the real transcript through the production reducer and settle rule).## Summarydiff --git a/ai-docs/reports/2026-10-17-cli-team-run-grid-default.md b/ai-docs/reports/2026-10-17-cli-team-run-grid-default.mdnew file mode 100644index 00000000..4293fc41--- /dev/null+++ b/ai-docs/reports/2026-10-17-cli-team-run-grid-default.md@@ -0,0 +1,30 @@+# CLI `claudish team run` without --grid ran the grid and emptied input.md++Date: 2026-10-17. Status: **fixed in 11.0.0** — `fix(team): keep an existing input.md when `team run` has no --input` and `fix(team)!: run `team run` as panes when --grid is not given`.++## Symptom (claudish 10.6.3)++`claudish team run --path P --models gpt-6.1-sol`, with P/input.md holding the task (238 bytes) and no `--input`, `--grid` or `--mode`:++- P/input.md was 0 bytes afterwards.+- P/gridfile.txt existed and ended in `claudish --model gpt-6.1-sol -y --quiet ''`: the magmux GRID ran, with an empty prompt.+- status.json: slot 01 `FAILED`, `exitCode` 1 after 2 s, `spawnModel`/`provider`/`pane` null (the placeholders `buildTeamStatus` in team-grid.ts writes for a grid slot).++The help text (`--input <text> Task prompt (or create input.md in --path beforehand)`), the doc comment of team-cli.ts and team-capture.md all say a bare `team run` runs interactive panes, like the MCP `team` tool.++## Causes — two independent defects, both in the CLI `team run` branch++- **Mode.** `teamCommand` defaulted `--mode` to `"default"`, which selects `runWithGrid`; only the undocumented `--mode json` reached `runPaneTeam`, and `--grid` mapped to the same `"default"`. History: the default dates from v6.7.0 (the magmux grid); the commit that added pane mode, its help text and its doc comment did not change it. An unknown `--mode` value also ran the grid.+- **Input.** The grid branch passed `input ?? ""` to `runWithGrid`, and `setupSession` (team-orchestrator.ts) writes input.md for any value that is not `undefined`, so the empty string replaced the task. `runWithGrid` then read the empty file back as every pane's prompt.++Neither affects the MCP `team` tool: it never calls `runWithGrid`, and passes the inline text, the `input_file` content or `undefined`, never `""`. The other CLI entry, `claudish --team a,b "prompt"`, refuses an empty prompt first, and its grid default matches its own help.++## Decision (Jack, 2026-10-17)++A bare `team run` runs panes, as documented. `--grid` / `--mode default` and `--interactive` keep the grid. An unknown `--mode` exits 2, naming `default`, `interactive` and `json`, before anything is written to the session path. This is a breaking change for anyone who used the bare command to get the grid.++## Verification++- `packages/cli/src/team-cli-run-mode.test.ts` (hermetic, fake model `contract-fake-a`): before the fix a bare run wrote gridfile.txt with a null pane and an emptied input.md, and `--mode bogus` exited 0 and wrote manifest.json; after it, 3 pass / 0 fail.+- The input defect was reproduced against the real `setupSession`: `undefined` kept a 15-byte input.md, `""` left 0 bytes.+- Live, 2026-10-17, built CLI: a bare `team run` with a pre-written input.md ran on a pane, kept input.md at 238 bytes, and the slot COMPLETED.