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(ide): the working pane's blue edge is equally bright all the way round

rubenluetke10-beepdce3353497c3
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 ae1d29c784..8b89821cba 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
@@ -335,10 +335,17 @@ describe("AgenticTerminal layout", () => {
expect(screen.queryByTestId("pane-header-Dana")).toBeNull();
const resting = pane.style.borderColor;
expect(resting).toBeTruthy();
- expect(pane.style.boxShadow).toBe("");
+ expect(screen.queryByTestId("pane-focus-ring-Dana")).toBeNull();
rerender(<AgenticTerminal {...props} focused />);
expect(pane.style.borderColor).not.toBe(resting);
- expect(pane.style.boxShadow).toContain("inset");
+ // The inner line is a layer of its own on top of the title row, so the
+ // row's translucent ground cannot dim it (it read darker along the top).
+ const ring = screen.getByTestId("pane-focus-ring-Dana");
+ expect(ring.style.boxShadow).toContain("inset");
+ expect(ring.className).toContain("pointer-events-none");
+ expect(ring.className).toContain("z-[45]");
+ expect(pane.lastElementChild).toBe(ring);
+ expect(pane.style.boxShadow).toBe("");
// One pane in the grid is still the pane in use: it is marked too.
rerender(<AgenticTerminal {...props} focused={false} />);
expect(pane.style.borderColor).toBe(resting);
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
index 95a402ae8e..6deddd03bd 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
@@ -2697,7 +2697,8 @@ export function AgenticTerminal({
// per-appearance literal (`PANE_TILE`), not a class, for the same
// reason the resting edge is. The pane the reader clicked into must be
// findable at a glance across a full grid, so its edge is doubled by an
- // inset line of the same hue (two pixels, no layout shift).
+ // inner line of the same hue — see the focus ring at the end of the
+ // frame for why that line is its own layer.
borderColor:
dragging || justDelivered
? undefined
@@ -2706,7 +2707,6 @@ export function AgenticTerminal({
: focused
? undefined
: chrome.edge[visibleStatus],
- boxShadow: minimal && focused && !dragging && !justDelivered ? `inset 0 0 0 1px ${tile.focus}` : undefined,
}}
data-pane-style={minimal ? "minimal" : undefined}
data-testid={`agentic-pane-${name}`}
@@ -2868,6 +2868,21 @@ export function AgenticTerminal({
</div>
</div>
)}
+ {/*
+ The focused tile's inner edge line, drawn ABOVE everything in the pane.
+ As an inset shadow on the frame it sat underneath the title row, whose
+ own translucent ground dimmed it: the blue read darker along the top
+ than down the terminal (maintainer, 2026-09-30). One layer on top keeps
+ the line the same brightness all the way round.
+ */}
+ {minimal && focused && !dragging && !justDelivered && (
+ <div
+ aria-hidden="true"
+ data-testid={`pane-focus-ring-${name}`}
+ className="pointer-events-none absolute inset-0 z-[45]"
+ style={{ boxShadow: `inset 0 0 0 1px ${tile.focus}` }}
+ />
+ )}
</div>
);
}