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.

feat(ide): larger, fuller terminal text in workspace panes

rubenluetke10-beepa4661af7f4ea
diff --git a/jarvis/agentic_ide/session.py b/jarvis/agentic_ide/session.py
index 0f572d28d3..5892c3567b 100644
--- a/jarvis/agentic_ide/session.py
+++ b/jarvis/agentic_ide/session.py
@@ -1086,11 +1086,6 @@ class Terminal:
# Movement in the shadow of this stamp is the pane being redrawn, not the
# agent working — see `activity._resize_shadowed`.
last_resize_at: float | None = None
- # Resized while its agent was still loading, before it had taken the whole
- # screen — so no repaint check could run for that size, and a CLI that was
- # not listening yet may still be drawing for the size it was born with.
- # Settled once the input line appears (see `_prompt_ready_then_settle`).
- resized_while_booting: bool = False
prompts_sent: int = 0
last_prompt: str = ""
# The current process's records are kept as a fallback if the local history
@@ -3661,35 +3656,6 @@ class Registry:
)
return term.name in ready
- async def _prompt_ready_then_settle(self, session: Session, term: Terminal) -> bool:
- """Wait for the input line, then repaint a pane resized while it loaded.
-
- A fresh pane is spawned at the size its tile measured on mount, and the
- grid settles a moment later — so its real size reaches the PTY while the
- CLI is still booting. A CLI that is not listening for size changes yet
- keeps drawing for the size it was born with: an interface narrower or
- shorter than its pane, the input box floating mid-pane (reported
- 2026-09-29, four panes opened together). The repaint check cannot catch
- this, because it only runs once the agent has taken the whole screen.
- One nudge after the input line appears — when the CLI certainly listens
- — makes it lay out for the size the pane really has.
- """
- generation = term.process_generation
- ready = await self._prompt_ready(session, term)
- if (
- ready
- and term.process_generation == generation
- and term.resized_while_booting
- and term.replay.holds_screen
- and term.pty_cols
- and term.pty_rows
- ):
- term.resized_while_booting = False
- # Shielded: the slot's ceiling may cancel this wait, and a nudge
- # cut between its two resizes leaves the PTY a row short.
- await asyncio.shield(self._nudge_repaint(term, term.pty_cols, term.pty_rows))
- return ready
-
async def _acquire_agent_cold_start(self, term: Terminal) -> asyncio.Semaphore | None:
"""Take this CLI/account's boot slot when its registry entry needs one.
@@ -4086,7 +4052,6 @@ class Registry:
# can inherit the previous PTY's settled-screen evidence.
term.process_generation += 1
term.idle_seen = False
- term.resized_while_booting = False
term.transcript.resize(cols, rows)
# Readiness belongs to this process. Keeping the dead process's screen
# here leaves old prompt sigils visible to the readiness probe and makes
@@ -4265,9 +4230,7 @@ class Registry:
try:
# One of a few starts at a time (see COLD_START_LIMIT), and the
# slot stays taken until this pane's input line appears.
- async with self._cold_start_slot(
- ready=lambda: self._prompt_ready_then_settle(session, term)
- ):
+ async with self._cold_start_slot(ready=lambda: self._prompt_ready(session, term)):
try:
identity = "pane:" + term.history_id
if term.stopping or self._locate(identity, session.id) != (session, term):
@@ -4715,9 +4678,6 @@ class Registry:
test, a script) simply goes unchecked.
"""
if not term.replay.holds_screen:
- # Either a line-mode CLI, or a full-screen one still loading. The
- # second cannot be checked yet, so it is settled after boot.
- term.resized_while_booting = True
return
try:
loop = asyncio.get_running_loop()
diff --git a/jarvis/agentic_ide/ui_prefs.py b/jarvis/agentic_ide/ui_prefs.py
index 04ee218073..e5fd3a1dcc 100644
--- a/jarvis/agentic_ide/ui_prefs.py
+++ b/jarvis/agentic_ide/ui_prefs.py
@@ -36,7 +36,7 @@ from loguru import logger
#: ``tests/unit/agentic_ide/test_ui_prefs.py`` so the two cannot drift.
FONT_MIN = 10
FONT_MAX = 20
-FONT_DEFAULT = 13
+FONT_DEFAULT = 15
_FONT_KEY = "terminal_font_size"
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx
index 163a0a0afb..0f0839f4ea 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx
@@ -2644,11 +2644,11 @@ describe("terminal text size", () => {
// implementation, so a size one test stores would still be answered to the
// next one.
vi.mocked(api.fetchTerminalUiPreferences).mockResolvedValue({
- terminal_font_size: 13,
+ terminal_font_size: 15,
stored: false,
min: 10,
max: 20,
- default: 13,
+ default: 15,
});
});
@@ -2665,7 +2665,7 @@ describe("terminal text size", () => {
stored: true,
min: 10,
max: 20,
- default: 13,
+ default: 15,
});
renderGrid();
@@ -2682,8 +2682,8 @@ describe("terminal text size", () => {
fireEvent.click(screen.getByLabelText("Larger terminal text"));
- await waitFor(() => expect(api.saveTerminalFontSize).toHaveBeenCalledWith(14));
- expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("14");
+ await waitFor(() => expect(api.saveTerminalFontSize).toHaveBeenCalledWith(16));
+ expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("16");
});
it("adopts a size chosen before the backend remembered them", async () => {
@@ -2706,7 +2706,7 @@ describe("terminal text size", () => {
await waitFor(() => expect(warn).toHaveBeenCalled());
fireEvent.click(screen.getByLabelText("Smaller terminal text"));
- expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("12");
+ expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("14");
warn.mockRestore();
});
@@ -2718,17 +2718,17 @@ describe("terminal text size", () => {
const pane = () => screen.getByTestId("pane-Mika").getAttribute("data-font-size");
fireEvent.keyDown(window, { key: "+", ctrlKey: true });
- await waitFor(() => expect(pane()).toBe("14"));
+ await waitFor(() => expect(pane()).toBe("16"));
fireEvent.keyDown(window, { key: "+", ctrlKey: true });
- expect(pane()).toBe("15");
- expect(screen.getByTestId("agentic-font-size-value").textContent).toBe("15");
+ expect(pane()).toBe("17");
+ expect(screen.getByTestId("agentic-font-size-value").textContent).toBe("17");
fireEvent.keyDown(window, { key: "-", ctrlKey: true });
- expect(pane()).toBe("14");
+ expect(pane()).toBe("16");
fireEvent.keyDown(window, { key: "0", ctrlKey: true });
- expect(pane()).toBe("13");
- await waitFor(() => expect(api.saveTerminalFontSize).toHaveBeenLastCalledWith(13));
+ expect(pane()).toBe("15");
+ await waitFor(() => expect(api.saveTerminalFontSize).toHaveBeenLastCalledWith(15));
});
it("claims the chord so the WebView does not zoom the whole window as well", async () => {
@@ -2744,7 +2744,7 @@ describe("terminal text size", () => {
// AltGr arrives as Ctrl+Alt, and the character has to reach the agent.
expect(fireEvent.keyDown(window, { key: "+", ctrlKey: true, altKey: true })).toBe(true);
- expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("13");
+ expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("15");
});
it("leaves the chord alone while another section is on screen", async () => {
@@ -2754,7 +2754,7 @@ describe("terminal text size", () => {
await waitFor(() => expect(api.fetchTerminalUiPreferences).toHaveBeenCalled());
fireEvent.keyDown(window, { key: "+", ctrlKey: true });
- expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("13");
+ expect(screen.getByTestId("pane-Mika").getAttribute("data-font-size")).toBe("15");
});
it("stops at the supported bounds instead of stepping past them", async () => {
@@ -2763,7 +2763,7 @@ describe("terminal text size", () => {
stored: true,
min: 10,
max: 20,
- default: 13,
+ default: 15,
});
renderGrid();
await waitFor(() =>
@@ -2784,7 +2784,7 @@ describe("terminal text size", () => {
stored: true,
min: 10,
max: 20,
- default: 13,
+ default: 15,
});
renderGrid();
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
index 97573ca906..4b8af0e712 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
@@ -103,6 +103,8 @@ import { attachTerminalBridge } from "@/lib/editActions";
import { robustCopy, robustPaste } from "@/lib/clipboard";
import {
TERMINAL_FONT_STACK,
+ TERMINAL_FONT_WEIGHT,
+ TERMINAL_FONT_WEIGHT_BOLD,
alignTerminalCells,
syncTerminalFont,
terminalFontSettled,
@@ -925,11 +927,15 @@ export function AgenticTerminal({
// module exists to prevent.
fontFamily: TERMINAL_FONT_STACK,
fontSize: fontSizeRef.current,
- // A dense console line height, like a standalone terminal: at 1.3 a pane
- // showed far fewer rows than the same window in a native terminal, which
- // read as "zoomed in". Kept integral-friendly: fractional cell heights
- // round differently per row and make a redrawn TUI box look ragged.
- lineHeight: 1.2,
+ // Medium body text — see TERMINAL_FONT_WEIGHT for why Regular reads thin
+ // and grey under the WebGL renderer next to a native terminal.
+ fontWeight: TERMINAL_FONT_WEIGHT,
+ fontWeightBold: TERMINAL_FONT_WEIGHT_BOLD,
+ // The font's own line height, like a standalone terminal. JetBrains Mono
+ // already carries 1.32em of leading; at 1.2 on top a row was ~1.6em tall,
+ // so a pane showed large text gaps between small glyphs. At 1.0 the larger
+ // default size (./paneFont) fits the same number of rows as before.
+ lineHeight: 1.0,
// Zero, not 0.2: extra tracking is added per cell, so a box-drawing frame
// and the text under it accumulate different sub-pixel offsets and the
// frame visibly bends. Monospace legibility comes from the line height.
diff --git a/jarvis/ui/web/frontend/src/components/agentic/paneFont.ts b/jarvis/ui/web/frontend/src/components/agentic/paneFont.ts
index 53bb2112a4..477f4dea92 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/paneFont.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/paneFont.ts
@@ -19,8 +19,12 @@
export const FONT_MIN = 10;
export const FONT_MAX = 20;
-/** Where a fresh install starts, and where Ctrl/Cmd+0 lands. */
-export const FONT_DEFAULT = 13;
+/**
+ * Where a fresh install starts, and where Ctrl/Cmd+0 lands. 15, not 13: a
+ * native terminal's default (Windows Terminal, 12pt) draws the same text about
+ * 15 % larger, and 13 read as small next to it (maintainer, 2026-09-29).
+ */
+export const FONT_DEFAULT = 15;
export const FONT_KEY = "jarvis.agenticIde.terminalFontSize";
diff --git a/jarvis/ui/web/frontend/src/lib/terminalFont.ts b/jarvis/ui/web/frontend/src/lib/terminalFont.ts
index 2dbccc03bd..11dc0c7890 100644
--- a/jarvis/ui/web/frontend/src/lib/terminalFont.ts
+++ b/jarvis/ui/web/frontend/src/lib/terminalFont.ts
@@ -47,8 +47,24 @@ export const TERMINAL_FONT_STACK =
/** The display font at the head of the stack — the one that arrives late. */
const DISPLAY_FAMILY = '"JetBrains Mono"';
+/**
+ * The weight body text draws with: Medium, not Regular.
+ *
+ * xterm's WebGL renderer rasterises glyphs with greyscale anti-aliasing, which
+ * draws JetBrains Mono Regular with a thin, grey stem — a native terminal's
+ * DirectWrite/Core Text pass renders the same size visibly fuller. Measured on
+ * 2026-09-29 against a pane in Windows Terminal (Cascadia Mono 12pt): its
+ * text had roughly eight times as many fully-inked pixels per line as ours,
+ * even though our foreground is the brighter colour. The Medium cut closes
+ * that gap without touching the palette; the cut ships in ../index.css.
+ */
+export const TERMINAL_FONT_WEIGHT = 500;
+
+/** The weight a TUI's bold spans draw with — still clearly above the body. */
+export const TERMINAL_FONT_WEIGHT_BOLD = 700;
+
/** The weights xterm paints with: body text, and the bold spans a TUI uses. */
-const WEIGHTS = [400, 700] as const;
+const WEIGHTS = [TERMINAL_FONT_WEIGHT, TERMINAL_FONT_WEIGHT_BOLD] as const;
/** Measured over a run of glyphs so per-character rounding cannot dominate. */
const SAMPLE = "W".repeat(32);
@@ -206,7 +222,7 @@ export function terminalFontSettled(
const fonts = deps.fonts !== undefined ? deps.fonts : browserFonts();
if (!fonts) return true;
try {
- return displayFaceDeclared(fonts) && fonts.check(`400 ${fontSize}px ${DISPLAY_FAMILY}`);
+ return displayFaceDeclared(fonts) && fonts.check(`${TERMINAL_FONT_WEIGHT} ${fontSize}px ${DISPLAY_FAMILY}`);
} catch {
return true;
}
diff --git a/tests/unit/agentic_ide/test_session.py b/tests/unit/agentic_ide/test_session.py
index 65dcf42cf3..e157f7b22b 100644
--- a/tests/unit/agentic_ide/test_session.py
+++ b/tests/unit/agentic_ide/test_session.py
@@ -427,63 +427,6 @@ async def test_repaint_nudges_stop_at_the_bound_and_leave_the_real_size(
assert sizes[-1] == (80, 24), "the pane must be left at the size it really is"
-async def _ready_now(_session: object, _term: object) -> bool:
- return True
-
-
-async def test_a_pane_resized_while_its_agent_loaded_is_repainted_once_ready(
- registry: Registry,
- fake_pty: FakePtyManager,
- tmp_path: Path,
- monkeypatch: pytest.MonkeyPatch,
-) -> None:
- """The grid settles while the CLI boots; its real size must be drawn for.
-
- Four panes opened together were spawned at the mount-time size and resized
- a moment later, before Claude Code listened for size changes — so it kept
- laying out for the old size (2026-09-29). No repaint check can run before
- the agent takes the whole screen, so the pane is nudged once it is ready.
- """
- monkeypatch.setattr(session_mod, "REPAINT_CONFIRM_S", 0.02)
- monkeypatch.setattr(session_mod, "REPAINT_POLL_S", 0.005)
- monkeypatch.setattr(registry, "_prompt_ready", _ready_now)
- session = await _open(registry, tmp_path, [{"agent": "claude"}])
- term = session.terminals[0]
- await registry.attach(term.name, 114, 30, _noop_output, _noop_exit)
- pty = term.pty_id
- # Still loading: nothing has taken the screen yet.
- assert registry.resize(term.key, 104, 30, session.id)
- assert term.resized_while_booting
- await fake_pty.emit(pty, "\x1b[?1049h\x1b[2J\x1b[Hdrawn for 114 columns")
- fake_pty.resizes.clear()
-
- assert await registry._prompt_ready_then_settle(session, term)
-
- sizes = [(cols, rows) for tid, cols, rows in fake_pty.resizes if tid == pty]
- assert sizes[:2] == [(104, 29), (104, 30)]
- assert not term.resized_while_booting
- await asyncio.gather(*registry._repaint_checks)
- assert fake_pty.resizes[-1][1:] == (104, 30)
-
-
-async def test_a_pane_never_resized_while_loading_is_not_nudged(
- registry: Registry,
- fake_pty: FakePtyManager,
- tmp_path: Path,
- monkeypatch: pytest.MonkeyPatch,
-) -> None:
- monkeypatch.setattr(registry, "_prompt_ready", _ready_now)
- session = await _open(registry, tmp_path, [{"agent": "claude"}])
- term = session.terminals[0]
- await registry.attach(term.name, 104, 30, _noop_output, _noop_exit)
- await fake_pty.emit(term.pty_id, "\x1b[?1049h\x1b[2J\x1b[Hdrawn for 104 columns")
- fake_pty.resizes.clear()
-
- assert await registry._prompt_ready_then_settle(session, term)
-
- assert fake_pty.resizes == []
-
-
async def test_a_viewer_resize_the_agent_ignored_is_nudged_again(
registry: Registry,
fake_pty: FakePtyManager,