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): keep the application scroll rail visible at rest

rubenluetke10-beepf9e6f568faf9
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
index ae590d95cf..721b1f39aa 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
@@ -1423,9 +1423,7 @@ export function AgenticTerminal({
ref={terminalRegionRef}
id={terminalRegionId}
className={cn(
- // `group/pane`: the scroll rail fades itself in on pointer contact
- // with THIS pane when it has no position to show. See PaneScrollRail.
- "group/pane relative min-h-0 flex-1 overflow-hidden px-1.5 pb-0.5 pt-0.5",
+ "relative min-h-0 flex-1 overflow-hidden px-1.5 pb-0.5 pt-0.5",
active && !tailReady && "invisible",
)}
>
diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.test.tsx
index c4705dc12d..a16afd2854 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.test.tsx
@@ -255,7 +255,7 @@ describe("PaneScrollRail", () => {
expect(deltas.some((delta) => delta > 0)).toBe(true);
});
- it("says plainly why an application rail has no position, and hides at rest", () => {
+ it("says plainly why an application rail has no position, and stays visible", () => {
const harness = fakeTerminal({ owner: "mouse-app" });
render(<RailHarness name="Ida" term={harness.term} />);
const rail = giveTrackGeometry("Ida");
@@ -263,10 +263,12 @@ describe("PaneScrollRail", () => {
expect(rail.title).toBe(
"Scroll Ida: this app keeps its own history, so there is no position to show",
);
- // Carrying no information, it stays out of the way until the pointer is in
- // the pane. An exact rail keeps its resting visibility — it IS information.
- expect(rail.className).toContain("opacity-0");
- expect(rail.className).toContain("group-hover/pane:opacity-70");
+ // The regression this pins: the application rail once hid at rest, and an
+ // invisible control next to a sibling pane's always-visible thumb was read
+ // as "the scrollbar is broken in this CLI". Both rail kinds now share the
+ // same resting visibility.
+ expect(rail.className).not.toContain("opacity-0");
+ expect(rail.className).toContain("opacity-65");
});
it("notices a mouse-tracking flip that arrives without any buffer event", () => {
diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx
index 9f8310f89a..8ef5bfe87f 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx
@@ -406,10 +406,11 @@ export function PaneScrollRail({
className={cn(
"group absolute inset-y-1 right-0 z-10 w-3 touch-none select-none rounded-full outline-none",
"transition-opacity hover:opacity-100 focus-visible:opacity-100 focus-within:opacity-100",
- // An exact rail is an INDICATOR and stays legible at rest. An
- // application rail is only a control, so it keeps out of the way until
- // the pointer is in the pane that owns it.
- exact ? "opacity-65" : "opacity-0 group-hover/pane:opacity-70",
+ // BOTH rail kinds stay legible at rest, at the same level. The
+ // application rail used to hide until the pointer entered its pane,
+ // and a control that is invisible next to a sibling pane's visible
+ // thumb reads as "the scrollbar is broken in this CLI".
+ "opacity-65",
"focus-visible:ring-1 focus-visible:ring-[#e7c46e]/80 focus-within:ring-1 focus-within:ring-[#e7c46e]/80",
// `!` so a stroke that carries the pointer out of the pane does not
// fade the rail out from under the hand still holding it.