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): a terminal stuck narrow inside a wide pane heals itself

rubenluetke10-beepbbd9f48da3d2
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
index f2375ebd8d..2c31d0d845 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
@@ -77,9 +77,6 @@ import {
type MeasuredPane,
} from "./paneLayoutGuard";
import { ContinueInterrupted } from "./ContinueInterrupted";
-import { DeckStage, type DeckAgent } from "./deck/DeckStage";
-import type { CardState } from "./deck/AgentCard";
-import { useDeckQueue } from "./deck/useDeckQueue";
import { PaneNotifications } from "./PaneNotifications";
import { isVoiceActive } from "./useVoiceCall";
import { PromptPreview } from "./PromptPreview";
@@ -119,7 +116,6 @@ import {
renameTerminal,
saveTerminalFontSize,
syncAgenticIdeSurface,
- setDeckHold,
setTerminalRecap,
promptTerminal,
type ComposedPreview,
@@ -287,8 +283,8 @@ const TOOLBAR_BTN_ON = "bg-primary/15 text-primary hover:bg-primary/20 hover:tex
/**
* The reading-mode switch, one entry per view.
*
- * A table rather than three hand-written buttons because the set is a contract
- * (see `WorkspaceView`): a fourth mode should be one row here, and a mode with
+ * A table rather than two hand-written buttons because the set is a contract
+ * (see `WorkspaceView`): a third mode should be one row here, and a mode with
* no row is a mode the user cannot reach — which is the failure this shape
* makes obvious instead of silent.
*/
@@ -310,13 +306,6 @@ const VIEW_BUTTONS: ReadonlyArray<{
icon: MessagesSquare,
title: "Chat view — read one agent at a time, like a conversation.",
},
- {
- view: "deck",
- testId: "agentic-view-mode-deck",
- icon: AudioLines,
- title:
- "Command Deck — brief the agents by voice and hear back when one is done.",
- },
];
/**
@@ -441,16 +430,6 @@ const MAXIMIZED_BOX: React.CSSProperties = {
inset: 0,
};
-/**
- * The strip above an unfolded terminal on the Command Deck.
- *
- * Small, and load-bearing: the deck's terminals are folded away by default, so
- * the one that is open needs a visible way back to the room. A pane covering
- * the whole surface with no exit is how a mode that is meant to feel calm
- * starts feeling like a trap.
- */
-const DECK_HEADER_PX = 40;
-
/** True when a fraction is at an edge of the workspace, allowing for float drift. */
function atEdge(value: number): boolean {
return value <= 0.0001 || value >= 0.9999;
@@ -555,27 +534,29 @@ const APPEARANCE_KEY = "jarvis.agenticIde.terminalAppearance";
const FONT_KEY = "jarvis.agenticIde.terminalFontSize";
/**
- * The three ways of looking at one workspace.
+ * The two ways of looking at one workspace.
*
* `grid` is the wall of terminals — every pane visible at once, sized by the
* dragged seams. `chat` is the same workspace read like a conversation: a rail
* of agents on the left, ONE terminal on a calm centred stage, and the prompt
- * bar underneath as the composer. `deck` is the Command Deck: the orb is the
- * subject of the screen, each agent is a card, and Jarvis briefs them and
- * reports their finished work back out loud.
+ * bar underneath as the composer.
+ *
+ * Talking to the assistant is not a mode: the floating voice orb is summoned
+ * from the toolbar and drawn over whichever of these two is on screen, so
+ * reaching for the microphone never costs the user the layout they chose.
*
* No mode owns the panes — switching is a pure restyle of the same mounted
* elements, because unmounting a pane kills the coding agent behind it (see
- * the grid container's comment below). That rule is what makes a third mode
- * cheap to add and is the one thing a fourth must not break.
+ * the grid container's comment below). That rule is what makes a further mode
+ * cheap to add and is the one thing it must not break.
*
* Layer 4 of the enum contract; `jarvis/agentic_ide/workspace_view.py` is the
* source of truth and the backend asserts the two agree at import.
*/
-export type WorkspaceView = "grid" | "chat" | "deck";
+export type WorkspaceView = "grid" | "chat";
/** Every value, in the order the toolbar and the wizard offer them. */
-export const WORKSPACE_VIEWS: readonly WorkspaceView[] = ["grid", "chat", "deck"];
+export const WORKSPACE_VIEWS: readonly WorkspaceView[] = ["grid", "chat"];
function isWorkspaceView(raw: string): raw is WorkspaceView {
return (WORKSPACE_VIEWS as readonly string[]).includes(raw);
@@ -855,30 +836,17 @@ export function AgenticGrid({
const [explorerOpen, setExplorerOpen] = useState(false);
const [openedWorkspaceFile, setOpenedWorkspaceFile] = useState<string | null>(null);
const openedWorkspaceFileTrigger = useRef<HTMLElement | null>(null);
- /**
- * Which agent's terminal is unfolded on the deck, if any.
- *
- * The deck's default is that no terminal is on screen at all — that is what
- * makes it a different mode rather than a chat view with bigger cards. This
- * is the one exception the user asks for, and it is one at a time: two
- * unfolded terminals is the grid, and the grid is one button away.
- */
- const [deckExpanded, setDeckExpanded] = useState<string | null>(null);
const setViewMode = useCallback((next: WorkspaceView) => {
setViewModeState(next);
rememberViewMode(next);
- // Chat and the deck show one pane at most; a leftover maximize from the
- // grid would silently pin the stage to a pane neither of them highlights.
+ // Chat shows one pane at most; a leftover maximize from the grid would
+ // silently pin the stage to a pane the chat rail does not highlight.
if (next !== "grid") setMaximized(null);
- // Leaving the deck folds its terminal away. Coming back to a workspace
- // with one pane already open would be the deck quietly not being the deck.
- if (next !== "deck") setDeckExpanded(null);
// An open CLI picker belongs to the button that opened it, and that button
// just left the screen — it must not be waiting there on the way back.
setPicking(null);
}, []);
const chatView = viewMode === "chat";
- const deckView = viewMode === "deck";
useEffect(() => {
setOpenedWorkspaceFile(null);
@@ -1142,73 +1110,6 @@ export function AgenticGrid({
};
};
- /*
- * The Command Deck's own two feeds: the report lane, and the cards.
- *
- * Both are derived rather than held. A card takes its identity, activity and
- * hold from the pane, then mirrors the pane's parsed xterm screen directly.
- * `activityOf` remains the shared state resolver, so the deck cannot describe
- * a terminal differently from the grid beside it.
- */
- const deck = useDeckQueue(deckView && onScreen);
- const deckAgents: DeckAgent[] = useMemo(() => {
- if (!deckView) return [];
- return session.terminals
- .filter(takesPrompts)
- .map((term) => {
- const { activity } = activityOf(term);
- const status = statusOf(term).status;
- // The order matters: a held pane says so whatever it is doing, because
- // the hold is about who is DRIVING rather than about the agent's
- // state — and it is the one thing the user set themselves.
- let state: CardState;
- if (term.deck_hold) state = "held";
- else if (status === "exited" || status === "error") state = "dead";
- else if (activity === "asking") state = "asking";
- else if (activity === "working") state = "working";
- else state = "waiting";
- return {
- name: term.name,
- agent: term.agent,
- agentLabel: term.display_name,
- state,
- };
- });
- // `recaps`/`liveActivity`/`sentAt` are read through activityOf, which is
- // re-created every render; listing them keeps the memo honest about what
- // it actually depends on.
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [deckView, session.terminals, recaps, liveActivity, statuses, sentAt]);
-
- const toggleDeckHold = useCallback(
- (name: string) => {
- const term = session.terminals.find((t) => t.name === name);
- if (!term) return;
- const next = !term.deck_hold;
- void setDeckHold(name, next)
- .then(() => {
- // Re-read rather than patching the pane locally: the hold changes
- // what the backend will DO with this pane, and a client that shows
- // it as held while the server disagrees is the worse of the two
- // failures — the user would stop watching a pane Jarvis still uses.
- onSessionChanged?.({
- ...session,
- terminals: session.terminals.map((t) =>
- t.name === name ? { ...t, deck_hold: next } : t,
- ),
- });
- })
- .catch((error: unknown) => {
- pushToast("error", error instanceof Error ? error.message : String(error));
- });
- },
- [onSessionChanged, pushToast, session],
- );
-
- const toggleDeckExpand = useCallback((name: string) => {
- setDeckExpanded((current) => (current === name ? null : name));
- }, []);
-
/*
* The three things a user may do about a pane's recap.
*
@@ -1705,14 +1606,13 @@ export function AgenticGrid({
/*
* The browser is the only layer that knows what is actually on screen. Hand
* that fact to the backend so voice and chat can resolve "this terminal"
- * from what the user sees, and so the deck knows it may speak.
+ * from what the user sees.
*
* `stagedPane` is the ONE pane the view puts in front of the user: chat's
- * stage, or the deck card the user unfolded to read. Grid has no such pane
- * and reports none — guessing among a dozen visible terminals would be less
- * honest than making the user name one.
+ * stage. Grid has no such pane and reports none — guessing among a dozen
+ * visible terminals would be less honest than making the user name one.
*/
- const stagedPane = chatView ? chatSelected : deckView ? deckExpanded : null;
+ const stagedPane = chatView ? chatSelected : null;
useEffect(() => {
void syncAgenticIdeSurface({
workspaceId: session.id,
@@ -1928,7 +1828,6 @@ export function AgenticGrid({
onScreen &&
documentVisible &&
!chatView &&
- !deckView &&
maximized === null &&
arrange.held === null &&
!layoutBusy;
@@ -1949,16 +1848,16 @@ export function AgenticGrid({
const node = paneNodes.current.get(term.name);
if (!node) continue;
const rect = node.getBoundingClientRect();
- // A clamped terminal is DELIBERATELY bigger than its tile — a pane
- // narrower than 60 columns still renders 60 so the CLI inside can lay
- // its interface out, and the overflow clip shows what fits (see
- // MIN_REAL_COLS in ./AgenticTerminal, which writes this stamp). That
- // designed clipping must not read as a missed refit.
- const clamped =
- node.querySelector('[data-pane-clamped="true"]') !== null;
- const content = clamped
- ? undefined
- : node.querySelector(".xterm-screen")?.getBoundingClientRect();
+ // The terminal's own drawn surface, checked against the tile that
+ // holds it. This used to be skipped for a pane that was DELIBERATELY
+ // drawn wider than its tile and clipped at the edge — the arrangement
+ // the maintainer read as terminals standing on one another, removed on
+ // 2026-08-11. With every pane fitted to its tile there is no exception
+ // left to make, and this watchdog is now what proves the rule: a
+ // terminal wider than the pane showing it is a fault, always.
+ const content = node
+ .querySelector(".xterm-screen")
+ ?.getBoundingClientRect();
panes.push({
name: term.name,
left: rect.left,
@@ -2022,10 +1921,14 @@ export function AgenticGrid({
const node = seamNodes.current.get(seam.id);
if (node) writePosition(node, seamStyle(seam));
}
- // A terminal bigger than its pane is a missed refit; every pane listens
- // to window resizes with a debounced, no-op-when-unchanged fit, so this
- // is the ordinary path to a fresh measurement, not a special one.
- if (violations.clipped.length > 0) window.dispatchEvent(new Event("resize"));
+ // A terminal bigger than its pane is a missed refit — and so is one far
+ // narrower, drawing its output as a thin strip down a wide tile; every
+ // pane listens to window resizes with a debounced, no-op-when-unchanged
+ // fit, so this is the ordinary path to a fresh measurement, not a
+ // special one.
+ if (violations.clipped.length > 0 || violations.underfit.length > 0) {
+ window.dispatchEvent(new Event("resize"));
+ }
};
// Past the 300 ms glide, then a slow patrol — measuring a dozen rects is
@@ -2492,14 +2395,13 @@ export function AgenticGrid({
<Brain className="h-4 w-4 shrink-0" />
</button>
- {/* Grid, chat or deck — how the same agents are read.
+ {/* Grid or chat — how the same agents are read.
- Three buttons rather than one cycling through three states: past
- two, "click again" stops telling you where you will land, and this
- control now reaches a mode that changes the assistant's behaviour
- rather than only the layout. They are three ordinary toolbar
- glyphs, not a segmented group in a box — the row's rule is one
- button shape throughout, with colour reserved for what is ON.
+ Two buttons rather than one cycling through both states, because
+ the switch stays readable when a third mode is added: "click
+ again" stops telling you where you will land. They are ordinary
+ toolbar glyphs, not a segmented group in a box — the row's rule is
+ one button shape throughout, with colour reserved for what is ON.
`agentic-view-mode-toggle` stays on the chat button: it is the one
this control used to be, and the tests that press it are about
@@ -2513,8 +2415,7 @@ export function AgenticGrid({
onClick={() => {
setViewMode(view);
// A conversation surface with no input box is a screenshot, so
- // both talking modes bring the composer with them. The deck is
- // voice-first but must stay usable with the mic muted.
+ // chat view brings the composer with it.
if (view !== "grid" && composerCollapsed) {
resizeComposer(COMPOSER_DEFAULT_PX);
}
@@ -3055,12 +2956,9 @@ export function AgenticGrid({
{session.terminals.map((term, index) => {
const box = layout.boxes[index];
const isMaximized = maximized === term.name;
- // The one pane a single-pane view is showing. Both views stage one
- // and hide the rest — the difference is which pane and why, not what
- // happens to the others, which are hidden and NEVER unmounted.
- const onStage =
- (chatView && chatSelected === term.name) ||
- (deckView && deckExpanded === term.name);
+ // The one pane the single-pane view is showing. It stages one and
+ // hides the rest — the others are hidden and NEVER unmounted.
+ const onStage = chatView && chatSelected === term.name;
return (
<div
key={term.key}
@@ -3075,7 +2973,6 @@ export function AgenticGrid({
// pointer, not ease after it — and off for the stage/maximize
// style, which swaps to `inset` and cannot tween from here.
!chatView &&
- !deckView &&
!isMaximized &&
!layoutBusy &&
"transition-[left,top,width,height] duration-300 ease-out motion-reduce:transition-none",
@@ -3109,7 +3006,7 @@ export function AgenticGrid({
justMoved?.name === term.name &&
!selectedTerminals.has(term.name) &&
"ring-2 ring-primary/70",
- chatView || deckView
+ chatView
? onStage
? /*
* ONE edge per pane, in every view.
@@ -3125,24 +3022,13 @@ export function AgenticGrid({
* than the same one enlarged.
*
* The lift stays: a staged pane genuinely IS raised above
- * the rail beside it, and on the deck it sits above the
- * room it came from (`z-20` over the stage's own layer),
- * so folding it away puts the user back where they were.
+ * the rail beside it.
*/
- cn("shadow-lg", deckView && "z-20")
+ "shadow-lg"
: "hidden"
: maximized !== null && !isMaximized && "hidden",
)}
- style={
- isMaximized || chatView
- ? MAXIMIZED_BOX
- : deckView
- // Under the deck's own header strip, which carries the
- // way back — an unfolded terminal covering the whole
- // surface would have no visible exit.
- ? { ...MAXIMIZED_BOX, top: DECK_HEADER_PX }
- : paneBoxStyle(box)
- }
+ style={isMaximized || chatView ? MAXIMIZED_BOX : paneBoxStyle(box)}
>
<AgenticTerminal
name={term.name}
@@ -3297,7 +3183,6 @@ export function AgenticGrid({
and, naturally, when there is only one pane.
*/}
{!chatView &&
- !deckView &&
maximized === null &&
!selectionMode &&
arrange.held === null &&
@@ -3321,10 +3206,7 @@ export function AgenticGrid({
style={seamStyle(seam)}
/>
))}
- {/* The deck says this itself, in its own words and with the orb still
- on screen — two "open a terminal" offers stacked on each other
- would be the same question asked twice. */}
- {session.terminals.length === 0 && !deckView && (
+ {session.terminals.length === 0 && (
<div className="absolute inset-0 flex flex-col items-center justify-center gap-3 text-sm text-muted-foreground">
<span>Every terminal in this workspace is closed.</span>
{/* `relative` so the picker hangs under the button rather than off
@@ -3361,57 +3243,6 @@ export function AgenticGrid({
)}
</div>
- {/*
- The Command Deck's room, drawn OVER the canvas rather than instead of
- it. The panes underneath stay mounted and hidden — unmounting one kills
- the coding agent behind it, which is the rule every mode in this file
- obeys — so switching modes is a restyle and nothing more.
-
- Folded open, the terminal takes the surface and this layer shrinks to
- the strip that carries the way back.
- */}
- {!openedWorkspaceFile && deckView && deckExpanded !== null && (
- <div
- data-testid="deck-open-pane-header"
- className="absolute inset-x-0 top-0 z-30 flex items-center gap-2 px-3"
- style={{ height: DECK_HEADER_PX }}
- >
- <button
- type="button"
- data-testid="deck-fold-away"
- onClick={() => setDeckExpanded(null)}
- className={cn(
- "inline-flex items-center gap-1.5 rounded-control px-2 py-1 text-xs",
- "text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground",
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60",
- )}
- >
- <ChevronUp className="h-3.5 w-3.5 shrink-0" />
- Back to the deck
- </button>
- <span className="truncate text-xs text-muted-foreground">{deckExpanded}</span>
- </div>
- )}
- {!openedWorkspaceFile && deckView && deckExpanded === null && (
- <div className="absolute inset-0 z-10">
- <DeckStage
- agents={deckAgents}
- expanded={deckExpanded}
- onToggleExpand={toggleDeckExpand}
- onToggleHold={toggleDeckHold}
- onOpenTerminal={
- session.terminals.length === 0 ? () => openTerminal("empty") : undefined
- }
- reporting={deck.reporting}
- pending={deck.queue.pending}
- onAir={deck.queue.on_air}
- sleeping={deck.queue.sleeping}
- onHear={deck.hear}
- onDropReport={deck.drop}
- onWake={deck.wake}
- />
- </div>
- )}
{openedWorkspaceFile && (
<WorkspaceFileViewer
workspaceId={session.id}
diff --git a/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.test.ts b/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.test.ts
index d8016c7386..6748d7d0bf 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.test.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.test.ts
@@ -97,6 +97,32 @@ describe("findLayoutViolations", () => {
canvas,
);
expect(report.clipped).toEqual([]);
+ expect(report.underfit).toEqual([]);
+ });
+
+ it("flags a terminal running as a thin strip down a wide pane", () => {
+ // The other direction of the same missed refit: the terminal was once
+ // fitted to a narrow moment, the tile got its room back, and no
+ // ResizeObserver will ever fire again because the tile is not changing.
+ // The agent keeps wrapping at a handful of columns forever (maintainer
+ // report 2026-08-11).
+ const report = findLayoutViolations(
+ [at("T6", 0, 0, 500, 600, { left: 8, top: 40, width: 180, height: 540 })],
+ canvas,
+ );
+ expect(report.underfit).toEqual(["T6"]);
+ expect(hasLayoutViolations(report)).toBe(true);
+ expect(describeLayoutViolations(report)).toContain("far narrower");
+ });
+
+ it("does not call a short pane underfit for its header and notice rows", () => {
+ // Height deficits are legitimate — the header, notice rows and delivery
+ // receipts all sit between the content and the pane's bottom edge.
+ const report = findLayoutViolations(
+ [at("T1", 0, 0, 500, 600, { left: 8, top: 40, width: 484, height: 420 })],
+ canvas,
+ );
+ expect(hasLayoutViolations(report)).toBe(false);
});
it("names what it found, for the console", () => {
diff --git a/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.ts b/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.ts
index b5861e49b9..5d196c8d90 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/paneLayoutGuard.ts
@@ -11,7 +11,7 @@
* (maintainer report 2026-08-11: a terminal half-covered by its neighbour
* while the workspace claimed all was well).
*
- * So the grid measures what is actually on screen and asks three questions no
+ * So the grid measures what is actually on screen and asks four questions no
* healthy workspace ever answers yes to:
*
* * do two visible panes overlap? Neighbours are a `GRID_GAP_PX` apart by
@@ -21,6 +21,13 @@
* * is a terminal's rendered content bigger than its pane? That is a missed
* refit: the PTY still thinks the pane is wide, and everything past the edge
* is cut off.
+ * * is it much SMALLER than its pane? The mirror image of the same missed
+ * refit: a terminal once fitted to a moment of narrowness that never heard
+ * about the room it got back. The agent wraps every line at a handful of
+ * columns and its output runs down the wide tile as a thin strip
+ * (maintainer report 2026-08-11, second screenshot of the day) — and
+ * nothing else ever repairs it, because the tile's size is not changing
+ * any more and so no ResizeObserver will fire again.
*
* Pure functions over plain rectangles, so the answer is testable without a
* browser laying anything out. The grid owns the measuring and the repair.
@@ -62,6 +69,8 @@ export interface LayoutViolations {
escaped: string[];
/** Panes whose terminal content is wider or taller than the pane itself. */
clipped: string[];
+ /** Panes whose terminal content is far narrower than the pane showing it. */
+ underfit: string[];
}
/**
@@ -84,6 +93,20 @@ const TOLERANCE_PX = 1;
*/
const CONTENT_TOLERANCE_PX = 3;
+/**
+ * How much narrower than its pane a terminal may honestly be.
+ *
+ * A correct fit leaves the remainder under ONE character cell unused (at the
+ * largest text size a cell is ~14 px wide), plus xterm's own scrollbar. Forty
+ * pixels is beyond any of that at every font size the toolbar offers, and far
+ * under the symptom this catches: a terminal stuck at the width of a tile it
+ * stopped occupying whole seams ago, several character cells short of its
+ * pane. Width only — the pane's header, notice rows and delivery receipts all
+ * legitimately stand between the content and the pane's bottom edge, so a
+ * height deficit proves nothing, and the repair refits both axes anyway.
+ */
+const UNDERFIT_TOLERANCE_PX = 40;
+
function intersects(a: MeasuredPane, b: MeasuredPane): boolean {
return (
a.left + TOLERANCE_PX < b.left + b.width &&
@@ -101,6 +124,7 @@ export function findLayoutViolations(
const overlaps: Array<[string, string]> = [];
const escaped: string[] = [];
const clipped: string[] = [];
+ const underfit: string[] = [];
for (let i = 0; i < panes.length; i += 1) {
const pane = panes[i];
@@ -124,18 +148,19 @@ export function findLayoutViolations(
}
const content = pane.content;
- if (
- content &&
- content.width > 0 &&
- content.height > 0 &&
- (content.left + content.width > pane.left + pane.width + CONTENT_TOLERANCE_PX ||
- content.top + content.height > pane.top + pane.height + CONTENT_TOLERANCE_PX)
- ) {
- clipped.push(pane.name);
+ if (content && content.width > 0 && content.height > 0) {
+ if (
+ content.left + content.width > pane.left + pane.width + CONTENT_TOLERANCE_PX ||
+ content.top + content.height > pane.top + pane.height + CONTENT_TOLERANCE_PX
+ ) {
+ clipped.push(pane.name);
+ } else if (content.width < pane.width - UNDERFIT_TOLERANCE_PX) {
+ underfit.push(pane.name);
+ }
}
}
- return { overlaps, escaped, clipped };
+ return { overlaps, escaped, clipped, underfit };
}
/** Is there anything to repair at all? */
@@ -143,7 +168,8 @@ export function hasLayoutViolations(violations: LayoutViolations): boolean {
return (
violations.overlaps.length > 0 ||
violations.escaped.length > 0 ||
- violations.clipped.length > 0
+ violations.clipped.length > 0 ||
+ violations.underfit.length > 0
);
}
@@ -161,5 +187,10 @@ export function describeLayoutViolations(violations: LayoutViolations): string {
if (violations.clipped.length > 0) {
parts.push(`terminals bigger than their pane: ${violations.clipped.join(", ")}`);
}
+ if (violations.underfit.length > 0) {
+ parts.push(
+ `terminals far narrower than their pane: ${violations.underfit.join(", ")}`,
+ );
+ }
return parts.join("; ");
}