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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(jarvisbar): slim down the active conversation pill
Ruben Lütke6c526475da00
diff --git a/jarvis/ui/jarvisbar/renderer.py b/jarvis/ui/jarvisbar/renderer.pyindex df05487dfa..5a5150f50e 100644--- a/jarvis/ui/jarvisbar/renderer.py+++ b/jarvis/ui/jarvisbar/renderer.py@@ -114,11 +114,15 @@ def compute_display_scale(screen_w: int, screen_h: int) -> float:# time a voice session is live (listen/speak/think). This is the# "make the bar much bigger while talking" feature.# Conversation pill: 2x the open pill, then trimmed so it doesn't read as bulky.-# Width loses 15% off EACH side (→ 0.70 of 2x = 30% narrower); height loses 5%-# off top AND bottom (→ 0.90 of 2x = 10% shorter). The pill stays centred, so-# the idle bar keeps its middle resting spot.-_ACTIVE_SIDE_TRIM = 0.15 # fraction removed from each side of the 2x width-_ACTIVE_VERT_TRIM = 0.05 # fraction removed from top and bottom of the 2x height+# Width loses 13% off EACH side (→ 0.74 of 2x); height loses 22% off top AND+# bottom (→ 0.56 of 2x) — the live pill grows mainly in LENGTH and stays slim.+# Calibrated against the maintainer's good-example screenshot (2026-07-21):+# the previous 0.90-of-2x height rendered the live pill 29 px thick on the+# 2560x1440 monitor and was judged "way too big" next to the 18 px example;+# these trims land it at 86x18 there (example: 85x18). The pill stays centred,+# so the idle bar keeps its middle resting spot.+_ACTIVE_SIDE_TRIM = 0.13 # fraction removed from each side of the 2x width+_ACTIVE_VERT_TRIM = 0.22 # fraction removed from top and bottom of the 2x height# The pill is anchored by its BOTTOM edge this many px above the window bottom,# so the idle pill keeps its usual resting spot and the active pill grows@@ -143,8 +147,8 @@ def apply_display_scale(scale: float) -> None:COLLAPSED_H = round(30 * _SH * _IDLE_H * s) # standby pill (slim)OPEN_W = round(284 * _SW * s) # hover/controls pill (the former "expanded")OPEN_H = round(52 * _SH * s)- ACTIVE_W = round(2 * OPEN_W * (1.0 - 2 * _ACTIVE_SIDE_TRIM)) # 2x * 0.70- ACTIVE_H = round(2 * OPEN_H * (1.0 - 2 * _ACTIVE_VERT_TRIM)) # 2x * 0.90+ ACTIVE_W = round(2 * OPEN_W * (1.0 - 2 * _ACTIVE_SIDE_TRIM)) # 2x * 0.74+ ACTIVE_H = round(2 * OPEN_H * (1.0 - 2 * _ACTIVE_VERT_TRIM)) # 2x * 0.56_BOTTOM_PAD = max(4, round(_BASE_BOTTOM_PAD * s))# The fixed Tk window must contain the largest (ACTIVE) pill + its 2px# outline and the flanking hover controls.diff --git a/tests/unit/ui/jarvisbar/test_display_scale.py b/tests/unit/ui/jarvisbar/test_display_scale.pyindex c51bae7f56..13e39f290d 100644--- a/tests/unit/ui/jarvisbar/test_display_scale.py+++ b/tests/unit/ui/jarvisbar/test_display_scale.py@@ -69,17 +69,19 @@ def test_invalid_screen_degrades_to_the_approved_ceiling():# --------------------------------------------------------------------------- ## apply_display_scale ## --------------------------------------------------------------------------- #-# The maintainer-approved desktop look — scale 1.0 must reproduce these-# byte-identically (regression guard for "my monitor size was perfect").+# The geometry baseline — scale 1.0 must reproduce these byte-identically+# (regression guard for the signed-off proportions). ACTIVE/WIN reflect the+# slimmer conversation pill calibrated 2026-07-21 (86x18 on the maintainer's+# 0.85-scaled monitor, matching the 85x18 good-example screenshot)._HISTORICAL = {"COLLAPSED_W": 48,"COLLAPSED_H": 8,"OPEN_W": 68,"OPEN_H": 19,- "ACTIVE_W": 95,- "ACTIVE_H": 34,- "WIN_W": 107,- "WIN_H": 48,+ "ACTIVE_W": 101,+ "ACTIVE_H": 21,+ "WIN_W": 113,+ "WIN_H": 35,}diff --git a/tests/unit/ui/jarvisbar/test_renderer.py b/tests/unit/ui/jarvisbar/test_renderer.pyindex 1b55a7ffb6..1b48b123c1 100644--- a/tests/unit/ui/jarvisbar/test_renderer.py+++ b/tests/unit/ui/jarvisbar/test_renderer.py@@ -297,12 +297,14 @@ def _grow_settle(mode, *, hovered=False, frames=120):def test_active_conversation_pill_size_vs_open_pill():# During a conversation the pill is 2x the hover-open pill, then trimmed to- # feel less bulky: 15% off each side (→ 0.70 of 2x width) and 5% off top and- # bottom (→ 0.90 of 2x height). Centred, so the idle bar stays in the middle.+ # feel less bulky: 13% off each side (→ 0.74 of 2x width) and 22% off top+ # and bottom (→ 0.56 of 2x height — the live pill grows mainly in LENGTH,+ # calibrated to the good-example screenshot 2026-07-21). Centred, so the+ # idle bar stays in the middle.active = _grow_settle("speak")open_pill = _grow_settle("idle", hovered=True)- assert active._st.pw == pytest.approx(2 * 0.70 * open_pill._st.pw, rel=0.05)- assert active._st.ph == pytest.approx(2 * 0.90 * open_pill._st.ph, rel=0.05)+ assert active._st.pw == pytest.approx(2 * 0.74 * open_pill._st.pw, rel=0.05)+ assert active._st.ph == pytest.approx(2 * 0.56 * open_pill._st.ph, rel=0.05)def test_window_is_large_enough_for_the_active_pill():