Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(agentic-ide): panes are always shown, and the wizard advises from ten terminals — no card, no "anyway"

Harald2f72c50addc9
diff --git a/docs/BUGS.md b/docs/BUGS.md
index 51b782f850..2bbd80b449 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -10128,3 +10128,58 @@ failed: No OpenRouter API key") and the TTS default at a provider without a
key. (d) The paste's 3 s arrival check did not see the text on T2 — one
sample, cause unknown (slow render under load vs. a placeholder shape the
detector does not know).
+
+## BUG-146: every pane of an ordinary six-terminal workspace is covered by "56 columns — Claude Code needs about 60 · Open it · Show it anyway", and the wizard demands "Open it anyway" from six terminals up — two guards built against a 13-column repaint bug fired at widths that work fine (HIGH, FIXED 2026-08-18)
+
+**Symptom.** Six Claude Code panes in a 3×2 grid on a 1 920 px window at
+text size 13: each measured 56 columns and each showed the card instead of
+its terminal, so the user clicked "Show it anyway" six times to see agents
+that were running perfectly well. In the wizard, choosing six terminals put
+up a red "too narrow for an agent to draw in, so they open as status cards"
+warning and blocked the next step behind "Open it anyway". Reported by the
+maintainer as being patronised: "users get nagged far too early".
+
+**Root.** `WORKABLE_COLS = 60` was written as the width below which "both
+installed CLIs stop laying out a usable frame" (2026-08-09) and then used as a
+GATE in three places: `PaneTooNarrowCard` in `AgenticTerminal.tsx` hid the
+terminal and held its columns below it (built 2026-08-13 against a real bug —
+at ~13 columns a coding CLI's relative repaint wipes its own rows and panes
+come back blank); `WorkspaceLauncher.tsx` treated a measured per-pane width
+below it as "crowded" and blocked with the same button that
+`CROWDED_TERMINAL_COUNT = 20` used; `WorkspaceShape.tsx` said the panes would
+open as status cards. The threshold was three to four times higher than the
+width the bug was measured at, so the guards fired on every ordinary
+multi-column layout, and each of them made the user CONFIRM something they
+had just chosen.
+
+**Fix.** The pane no longer argues about its width: `PaneTooNarrowCard`, the
+column hold (`heldColsRef` / `narrowOverride`) and the older `PaneWidthNotice`
+row are gone, and the terminal is exactly as wide as its tile, always shown
+(only the absurd `MIN_REAL_COLS = 10` is still refused). The wizard SAYS
+instead of asking: `CROWDED_TERMINAL_COUNT` is 10 and `WORKABLE_COLS` is 40,
+both are ADVICE — one muted sentence with the count, the measured columns
+and how many fit comfortably at the reader's text size — with no button and
+no held-back step (`crowded.accept` / `crowded.accepted` removed from all
+three locales; wording rewritten in en/de/es). The `activity` /
+`activitySince` / `worked` pane props existed only for the card and are gone
+with it.
+
+**Trade-off, stated.** The 2026-08-13 blank-pane failure at ~13 columns is
+no longer prevented by the pane; it is only ANNOUNCED by the wizard
+beforehand. Reaching it takes an extreme layout (≈ 24+ panes at text size 13
+on a 1 920 px window, or 12+ at size 20); the maintainer's rule is that this
+is the user's call, and a pane they can maximize beats a card they must click
+away.
+
+**Class.** A guard tuned far above the failure it guards against becomes the
+failure: every "confirm anyway" the user meets on an ordinary path is a bug
+report waiting to happen. Thresholds that gate must be measured at the point
+things actually break, and even then a warning that only informs is usually
+right where a warning that blocks is wrong.
+
+**Regression tests.** `AgenticTerminal.test.tsx` ("follows the tile down to
+a width its agent cannot draw a frame in", "shows the terminal at the tile's
+width, however narrow, and says nothing"); `WorkspaceLauncher.crowded.test.tsx`
+("says so from ten terminals up, and lets the wizard carry on", "opens
+exactly the count that was asked for" with 30 panes and no confirmation);
+`layout.test.ts` (the constants' arithmetic).
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
index 58fabe8d2c..fa89f0a94e 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
@@ -2980,13 +2980,6 @@ export function AgenticGrid({
generatedAt: recaps[term.name]?.generated_at,
}}
recapActions={recapActionsFor(term.name)}
- // The backend's reading of what this agent is doing. Only a
- // pane that has had to give up its terminal for a card reads
- // them — see PaneTooNarrowCard — but they are cheap and already
- // in the state this component polls.
- activity={term.activity}
- activitySince={term.activity_since}
- worked={term.worked}
// Only the panes that are NOT on the default login carry a
// badge. Labelling every pane "Default Claude Code login" would
// be noise for the many; labelling the odd one out is the whole
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
index cf9bac8a08..78f31843e0 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
@@ -1392,9 +1392,9 @@ describe("pane refit", () => {
* the left" was describing. It was working exactly as written.
*
* The width a coding CLI wants did not stop mattering; it stopped being
- * enforced HERE. The launcher warns from twenty terminals up and opens as
- * many as the user confirms, and a pane too narrow to be useful is now a pane
- * they can see is too narrow.
+ * enforced HERE. The launcher says from ten terminals up how narrow the panes
+ * will come out and opens as many as the user asks for, and a pane too narrow
+ * to be useful is a pane they can see is too narrow.
*/
it("fits the tile it is shown in, down to the width its agent can draw in", () => {
const view = render(pane(false));
@@ -1417,39 +1417,34 @@ describe("pane refit", () => {
});
/*
- * Below that width the pane keeps its agent's columns instead.
+ * …and to a width its agent cannot draw a tidy frame in, too.
*
- * This is the half of the rule that was missing until 2026-08-13, and the bug
- * it cost: opening five more terminals re-fits every pane already open, and
- * at thirteen columns a coding CLI's own repaint erases more of its screen
- * than it rewrites. Panes that had been working for an hour came back blank.
- *
- * The tile is still measured honestly and nothing is drawn past its edge —
- * there is simply no terminal in it to be wrong about. See PaneTooNarrowCard.
+ * A pane used to HOLD its columns below 60 and show a card instead of its
+ * terminal (2026-08-13, against a repaint bug measured at ~13 columns). That
+ * card then covered every pane of an ordinary six-pane workspace at 56 columns
+ * and had to be clicked away six times, so the maintainer retired it
+ * (2026-08-18): the terminal is shown at the tile's width, whatever it is.
*/
- it("holds its agent's columns when the tile stops being drawable", () => {
+ it("follows the tile down to a width its agent cannot draw a frame in", () => {
const view = render(pane(false));
settle();
terminalHarness.fit.mockClear();
terminalHarness.send.mockClear();
- terminalHarness.resize.mockClear();
// The crowded-grid measurement (~17 columns per cell, thirteen panes).
terminalHarness.size = { cols: 17, rows: 6 };
view.rerender(pane(true));
settle();
- // Never fitted to the tile — fit() is what would have handed the agent 17.
- expect(terminalHarness.fit).not.toHaveBeenCalled();
- // The width the pane opened at, kept. Height still follows the tile: a
- // resize on that axis repaints in place and breaks nothing.
- expect(terminalHarness.resize).toHaveBeenCalledWith(80, 6);
+ expect(terminalHarness.fit).toHaveBeenCalled();
expect(terminalHarness.send).toHaveBeenCalledWith({
t: "r",
- cols: 80,
+ cols: 17,
rows: 6,
});
- expect(screen.getByTestId("pane-too-narrow-Dana")).toBeTruthy();
+ // No card, no notice — nothing between the reader and the terminal.
+ expect(screen.queryByTestId("pane-too-narrow-Dana")).toBeNull();
+ expect(screen.queryByTestId("pane-width-notice-Dana")).toBeNull();
});
it("gives xterm and the agent the same number, always", () => {
@@ -1457,15 +1452,11 @@ describe("pane refit", () => {
// width its xterm does not have re-wraps every one of them, and the TUI's
// cursor moves then land on rows that hold something else — a five-pane
// grid came back as panes full of shredded one-word fragments (2026-08-10).
- // Held columns are no exception: the pane pins xterm to exactly the number
- // it sends, which is why the terminal underneath a card is still correct.
for (const size of [
{ cols: 17, rows: 6 },
{ cols: 33, rows: 40 },
{ cols: 90, rows: 30 },
]) {
- // Every pane in this loop OPENS with room, so the width it holds when a
- // narrow tile arrives is the same 80 in each case.
terminalHarness.size = { cols: 80, rows: 24 };
const view = render(pane(false));
settle();
@@ -1476,18 +1467,13 @@ describe("pane refit", () => {
view.rerender(pane(true));
settle();
- // 80 is the width this pane opened at and therefore the one it holds.
- const shown = size.cols >= 60 ? size.cols : 80;
+ // fit() sizes xterm to the tile, so the agent hearing the tile's own
+ // measurement IS the two agreeing.
expect(terminalHarness.send).toHaveBeenCalledWith({
t: "r",
- cols: shown,
+ cols: size.cols,
rows: size.rows,
});
- // fit() sizes xterm to the tile, so the agent hearing the tile's own
- // measurement IS the two agreeing; a held width says so explicitly.
- if (shown !== size.cols) {
- expect(terminalHarness.resize).toHaveBeenCalledWith(shown, size.rows);
- }
view.unmount();
}
});
@@ -1525,12 +1511,11 @@ describe("pane refit", () => {
const term =
terminalHarness.instances[terminalHarness.instances.length - 1];
expect(term?.options.fontSize).toBe(13);
- // The pane holds its agent's columns here rather than following the tile
- // (see "holds its agent's columns" above) — but it does it without touching
- // a single point of the reader's text size, which is what this pins.
+ // The pane takes the tile's 40 columns without touching a single point of
+ // the reader's text size, which is what this pins.
expect(terminalHarness.send).toHaveBeenCalledWith({
t: "r",
- cols: 80,
+ cols: 40,
rows: 20,
});
});
@@ -1701,8 +1686,6 @@ describe("pane refit while the agent is drawing", () => {
terminalHarness.fit.mockClear();
terminalHarness.send.mockClear();
- // A width the agent can still draw in, so this measures the parse gate and
- // nothing else — a narrow tile takes the held-columns path instead.
terminalHarness.size = { cols: 64, rows: 12 };
askForARefit();
finishDrawing();
@@ -1742,109 +1725,41 @@ describe("pane refit while the agent is drawing", () => {
});
/*
- * A pane too narrow for its agent stops being a terminal and says what it is.
- *
- * The rule that a pane is exactly as wide as its tile is not in question
- * here — none of this draws a column past a tile edge. What it closes is the
- * gap the rule left open: a coding CLI below its usable width does not draw a
- * small tidy frame, it lays its interface out one and two characters wide and
- * then repaints over rows that no longer hold what it drew. The pane comes
- * back blank (reported 2026-08-13), and telling the user about it — which is
- * all this used to do — left the wreckage on screen.
+ * A narrow pane is a terminal like any other — nothing is put over it and
+ * nothing is said about it. The card that hid the terminal below 60 columns
+ * ("Show it anyway") and the notice row before it were both retired by the
+ * maintainer (2026-08-18): at 56 columns an ordinary six-pane workspace had
+ * every pane covered. What the panes will measure is said ONCE, in the wizard,
+ * before anything opens.
*/
- it("shows what the agent is doing when the tile is too narrow to draw in", () => {
- terminalHarness.size = { cols: 22, rows: 30 };
- render(
- <AgenticTerminal
- name="Dana"
- displayName="Claude Code"
- appearance="dark"
- fontSize={13}
- activity="working"
- recap="Rewriting the prompt composer"
- onToggleMaximize={() => undefined}
- />,
- );
- act(() => {
- vi.advanceTimersByTime(600);
- // A pane still opening its socket reports "starting" whatever the backend
- // says about the agent — the same rule the header's pill follows.
- terminalHarness.handlers.current?.onReady?.({
- resumed: false,
- reattached: false,
- lastPrompt: null,
- } as never);
- });
-
- const card = screen.getByTestId("pane-too-narrow-Dana");
- expect(card.dataset.cols).toBe("22");
- // The state in a word, the recap, and the arithmetic behind the decision.
- expect(card.textContent).toContain("working");
- expect(card.textContent).toContain("Rewriting the prompt composer");
- expect(card.textContent).toContain("22 columns");
- // One sentence, not two: the header notice says the same thing and would be
- // on screen at the same time.
- expect(screen.queryByTestId("pane-width-notice-Dana")).toBeNull();
- });
-
- it("hands the pane back at its tile's width when the reader insists", () => {
- // A reader who wants to watch a 22-column terminal is not somebody this
- // should argue with. "Show it anyway" restores exactly the behaviour a
- // narrow pane had before the card existed — the tile's own width, handed to
- // the agent, plus the notice saying what that costs.
+ it("shows the terminal at the tile's width, however narrow, and says nothing", () => {
terminalHarness.size = { cols: 22, rows: 30 };
render(pane());
act(() => {
vi.advanceTimersByTime(600);
});
- terminalHarness.send.mockClear();
-
- act(() => {
- screen.getByTestId("pane-too-narrow-anyway-Dana").click();
- });
expect(screen.queryByTestId("pane-too-narrow-Dana")).toBeNull();
- expect(screen.getByTestId("pane-width-notice-Dana").dataset.cols).toBe("22");
+ expect(screen.queryByTestId("pane-width-notice-Dana")).toBeNull();
expect(terminalHarness.send).toHaveBeenCalledWith({
t: "r",
cols: 22,
rows: 30,
});
- // Narrower still, and still the reader's call.
+ // Narrower still: still the tile's own width, still no argument.
+ terminalHarness.send.mockClear();
terminalHarness.size = { cols: 14, rows: 30 };
act(() => {
window.dispatchEvent(new Event("resize"));
vi.advanceTimersByTime(600);
});
expect(screen.queryByTestId("pane-too-narrow-Dana")).toBeNull();
- });
-
- it("takes the card back once a widened pane is crowded a second time", () => {
- terminalHarness.size = { cols: 22, rows: 30 };
- render(pane());
- act(() => {
- vi.advanceTimersByTime(600);
- });
- act(() => {
- screen.getByTestId("pane-too-narrow-anyway-Dana").click();
- });
-
- // Given room…
- terminalHarness.size = { cols: 120, rows: 30 };
- act(() => {
- window.dispatchEvent(new Event("resize"));
- vi.advanceTimersByTime(600);
- });
- // …and crowded again. "Show it anyway" answered a question about the pane
- // as it was then, not a standing waiver for the rest of its life.
- terminalHarness.size = { cols: 22, rows: 30 };
- act(() => {
- window.dispatchEvent(new Event("resize"));
- vi.advanceTimersByTime(600);
+ expect(terminalHarness.send).toHaveBeenCalledWith({
+ t: "r",
+ cols: 14,
+ rows: 30,
});
-
- expect(screen.getByTestId("pane-too-narrow-Dana")).toBeTruthy();
});
it("stays quiet on a pane with room to work", () => {
@@ -1858,13 +1773,12 @@ describe("pane refit while the agent is drawing", () => {
expect(screen.queryByTestId("pane-too-narrow-Dana")).toBeNull();
});
- it("gives the terminal back once the pane is given room", () => {
+ it("takes the room the moment the pane is given it", () => {
terminalHarness.size = { cols: 22, rows: 30 };
render(pane());
act(() => {
vi.advanceTimersByTime(600);
});
- expect(screen.getByTestId("pane-too-narrow-Dana")).toBeTruthy();
terminalHarness.send.mockClear();
terminalHarness.size = { cols: 120, rows: 30 };
@@ -1873,10 +1787,6 @@ describe("pane refit while the agent is drawing", () => {
vi.advanceTimersByTime(600);
});
- expect(screen.queryByTestId("pane-too-narrow-Dana")).toBeNull();
- expect(screen.queryByTestId("pane-width-notice-Dana")).toBeNull();
- // And the agent is told about the room, which is what makes the terminal
- // underneath the card correct the moment it is uncovered.
expect(terminalHarness.send).toHaveBeenCalledWith({
t: "r",
cols: 120,
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
index def25db6b3..2d251e2195 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
@@ -70,7 +70,6 @@ import {
import { SplitBelowIcon, SplitRightIcon } from "./splitIcons";
// A leaf module with no DOM and no terminal in it, which is the point: the
// wizard quotes this same number before any pane exists — see ./layout.
-import { WORKABLE_COLS } from "./layout";
import { cn } from "@/lib/utils";
import {
MINIMUM_CONTRAST_RATIO,
@@ -94,10 +93,10 @@ import {
type SplitAgentChoice,
} from "./AgentPicker";
import { describeExit, explainExit } from "./paneExit";
-import { PaneActivityPill, paneActivityLabel } from "./PaneActivityPill";
+import { PaneActivityPill } from "./PaneActivityPill";
import { PaneRecap } from "./PaneRecap";
import { attachToTerminal } from "@/lib/agenticIdeApi";
-import type { PaneActivity, RecapReason, RecapSource } from "@/lib/agenticIdeApi";
+import type { RecapReason, RecapSource } from "@/lib/agenticIdeApi";
import { attachTerminalBridge } from "@/lib/editActions";
import { robustCopy, robustPaste } from "@/lib/clipboard";
import {
@@ -309,26 +308,27 @@ const MIN_REAL_COLS = 10;
const MIN_REAL_ROWS = 4;
/*
- * The width below which a coding CLI stops drawing a frame anyone can read
- * ({@link WORKABLE_COLS}) now lives in ./layout, because the wizard has to
- * quote the same number before anything opens and must not import a terminal
- * to do it. What it MEANS here has changed twice, and both are worth keeping:
+ * A pane never argues about its own width any more.
*
- * * It began as a floor the backend enforced, which kept agents alive by
- * drawing every narrow pane wider than the window showing it. The maintainer
- * read that as terminals shoved behind one another (2026-08-11) and it was
- * removed, along with two other attempts on the same day — shrinking the text
- * until 60 fitted made the size controls look dead, and widening a pane on
- * hover shuffled the workspace under the cursor.
- * * It then became a NOTICE and nothing else, on the rule that survived all
- * three: a pane is exactly as wide as its tile. That rule still stands for
- * every pane that HAS a terminal in it.
+ * The number a coding CLI is comfortable at (`WORKABLE_COLS` in ./layout) is
+ * quoted ONLY by the wizard, as advice before anything opens. In here it has
+ * been four things, and every one of them was reported as a bug by the person
+ * looking at the screen:
*
- * What the notice could not fix is that the wreckage stayed on screen. Below
- * this width a coding CLI repaints over rows that no longer hold what it drew,
- * and panes that had been working for an hour came back blank (2026-08-13). So
- * a pane below it now holds its agent's columns and shows a card instead — see
- * `PaneTooNarrowCard`, which is where the whole argument is written down.
+ * * a floor the backend enforced, which drew narrow panes wider than their
+ * window — read as terminals shoved behind one another (2026-08-11);
+ * * an auto-shrink of the text until the floor fitted — the size controls
+ * looked dead (2026-08-11);
+ * * a notice row saying "N columns — needs about 60" on every narrow pane;
+ * * a card that HID the terminal below 60 columns and offered "Show it anyway"
+ * (2026-08-13, against a repaint bug measured at ~13 columns) — which then
+ * covered every pane of an ordinary six-pane workspace at 56 columns and had
+ * to be clicked away six times (2026-08-18).
+ *
+ * The maintainer's rule now is the simplest one: the terminal is exactly as
+ * wide as its tile, always, and it is always SHOWN. How many panes fit a
+ * screen is the user's call; the wizard says what they will get, and the pane
+ * gets out of the way. Only the absurd (`MIN_REAL_COLS`) is still refused.
*/
export type PaneStatus = "connecting" | "live" | "exited" | "error";
@@ -411,20 +411,6 @@ interface AgenticTerminalProps {
recapMeta?: PaneRecapMeta;
/** Rewriting, resetting and re-summarizing it. Absent = read-only card. */
recapActions?: PaneRecapActions;
- /*
- * Is this agent still working, and since when — the backend's own reading of
- * the pane's screen (`jarvis/agentic_ide/activity.py`).
- *
- * Only read by `PaneTooNarrowCard`, which is the one place in this component
- * that has to SAY the state rather than badge it: a pane whose terminal is
- * held back has nothing else on it to look at. Optional throughout, so every
- * standalone use of this component keeps working without them.
- */
- activity?: PaneActivity;
- /** When the pane entered that state (epoch seconds); 0 when unknown. */
- activitySince?: number;
- /** Has anything ever been asked of this pane? Separates "done" from "idle". */
- worked?: boolean;
/**
* Which subscription this pane runs on ("Work seat"), when that is worth
* saying. Undefined for everyone with a single login — the header must not
@@ -528,9 +514,6 @@ export function AgenticTerminal({
recapDetail,
recapMeta,
recapActions,
- activity = "",
- activitySince = 0,
- worked = false,
accountLabel,
promptCount = 0,
appearance,
@@ -598,48 +581,6 @@ export function AgenticTerminal({
* Reconnects therefore stay quiet: the replayed screen is already there.
*/
const [painted, setPainted] = useState(false);
- /*
- * How many columns this pane last fitted to, or null before it has measured.
- *
- * Mirrored into state for one reader — the width notice below. It changes
- * when the workspace is re-laid out, never per chunk of output, and React
- * bails out on an unchanged value, so a pane that keeps measuring the same
- * tile re-renders nothing.
- */
- const [paneCols, setPaneCols] = useState<number | null>(null);
- /*
- * Has the reader waved the width notice away for this pane?
- *
- * A notice that cannot be dismissed becomes furniture, and this one would be
- * on every pane of a crowded workspace at once — a row of identical warnings
- * about a trade the user may well have made on purpose. One click retires it.
- *
- * Reset below once the pane has room again, so a workspace that is widened
- * and later crowded a second time is told a second time rather than staying
- * quiet about a screen that has started shredding again.
- */
- const [widthNoticeDismissed, setWidthNoticeDismissed] = useState(false);
- /*
- * Has the reader asked to see the terminal anyway, at whatever width there is?
- *
- * The way out of the card below (see `PaneTooNarrowCard`). It restores exactly
- * the behaviour a narrow pane had before the card existed — the tile's own
- * width, handed to the agent, plus the notice saying so — for this one pane.
- *
- * Reset alongside `widthNoticeDismissed` once the pane has room again: the
- * override answers "show me this pane as it is now", not "never hold this
- * pane's columns again for the rest of its life".
- */
- const [narrowOverride, setNarrowOverride] = useState(false);
- /*
- * Is this pane's tile too narrow for its agent to draw in RIGHT NOW?
- *
- * Written by the fit (`applyResize`), which is the only thing that measures.
- * Distinct from `paneCols < WORKABLE_COLS` on purpose: that comparison is what
- * the fit decides FROM, and this is what it decided — including the case where
- * a pane has been measured but the override is holding the terminal open.
- */
- const [tooNarrow, setTooNarrow] = useState(false);
// A parked chat pane may have a large asynchronous xterm write to parse when
// it takes the stage again. Keep its terminal surface out of the paint until
// that write and the final viewport restoration have both landed; otherwise xterm
@@ -732,22 +673,6 @@ export function AgenticTerminal({
// Read by the connect effect's resize scheduler, which is built once and
// therefore cannot see the prop change.
const layoutBusyRef = useRef(layoutBusy);
- /*
- * The last width this pane could honestly give its agent, in COLUMNS.
- *
- * The whole mechanism behind {@link PaneTooNarrowCard}. While a tile is too
- * narrow to draw in, the pane keeps its terminal at this width instead of
- * following the tile down — so the agent goes on formatting for a screen it
- * can lay out, and the card is shown over the top rather than the wreckage.
- *
- * A ref because the fit reads it, and the fit is built once per terminal and
- * cannot see state. Seeded with WORKABLE_COLS so a pane that OPENS into a
- * narrow tile — the crowded workspace, which is the whole reported case — has
- * a workable width to hold from its very first measurement.
- */
- const heldColsRef = useRef(WORKABLE_COLS);
- // Read by the fit, which is built once per terminal — see `heldColsRef`.
- const narrowOverrideRef = useRef(narrowOverride);
onStatusRef.current = onStatus;
onAttachErrorRef.current = onAttachError;
fontSizeRef.current = fontSize;
@@ -755,7 +680,6 @@ export function AgenticTerminal({
activeRef.current = active;
focusedRef.current = focused;
layoutBusyRef.current = layoutBusy;
- narrowOverrideRef.current = narrowOverride;
useEffect(() => {
const region = terminalRegionRef.current;
@@ -1420,47 +1344,21 @@ export function AgenticTerminal({
cols: Math.max(proposed.cols, MIN_REAL_COLS),
rows: Math.max(proposed.rows, MIN_REAL_ROWS),
};
- // What the TILE measures — read by the width notice and by the card, which
- // are the two things in this component with an opinion about whether that
- // number is enough (see WORKABLE_COLS). Recorded whatever happens below: a
- // fit that changes nothing still measured the tile.
- setPaneCols(measured.cols);
/*
- * The decision this pane's card exists for.
- *
- * Everything above is unchanged: the tile is measured honestly and the
- * floors only refuse the absurd. What changes is what happens when the
- * honest answer is a width the agent cannot draw in.
+ * The tile's own measurement is the size, full stop.
*
- * Following the tile down there was the bug reported on 2026-08-13 and
- * measured once before on 2026-08-09: opening five more terminals re-fits
- * every pane already open (`append_pane` gives each new one a full-height
- * column), and at thirteen columns a coding CLI does not merely look
- * cramped — it repaints by erasing the rows it last drew, its own line
- * count no longer matches the screen, and the repaint wipes more than it
- * rewrites. Panes that had been working for an hour came back BLANK, and
- * no later output brought them back.
- *
- * So below the workable width the columns are HELD instead. The agent goes
- * on formatting for the last width it could lay out in, its screen is
- * never wrecked, and the pane shows a card saying what it is doing rather
- * than a rectangle of shredded fragments. Nothing is drawn past the tile's
- * edge, because nothing is drawn in the tile at all — which is what
- * separates this from the clipping design rejected on 2026-08-11.
- *
- * ROWS still follow the tile. Height is not the axis that breaks a TUI —
- * a resize on that axis repaints in place — and honouring it keeps xterm
- * and the PTY in agreement, which is the rule this whole file is built on.
+ * Both axes follow the tile. A pane used to HOLD its columns below a
+ * "workable" width and show a card instead of its terminal (2026-08-13,
+ * against a coding CLI whose relative repaint wipes its own rows when it
+ * is squeezed to ~13 columns). That card covered every pane of an
+ * ordinary six-pane workspace at 56 columns and had to be clicked away on
+ * each one, so the maintainer retired it (2026-08-18): the terminal is
+ * shown at whatever width the tile has, the wizard says beforehand how
+ * narrow that will be, and how many panes to open stays the user's call.
*/
- const narrow = measured.cols < WORKABLE_COLS && !narrowOverrideRef.current;
- setTooNarrow(narrow);
- // Only a width the agent could really draw in is worth holding on to.
- // Recorded even while the override is on: the reader chose to watch a
- // narrow pane, they did not choose what it should fall back to.
- if (measured.cols >= WORKABLE_COLS) heldColsRef.current = measured.cols;
- const size = narrow ? { cols: heldColsRef.current, rows: measured.rows } : measured;
+ const size = measured;
try {
- if (!narrow && size.cols === proposed.cols && size.rows === proposed.rows) {
+ if (size.cols === proposed.cols && size.rows === proposed.rows) {
fit.fit();
} else if (term.cols !== size.cols || term.rows !== size.rows) {
term.resize(size.cols, size.rows);
@@ -2009,17 +1907,6 @@ export function AgenticTerminal({
term.clearTextureAtlas?.();
}, [appearance, terminalEpoch]);
- // A pane that has been given room again forgets that its narrowness was
- // acknowledged — see `widthNoticeDismissed` and `narrowOverride`. Both answer
- // a question about the pane as it is NOW; a workspace that is widened and
- // later crowded a second time is told a second time.
- useEffect(() => {
- if (paneCols !== null && paneCols >= WORKABLE_COLS) {
- setWidthNoticeDismissed(false);
- setNarrowOverride(false);
- }
- }, [paneCols]);
-
useEffect(() => {
const term = termRef.current;
if (!term) return;
@@ -2260,28 +2147,6 @@ export function AgenticTerminal({
light={appearance === "light"}
onRestart={onRestart}
/>
- {/*
- And the other reason a pane can be unreadable: it is simply too narrow
- for the agent inside it. Second, because a pane that has stopped or
- cannot be reached has a more specific answer and only one row to say it
- in. See PaneWidthNotice.
-
- Only while the terminal is actually being SHOWN at that width — which
- now means only after the reader waved the card away (`narrowOverride`).
- With the card up the same sentence would be on screen twice.
- */}
- {visibleStatus !== "exited" &&
- visibleStatus !== "error" &&
- !tooNarrow &&
- !widthNoticeDismissed && (
- <PaneWidthNotice
- name={name}
- displayName={displayName}
- cols={paneCols}
- light={appearance === "light"}
- onDismiss={() => setWidthNoticeDismissed(true)}
- />
- )}
{/*
Keep the visual inset OUTSIDE xterm's measured host. FitAddon reads the
host's border-box but does not subtract padding on that host, so putting
@@ -2313,51 +2178,8 @@ export function AgenticTerminal({
* edge, which is the thing that read as terminals standing on one
* another.
*/
- className={cn(
- "agentic-terminal-host h-full min-h-0 w-full overflow-hidden",
- // Out of sight while the card is up, but still LAID OUT — the fit
- // measures this element, and a pane that stopped being measurable
- // could never find out that its tile had grown back. Opacity rather
- // than `visibility`, which the replay curtain writes imperatively
- // on this same element and would fight over.
- tooNarrow && "opacity-0",
- )}
+ className="agentic-terminal-host h-full min-h-0 w-full overflow-hidden"
/>
- {/*
- The pane, when there is no room to be a terminal. Ahead of the receipt
- and the starting spinner in the DOM so both still land on TOP of it —
- proof that a prompt arrived is exactly as load-bearing on a pane that
- is showing a card as on one that is showing its agent. See
- PaneTooNarrowCard.
- */}
- {tooNarrow && (
- <PaneTooNarrowCard
- name={name}
- displayName={displayName}
- cols={paneCols}
- status={visibleStatus}
- activity={activity}
- activitySince={activitySince}
- worked={worked}
- recap={recap}
- appearance={appearance}
- maximized={maximized}
- onOpen={onToggleMaximize}
- onShowAnyway={() => {
- // The ref BEFORE the state, and not only for tidiness: the fit
- // below runs in this same tick and reads the ref, which the next
- // render would otherwise be the first to update. Setting only the
- // state here left the pane deciding "still too narrow" one last
- // time and the card never lifting.
- narrowOverrideRef.current = true;
- setNarrowOverride(true);
- // Take the tile's real width immediately rather than waiting for
- // the next layout change — the reader asked to see this pane NOW,
- // and nothing else is going to measure it.
- resizeRef.current?.();
- }}
- />
- )}
<PaneConversationDialog
terminal={name}
open={historyOpen}
@@ -2396,9 +2218,7 @@ export function AgenticTerminal({
onDismiss={() => setDismissedAt(receipt.at)}
/>
)}
- {/* Not on a pane showing the card — that card already says "starting",
- in the same vocabulary, and two spinners on one tile is noise. */}
- {!painted && !tooNarrow && visibleStatus === "connecting" && (
+ {!painted && visibleStatus === "connecting" && (
<div
data-testid={`agentic-pane-starting-${name}`}
className="pointer-events-none absolute inset-0 flex items-center justify-center"
@@ -3320,266 +3140,6 @@ function PaneStatusNotice({
);
}
-/**
- * What a pane shows when its tile is too narrow for the agent to draw in.
- *
- * ## The failure this replaces
- *
- * Opening more terminals re-fits every pane already open — the backend gives
- * each new one a full-height column (`layout_tree.append_pane`), so seven panes
- * become twelve and each one loses half its width. Below roughly
- * {@link WORKABLE_COLS} a coding CLI does not degrade into a small tidy
- * interface. It repaints by erasing the rows it last drew, and once its own
- * line count stops matching the screen the repaint erases more than it rewrites:
- * panes that had been working for an hour came back BLANK and nothing later
- * brought them back (reported 2026-08-13 with two screenshots; the same pair of
- * symptoms — one pane printing one character per line, the rest silently stuck
- * — was measured on 2026-08-09 at thirteen panes).
- *
- * It is not a Claude Code bug to route around. Every full-screen TUI that
- * repaints relatively has the same failure, which is why this is keyed on the
- * measured width alone and names no product: Codex and any CLI added next year
- * are covered with no code here and none there.
- *
- * ## Why a card instead of the four things tried before
- *
- * The rule this must not break is the maintainer's (2026-08-11): a terminal is
- * exactly as wide as its tile, and every character in that tile is visible.
- * Clipping broke it, auto-shrinking the font silently overrode the toolbar,
- * widening on hover shuffled the workspace under the cursor, and simply telling
- * the user (`PaneWidthNotice`) left the wreckage on screen.
- *
- * A card breaks none of it, because there is no terminal in the tile to be
- * wrong about. The agent keeps the last width it could lay out in (see
- * `heldColsRef`), so it is not squeezed, not repainted into a corner, and not
- * wrecked — it is simply not SHOWN until there is room. Maximize the pane or
- * close a few and the terminal comes back exactly as it was, mid-sentence.
- *
- * ## What it says
- *
- * The state, in a word, at a size that reads from across a wall of twelve
- * panes — the header's own pill is eight pixels and fades out at rest. Then the
- * pane's recap if it has one, then the arithmetic, then the two ways out. The
- * second of those, "Show it anyway", restores precisely the old behaviour for
- * this one pane: a reader who wants to watch a 40-column terminal is not
- * somebody this should argue with.
- */
-function PaneTooNarrowCard({
- name,
- displayName,
- cols,
- status,
- activity,
- activitySince,
- worked,
- recap,
- appearance,
- maximized,
- onOpen,
- onShowAnyway,
-}: {
- name: string;
- displayName: string;
- cols: number | null;
- status: PaneStatus;
- activity: PaneActivity;
- activitySince: number;
- worked: boolean;
- recap?: string;
- appearance: TerminalAppearance;
- maximized: boolean;
- onOpen?: () => void;
- onShowAnyway: () => void;
-}) {
- const chrome = PANE_CHROME[appearance];
- const brand = PANE_BRAND[appearance];
- const state = paneActivityLabel(status, activity, worked);
- return (
- <div
- data-testid={`pane-too-narrow-${name}`}
- data-cols={cols ?? ""}
- data-activity={activity || status}
- role="status"
- aria-live="polite"
- /*
- * Opaque, and covering the whole terminal region. The terminal underneath
- * is still mounted, still parsing its agent's output and still being
- * measured — it is only out of sight (see the `opacity-0` on its host) —
- * so anything translucent here would show the very fragments this exists
- * to keep off the screen.
- */
- className="absolute inset-0 flex flex-col items-start gap-1.5 overflow-hidden px-2 py-2 text-left"
- // The terminal's OWN ground, from the same per-appearance table the pane
- // is drawn with — never a hardcoded colour, and never one mode's.
- style={{ background: themeFor(appearance).background }}
- >
- <div className="flex w-full min-w-0 items-center gap-1.5">
- <PaneActivityPill
- status={status}
- activity={activity}
- since={activitySince}
- worked={worked}
- />
- <span
- className="min-w-0 flex-1 truncate font-display text-[13px] font-medium"
- style={{ color: brand.ink }}
- >
- {state}
- </span>
- </div>
- {/*
- The sentence the header already carries — repeated here because the
- header truncates it to a single narrow line and this is the only surface
- in the pane with room to let it wrap.
- */}
- {recap && (
- <p
- className="line-clamp-4 w-full text-[11px] leading-snug"
- style={{ color: brand.inkMuted }}
- title={recap}
- >
- {recap}
- </p>
- )}
- <div className="flex-1" />
- <p className="w-full text-[10px] leading-tight" style={{ color: brand.inkFaint }}>
- {cols === null
- ? `Too narrow for ${displayName} to draw in.`
- : `${cols} columns — ${displayName} needs about ${WORKABLE_COLS}.`}
- </p>
- <div className="flex w-full flex-wrap items-center gap-1">
- {/*
- Not rendered on a pane that is already maximized: there is no bigger
- it can be, and a button that cannot change anything is worse than no
- button on a surface this small.
- */}
- {onOpen && !maximized && (
- <button
- type="button"
- data-testid={`pane-too-narrow-open-${name}`}
- onClick={(e) => {
- e.stopPropagation();
- onOpen();
- }}
- onMouseDown={(e) => e.stopPropagation()}
- className={cn(
- "rounded px-1.5 py-0.5 text-[10px] font-medium transition-colors duration-150",
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/70",
- )}
- style={{ background: brand.accent, color: brand.onAccent }}
- >
- Open it
- </button>
- )}
- <button
- type="button"
- data-testid={`pane-too-narrow-anyway-${name}`}
- title={`Draw ${name} at whatever width it has`}
- onClick={(e) => {
- e.stopPropagation();
- onShowAnyway();
- }}
- onMouseDown={(e) => e.stopPropagation()}
- className={cn(
- "rounded px-1.5 py-0.5 text-[10px] transition-colors duration-150 hover:bg-foreground/10",
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/70",
- )}
- style={{ color: brand.inkFaint, boxShadow: `inset 0 0 0 1px ${chrome.border}` }}
- >
- Show it anyway
- </button>
- </div>
- </div>
- );
-}
-
-/**
- * Say that this pane is too narrow for its agent, rather than letting the agent
- * prove it in one-character columns.
- *
- * The gap this closes is between what is TRUE and what is VISIBLE. Everything
- * about a narrow pane is already working exactly as designed — the tile is
- * measured honestly, the agent is told that measurement, and it draws the best
- * frame it can into it (see WORKABLE_COLS for the three attempts to do
- * something else and why none of them survived). But a coding CLI below its
- * usable width does not produce a small, tidy interface. It reserves its gutter
- * out of what little there is and lays the rest out one and two characters
- * wide, and the result is indistinguishable from this app rendering the
- * terminal wrong — which is what it was reported as (2026-08-11), twice, by
- * someone reading a workspace that was doing precisely what it was told.
- *
- * So the pane answers the question the screen raises: it states its own width
- * against the number the agent needs, and nothing more. Every way out —
- * maximizing the pane, a smaller text size, fewer panes across — belongs to
- * controls the header and toolbar already carry. The notice once offered a
- * "Widen" button of its own; the maintainer removed it (2026-08-11), so this
- * row informs and never acts.
- *
- * Deliberately NOT an error tone. Nothing has failed, and nothing needs
- * restarting; the workspace is simply asking more of the window than it has.
- */
-function PaneWidthNotice({
- name,
- displayName,
- cols,
- light,
- onDismiss,
-}: {
- name: string;
- displayName: string;
- cols: number | null;
- light: boolean;
- onDismiss: () => void;
-}) {
- // Nothing measured yet, or a tile that gives its agent room to work.
- if (cols === null || cols >= WORKABLE_COLS) return null;
- const tone = NOTICE_TONE.warning[light ? "light" : "dark"];
- const message =
- `${cols} columns — ${displayName} needs about ${WORKABLE_COLS} to draw ` +
- `its interface. Below that it wraps into fragments.`;
- return (
- <div
- data-testid={`pane-width-notice-${name}`}
- data-tone="warning"
- data-cols={cols}
- role="status"
- aria-live="polite"
- // The same shape as the status notice above it — a rule down the left
- // edge, no fill, no icon. A second, louder box in a pane header would
- // cost more of the terminal than the sentence is worth.
- className="flex shrink-0 items-center gap-2 border-l-2 px-2 py-1 text-[11px] leading-tight"
- style={{ borderColor: tone.border, color: tone.text }}
- >
- <span className="min-w-0 flex-1 truncate" title={message}>
- {message}
- </span>
- {/*
- Retire it. A crowded workspace shows this on every pane at once, and
- the trade may well be one the user made on purpose — a warning they
- cannot switch off would be the next thing reported.
- */}
- <button
- type="button"
- aria-label={`Stop telling me that ${name} is narrow`}
- title="I know — leave it"
- data-testid={`pane-width-dismiss-${name}`}
- onClick={(e) => {
- e.stopPropagation();
- onDismiss();
- }}
- onMouseDown={(e) => e.stopPropagation()}
- className={cn(
- "flex h-4 w-4 shrink-0 items-center justify-center rounded",
- "transition-colors duration-150 hover:bg-foreground/10",
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/70",
- )}
- >
- <X className="h-3 w-3" aria-hidden="true" />
- </button>
- </div>
- );
-}
-
/*
* The pane badge used to live here and reported the SOCKET: "live" for any pane
* with a working pipe, which is nearly all of them nearly all of the time. It
diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.crowded.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.crowded.test.tsx
index da8970af6f..318816b420 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.crowded.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.crowded.test.tsx
@@ -7,7 +7,7 @@ import {
} from "./WorkspaceLauncher";
/**
- * A crowded workspace is WARNED about, never refused.
+ * A crowded workspace is TOLD about, never refused and never questioned.
*
* The maintainer's rule for this screen (2026-08-11): how many terminals are
* worth watching at once is the user's call, and the app has no idea how big
@@ -15,9 +15,13 @@ import {
* on a video wall. So nothing here caps the count, reshapes it, or opens fewer
* panes than were asked for.
*
- * What it does do is make sure the decision was deliberate, and the tests below
- * pin both halves of that: the warning BLOCKS until it is answered, and
- * answering it opens exactly the workspace that was asked for.
+ * It used to make the user CONFIRM as well — an "Open it anyway" that blocked
+ * the next step from twenty terminals, and from six on an ordinary window once
+ * the measured sentence joined in. The maintainer retired the question
+ * (2026-08-18): a wizard that makes people click past a warning to open the
+ * workspace they just chose is nagging. The tests below pin what is left: a
+ * sentence from ten terminals up (or when the panes measure narrow), no
+ * button, and a next step that is never held back by it.
*/
vi.mock("@/i18n", () => ({
@@ -106,50 +110,42 @@ const nextStep = () =>
"workspace_launcher.wizard.continue_agents",
) as HTMLElement & { closest: (s: string) => HTMLButtonElement | null };
-describe("a crowded workspace has to be confirmed", () => {
+describe("a crowded workspace is told about, not confirmed", () => {
it("says nothing at all below the threshold", () => {
- // A question asked every time is a question nobody reads. Six terminals is
+ // A sentence shown every time is a sentence nobody reads. Six terminals is
// an ordinary workspace and must open without a word.
openLayoutStep(6);
expect(screen.queryByTestId("workspace-crowded-warning")).toBeNull();
expect(nextStep().closest("button")?.disabled).toBe(false);
});
- it("blocks the wizard until the warning is answered", () => {
+ it("says so from ten terminals up, and lets the wizard carry on", () => {
+ expect(CROWDED_TERMINAL_COUNT).toBe(10);
openLayoutStep(CROWDED_TERMINAL_COUNT);
- expect(screen.getByTestId("workspace-crowded-warning")).toBeTruthy();
- // A warning that can be walked past without being read is decoration.
- expect(nextStep().closest("button")?.disabled).toBe(true);
- });
-
- it("lets the user overrule it and carry on", () => {
- // The whole point: the count is never refused. Thirty terminals is a thing
- // somebody may want, and this is them saying so.
- openLayoutStep(30);
- fireEvent.click(screen.getByTestId("workspace-crowded-accept"));
- expect(nextStep().closest("button")?.disabled).toBe(false);
- // The warning stays visible as a statement of what was agreed to, with the
- // button gone — it has been answered and cannot be answered twice.
- expect(screen.getByTestId("workspace-crowded-warning")).toBeTruthy();
+ const note = screen.getByTestId("workspace-crowded-warning");
+ expect(note.textContent).toContain("workspace_launcher.crowded.warning");
+ // Nothing to click and nothing to answer: the next step is open.
expect(screen.queryByTestId("workspace-crowded-accept")).toBeNull();
+ expect(nextStep().closest("button")?.disabled).toBe(false);
});
it("opens exactly the count that was asked for", () => {
- // Nothing about the acknowledgement changes the workspace: it opens with
- // the panes the user planned, all of them.
+ // Thirty terminals is a thing somebody may want. Nothing about the note
+ // changes the workspace: it opens with the panes the user planned, all of
+ // them, and no confirmation stands in the way.
const onStart = vi.fn();
- const planned = Array.from({ length: 24 }, (_, i) => ({
+ const planned = Array.from({ length: 30 }, (_, i) => ({
name: `T${i + 1}`,
agent: "claude",
account: undefined,
}));
render(
- <WorkspaceLauncher {...props(24, { onStart, planned })} />,
+ <WorkspaceLauncher {...props(30, { onStart, planned })} />,
);
fireEvent.click(
screen.getByText("workspace_launcher.wizard.continue_layout"),
);
- fireEvent.click(screen.getByTestId("workspace-crowded-accept"));
+ expect(screen.getByTestId("workspace-crowded-warning")).toBeTruthy();
for (const step of [
"workspace_launcher.wizard.continue_agents",
"workspace_launcher.wizard.choose_view",
@@ -163,36 +159,32 @@ describe("a crowded workspace has to be confirmed", () => {
});
/**
- * …and a workspace the WINDOW cannot carry has to be confirmed too.
+ * …and a workspace the WINDOW makes narrow is told about too — in numbers.
*
- * The fixed count of twenty is blind to both halves of the thing it guesses at.
- * Twelve terminals on a 1 740 px stage at text size 20 land at thirteen columns
- * each — a width no coding CLI can draw a frame in — and opened in complete
- * silence, because twelve is not twenty (reported 2026-08-13). The same twelve
- * on a video wall are fine and were never worth a word.
- *
- * So the measurement asks the second question. It blocks in exactly the same
- * way, for the same reason, and is overruled by the same button: the count is
- * still never refused.
+ * The fixed count is blind to both halves of the thing it guesses at. Twelve
+ * terminals on a 1 740 px stage at text size 20 land at thirteen columns each
+ * and opened in complete silence, because twelve is not twenty (reported
+ * 2026-08-13). The same twelve on a video wall are fine and were never worth a
+ * word. So the measurement says the specific sentence — how wide, how many fit
+ * — and, like the count, it never blocks.
*/
-describe("a workspace this window cannot draw has to be confirmed", () => {
+describe("a workspace this window makes narrow is told about in numbers", () => {
const REPORTED_WINDOW_PX = 1740;
- it("stops a count that would leave every pane undrawable", () => {
+ it("says how narrow the panes come out, and carries on", () => {
advance.px = 12;
openLayoutStep(12, { workspaceWidthPx: REPORTED_WINDOW_PX });
- const warning = screen.getByTestId("workspace-crowded-warning");
+ const note = screen.getByTestId("workspace-crowded-warning");
// The measured sentence, not the general one about "most displays".
- expect(warning.textContent).toContain(
- "workspace_launcher.crowded.measured",
- );
- expect(nextStep().closest("button")?.disabled).toBe(true);
+ expect(note.textContent).toContain("workspace_launcher.crowded.measured");
+ expect(screen.queryByTestId("workspace-crowded-accept")).toBeNull();
+ expect(nextStep().closest("button")?.disabled).toBe(false);
});
it("says nothing when the same panes have room", () => {
// A wall display, or simply a smaller text size. Nothing is wrong here and
- // a warning would be noise.
+ // a sentence would be noise.
advance.px = 6;
openLayoutStep(4, { workspaceWidthPx: REPORTED_WINDOW_PX });
@@ -204,16 +196,8 @@ describe("a workspace this window cannot draw has to be confirmed", () => {
// No canvas to measure with. "We could not measure" must never render as a
// warning, or the wizard shouts at everyone once.
advance.px = null;
- openLayoutStep(12, { workspaceWidthPx: REPORTED_WINDOW_PX });
+ openLayoutStep(8, { workspaceWidthPx: REPORTED_WINDOW_PX });
expect(screen.queryByTestId("workspace-crowded-warning")).toBeNull();
});
-
- it("is overruled by the same button, and opens the count asked for", () => {
- advance.px = 12;
- openLayoutStep(12, { workspaceWidthPx: REPORTED_WINDOW_PX });
-
- fireEvent.click(screen.getByTestId("workspace-crowded-accept"));
- expect(nextStep().closest("button")?.disabled).toBe(false);
- });
});
diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsx
index 7292ed9d70..082ac1a3b2 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceLauncher.tsx
@@ -9,10 +9,9 @@
*/
import { useEffect, useMemo, useState, type ReactNode } from "react";
import {
- AlertTriangle,
ArrowLeft,
ArrowRight,
- Check,
+ Info,
LayoutGrid,
Loader2,
MessagesSquare,
@@ -157,16 +156,6 @@ export function WorkspaceLauncher({
}: WorkspaceLauncherProps) {
const t = useT();
const [step, setStep] = useState<LauncherStep>(0);
- /*
- * Has the user said yes to a crowded workspace?
- *
- * The count itself is never refused — see CROWDED_TERMINAL_COUNT. This is
- * only the acknowledgement that the warning was read, and it is dropped
- * again the moment the count returns below the threshold, so a user who
- * stepped up to 24, agreed, and then came back down to 6 is not carrying a
- * silent yes into a workspace that no longer needs one.
- */
- const [crowdAccepted, setCrowdAccepted] = useState(false);
/*
* How narrow these panes really come out, on THIS window at THIS text size.
*
@@ -191,20 +180,17 @@ export function WorkspaceLauncher({
const perPane = paneColumnsAt(columns, workspaceWidthPx, cell ?? 0);
const fitsAcross = workableColumnCount(workspaceWidthPx, cell ?? 0);
const tooNarrow = perPane > 0 && perPane < WORKABLE_COLS;
- // Either question is enough to stop and ask. They catch different mistakes:
- // the count is about the machine and the attention a wall of agents costs,
- // the measurement is about whether these panes can be terminals at all.
+ // Either is worth a sentence, and neither is worth a question. They catch
+ // different things: the count is about the attention a wall of agents costs,
+ // the measurement is about how much room each pane really gets. Both are
+ // ADVICE — the maintainer's rule (2026-08-18) is that the number of
+ // terminals is the user's call and the wizard never makes them confirm it.
const crowded = count >= CROWDED_TERMINAL_COUNT || tooNarrow;
- useEffect(() => {
- if (!crowded && crowdAccepted) setCrowdAccepted(false);
- }, [crowded, crowdAccepted]);
- const countSettled = count > 0 && (!crowded || crowdAccepted);
+ const countSettled = count > 0;
const planReady =
planned.length > 0 &&
planned.every((pane) => pane.name.trim() && pane.agent);
- // The acknowledgement gates the START, not just the step — the launcher can
- // also be fired with the keyboard shortcut from anywhere in the wizard.
const ready = Boolean(folder) && planReady && countSettled;
const canLeaveCurrent =
@@ -379,8 +365,6 @@ export function WorkspaceLauncher({
count={count}
perPane={tooNarrow ? perPane : 0}
fitsAcross={fitsAcross}
- accepted={crowdAccepted}
- onAccept={() => setCrowdAccepted(true)}
/>
)}
</div>
@@ -464,92 +448,51 @@ export function WorkspaceLauncher({
}
/**
- * The yes a crowded workspace has to be given before it opens.
- *
- * It does NOT refuse the count, and that is the point. How many agents are
- * worth watching at once is the user's call — thirty terminals on a video wall
- * is a reasonable thing to want, and this app has no way of knowing how big the
- * display in front of it is. So the one thing it can honestly do is make sure
- * the decision was made deliberately: the warning names the consequence, and
- * the button is the user overruling it.
- *
- * Shown from {@link CROWDED_TERMINAL_COUNT} up, and it BLOCKS — the wizard's
- * next step stays out of reach until this is answered. A warning that can be
- * walked past without being read is decoration, and the count it is warning
- * about is the one thing in this wizard that cannot be undone from inside the
- * workspace without closing panes one at a time.
- *
- * ## The measured sentence
+ * A word about a crowded workspace — said, never asked.
*
- * `perPane` turns the general warning into a specific one. When the window has
- * actually been measured and these panes come out below the width an agent can
- * draw in, the warning says the number and what follows from it — the panes
- * open as status cards, not terminals — instead of guessing at "most displays".
- * That is the case twelve terminals hit on 2026-08-13 and walked straight past,
- * because twelve is not twenty.
+ * How many agents are worth watching at once is the user's call: thirty
+ * terminals on a video wall is a reasonable thing to want, and this app has no
+ * way of knowing how big the display in front of it is. So the count is never
+ * refused and never has to be confirmed. It used to be — a blocking "Open it
+ * anyway" from twenty terminals up, and from six on an ordinary window once
+ * the measured sentence joined in — and the maintainer retired the question
+ * (2026-08-18): a wizard that makes people click past a warning to open the
+ * workspace they just chose is nagging, not helping.
*
- * 0 means there is nothing measured to say, and the general sentence stands.
+ * What survives is the sentence, from {@link CROWDED_TERMINAL_COUNT} up or when
+ * the panes measure narrower than an agent is comfortable in: it says how many,
+ * how wide, and how many this window fits at the reader's text size, so the
+ * count is chosen with its consequence in view. `perPane` is 0 when the width
+ * is not the problem and the general sentence stands.
*/
function CrowdedWarning({
count,
perPane,
fitsAcross,
- accepted,
- onAccept,
}: {
count: number;
/** Columns each pane comes out at, or 0 when that is not the problem. */
perPane: number;
/** How many panes this window fits at a workable width. */
fitsAcross: number;
- accepted: boolean;
- onAccept: () => void;
}) {
const t = useT();
return (
<div
data-testid="workspace-crowded-warning"
- role="group"
- className={cn(
- "mt-3 flex items-start gap-3 rounded-control border px-3 py-2.5 transition-colors",
- accepted
- ? "border-border/70 bg-muted/30"
- : "border-destructive/50 bg-destructive/[0.07]",
- )}
+ role="note"
+ className="mt-3 flex items-start gap-3 rounded-control border border-border/70 bg-muted/30 px-3 py-2.5"
>
- {accepted ? (
- <Check className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" />
- ) : (
- <AlertTriangle className="mt-0.5 h-4 w-4 shrink-0 text-destructive" />
- )}
- <div className="min-w-0 flex-1">
- <p
- className={cn(
- "text-xs leading-relaxed",
- accepted ? "text-muted-foreground" : "text-foreground",
- )}
- >
- {(accepted
- ? t("workspace_launcher.crowded.accepted")
- : perPane > 0
- ? t("workspace_launcher.crowded.measured")
- : t("workspace_launcher.crowded.warning")
- )
- .replace("{0}", String(count))
- .replace("{1}", String(perPane))
- .replace("{2}", String(fitsAcross))}
- </p>
- {!accepted && (
- <Button
- variant="subtle"
- onClick={onAccept}
- className="mt-2"
- data-testid="workspace-crowded-accept"
- >
- {t("workspace_launcher.crowded.accept")}
- </Button>
- )}
- </div>
+ <Info className="mt-0.5 h-4 w-4 shrink-0 text-muted-foreground" />
+ <p className="min-w-0 flex-1 text-xs leading-relaxed text-muted-foreground">
+ {(perPane > 0
+ ? t("workspace_launcher.crowded.measured")
+ : t("workspace_launcher.crowded.warning")
+ )
+ .replace("{0}", String(count))
+ .replace("{1}", String(perPane))
+ .replace("{2}", String(fitsAcross))}
+ </p>
</div>
);
}
diff --git a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsx b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsx
index 2b95a62fdf..37a3a9e24c 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/WorkspaceShape.tsx
@@ -615,10 +615,11 @@ function StagePane({
* ## Why it counts COLUMNS and not only pixels
*
* "About 145 px each" is true and says nothing. A pixel width means one thing
- * at 8 px text and the opposite at 20, and the number that decides whether a
- * coding CLI can draw at all is its column count — below {@link WORKABLE_COLS}
- * a pane holds its agent's columns and shows a card instead of a terminal (see
- * `PaneTooNarrowCard` in ./AgenticTerminal).
+ * at 8 px text and the opposite at 20, and the number that says how much room
+ * an agent's output really gets is the column count — below
+ * {@link WORKABLE_COLS} the readout says so, and that sentence is the whole
+ * consequence: the panes open as terminals at that width regardless (the card
+ * that used to hide them was retired on 2026-08-18).
*
* That is exactly what went unsaid on 2026-08-13: twelve terminals opened on a
* 1 920 px window at text size 20 with no warning at all, because the only
@@ -660,11 +661,11 @@ function Readout({
if (paneWidth === 0) {
condition = "All on one screen.";
} else if (perPane > 0 && perPane < WORKABLE_COLS) {
- // The one case worth spelling out: these panes will not be terminals.
+ // The one case worth spelling out, as advice: these panes come out narrow.
condition =
- `All on one screen, about ${perPane} columns each — too narrow for an ` +
- `agent to draw in, so they open as status cards. This window fits ` +
- `${affordable} across at text size ${fontSize}.`;
+ `All on one screen, about ${perPane} columns each — narrow for an ` +
+ `agent's output. This window fits ${affordable} across comfortably at ` +
+ `text size ${fontSize}; maximize a pane to read it full size.`;
} else if (perPane > 0) {
condition = `All on one screen, about ${perPane} columns each.`;
} else if (comfortable) {
diff --git a/jarvis/ui/web/frontend/src/components/agentic/layout.ts b/jarvis/ui/web/frontend/src/components/agentic/layout.ts
index 5f1634d919..65040afc2a 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/layout.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/layout.ts
@@ -85,23 +85,25 @@
export const COMFORTABLE_PANE_WIDTH_PX = 380;
/**
- * The width below which a coding CLI stops drawing a frame anyone can read.
- *
- * 60 is where both installed CLIs were measured to stop laying out a usable
- * frame (2026-08-09, thirteen panes). Below it a TUI does not shrink tidily —
- * it reserves its gutter out of what little there is, lays the remainder out
- * one and two characters wide, and then repaints over rows that no longer hold
- * what it drew, which is how panes that had been working for an hour came back
- * BLANK (reported 2026-08-13).
- *
- * It lives in this leaf module because THREE places have to agree on it and one
- * of them must not import a terminal: the pane holds its agent's columns here
- * (`MIN_REAL_COLS` and `PaneTooNarrowCard` in ./AgenticTerminal), and the wizard
- * says so before anything opens (./WorkspaceShape). A wizard that quoted a
- * different number from the one the panes act on would be advice about a
- * different app.
+ * Below this many columns a pane is narrow for an agent's output — ADVICE the
+ * wizard gives before anything opens, and nothing else.
+ *
+ * It used to be 60 and used to be enforced: below it a pane held its agent's
+ * columns and hid the terminal behind a card ("Show it anyway"). That covered
+ * every pane of an ordinary six-pane workspace at 56 columns and had to be
+ * clicked away six times, so the maintainer retired the card (2026-08-18) and
+ * with it the idea that this number is a floor. Panes are exactly as wide as
+ * their tile and always shown (see ./AgenticTerminal); the only thing left to
+ * do with the number is to SAY it, once, in the wizard's readout and its
+ * crowding note — and 40 is where that sentence starts being worth reading:
+ * a coding CLI at 40 columns wraps hard but works, and the wizard's own
+ * "how many across" figure (`workableColumnCount`) is measured against it.
+ *
+ * Kept in this leaf module because the wizard's two surfaces (./WorkspaceShape,
+ * ./WorkspaceLauncher) must quote the same number, and neither may import a
+ * terminal to learn it.
*/
-export const WORKABLE_COLS = 60;
+export const WORKABLE_COLS = 40;
/**
* The pane chrome between a tile's edge and the terminal grid inside it, in px.
@@ -167,25 +169,23 @@ export function workableColumnCount(
}
/**
- * The count from which opening a workspace has to be confirmed out loud.
- *
- * NOT a limit, and deliberately not derived from the window either. The
- * maintainer's rule for this screen (2026-08-11) is that the number of
- * terminals is the user's call — thirty side by side is a thing somebody may
- * want, and on a wall display it is even readable. What the app does not know
- * is how big that display is, so it may not decide FOR them.
- *
- * What it can do is make sure the decision was made. Twenty is where a
- * workspace stops being roomy on any ordinary screen, so from here the wizard
- * says so and waits for a yes. Below it nothing is asked, because a question
- * asked every time is a question nobody reads.
- *
- * Distinct from `COMFORTABLE_PANE_WIDTH_PX` on purpose: that one is measured
- * against the window and phrased as advice, this one is a fixed count and
- * blocks until it is acknowledged. A user on a laptop meets the advice long
- * before this, and a user on a video wall meets only this.
+ * The count from which the wizard SAYS a workspace is a lot for one screen.
+ *
+ * NOT a limit, not a question, and deliberately not derived from the window
+ * either. The maintainer's rule for this screen (2026-08-11) is that the number
+ * of terminals is the user's call — thirty side by side is a thing somebody
+ * may want, and on a wall display it is even readable. What the app does not
+ * know is how big that display is, so it may not decide FOR them.
+ *
+ * It used to be twenty and used to BLOCK, with an "Open it anyway" button; the
+ * measured sentence beside it (see `WORKABLE_COLS`) blocked from six terminals
+ * on an ordinary window. Both were retired on 2026-08-18: a wizard that makes
+ * people click past a warning to open the workspace they just chose is
+ * nagging, not helping. From ten the wizard now says how much room each pane
+ * gets and moves on. Below it nothing is said, because a sentence shown every
+ * time is a sentence nobody reads.
*/
-export const CROWDED_TERMINAL_COUNT = 20;
+export const CROWDED_TERMINAL_COUNT = 10;
/**
* Horizontal padding of the rendered grid — 4 px on each side.
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 463bc8ff3b..7b54984390 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -3865,10 +3865,8 @@
}
},
"crowded": {
- "warning": "{0} Terminals nebeneinander sind auf den meisten Bildschirmen zu klein zum Lesen, und der Arbeitsbereich kann träge werden. Öffne ihn trotzdem, wenn dein Bildschirm den Platz hat.",
- "measured": "{0} Terminals wären auf diesem Fenster etwa {1} Spalten breit — zu schmal, als dass ein Agent darin zeichnen könnte, also öffnen sie sich als Status-Karten statt als Terminals. In dieses Fenster passen bei deiner Schriftgröße {2} nebeneinander.",
- "accept": "Trotzdem öffnen",
- "accepted": "{0} Terminals werden trotzdem geöffnet."
+ "warning": "{0} Terminals sind viel für einen Bildschirm — jedes bekommt wenig Platz. Auf einem großen Display kein Problem; auf einem Laptop lassen sich weniger leichter verfolgen. Ein Fenster kannst du jederzeit maximieren, um es zu lesen.",
+ "measured": "{0} Terminals werden auf diesem Fenster etwa {1} Spalten breit — schmal für die Ausgabe eines Agenten. Bequem passen bei deiner Schriftgröße {2} nebeneinander. Maximiere ein Fenster, wann immer du es in voller Größe lesen willst."
},
"resume": {
"eyebrow": "Vorheriger Arbeitsstand",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 206a52a596..12c5391897 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -3865,10 +3865,8 @@
}
},
"crowded": {
- "warning": "{0} terminals side by side will be too small to read on most displays, and the workspace may feel sluggish. Open it anyway if your screen has the room.",
- "measured": "{0} terminals would be about {1} columns each on this window — too narrow for an agent to draw in, so they open as status cards instead of terminals. This window fits {2} across at your text size.",
- "accept": "Open it anyway",
- "accepted": "Opening {0} terminals anyway."
+ "warning": "{0} terminals is a lot for one screen — each gets little room. Fine on a big display; on a laptop, fewer are easier to follow. You can always maximize one pane to read it.",
+ "measured": "{0} terminals come out at about {1} columns each on this window — narrow for an agent's output. This window fits {2} across comfortably at your text size. Maximize a pane whenever you want to read it full size."
},
"resume": {
"eyebrow": "Previous working set",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 17af3fdfc1..2856fe4afd 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -3865,10 +3865,8 @@
}
},
"crowded": {
- "warning": "{0} terminales en paralelo serán demasiado pequeños para leerlos en la mayoría de las pantallas, y el espacio de trabajo puede volverse lento. Ábrelo de todos modos si tu pantalla tiene sitio.",
- "measured": "{0} terminales tendrían unas {1} columnas cada uno en esta ventana — demasiado estrechos para que un agente dibuje en ellos, así que se abren como tarjetas de estado en lugar de terminales. En esta ventana caben {2} en paralelo con tu tamaño de texto.",
- "accept": "Abrir de todos modos",
- "accepted": "Se abrirán {0} terminales de todos modos."
+ "warning": "{0} terminales son muchos para una sola pantalla: a cada uno le queda poco sitio. En una pantalla grande no hay problema; en un portátil, con menos se sigue mejor. Siempre puedes maximizar un panel para leerlo.",
+ "measured": "{0} terminales salen a unas {1} columnas cada uno en esta ventana: estrecho para la salida de un agente. En esta ventana caben {2} en paralelo con comodidad con tu tamaño de texto. Maximiza un panel cuando quieras leerlo a tamaño completo."
},
"resume": {
"eyebrow": "Espacio de trabajo anterior",