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): brisker application stroke and a directional grip receipt

rubenluetke10-beepfbdf903583d5
diff --git a/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx b/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx
index c0a87f3562..4c62794fe6 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/PaneScrollRail.tsx
@@ -504,9 +504,20 @@ export function PaneScrollRail({
className="h-full w-full fill-[#141210]/70"
aria-hidden="true"
>
- <circle cx="4" cy="10" r="1.1" />
- <circle cx="4" cy="14" r="1.1" />
- <circle cx="4" cy="18" r="1.1" />
+ {/* While held, the dots become an arrow in the direction the hand
+ is moving — the gesture's receipt, since the grip itself will
+ not stay anywhere. */}
+ {dragging && gripOffset < 0 ? (
+ <path d="M4 9 7 15H1Z" />
+ ) : dragging && gripOffset > 0 ? (
+ <path d="M4 19 1 13h6Z" />
+ ) : (
+ <>
+ <circle cx="4" cy="10" r="1.1" />
+ <circle cx="4" cy="14" r="1.1" />
+ <circle cx="4" cy="18" r="1.1" />
+ </>
+ )}
</svg>
</div>
)}
diff --git a/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.test.ts b/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.test.ts
index 79ef54be41..15c0ca2348 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.test.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.test.ts
@@ -98,11 +98,11 @@ describe("terminalScrollSurface", () => {
});
it("converts a stroke into whole relay units and carries the remainder", () => {
- // 7px per unit: two units and 3px left over for the next pointer event, so
- // a slow drag accumulates instead of being rounded away to nothing.
- expect(strokeUnits(17)).toEqual({ units: 2, consumedPx: 14 });
- expect(strokeUnits(-17)).toEqual({ units: 2, consumedPx: -14 });
- expect(strokeUnits(6)).toEqual({ units: 0, consumedPx: 0 });
+ // 3px per unit: five units and 2px left over for the next pointer event,
+ // so a slow drag accumulates instead of being rounded away to nothing.
+ expect(strokeUnits(17)).toEqual({ units: 5, consumedPx: 15 });
+ expect(strokeUnits(-17)).toEqual({ units: 5, consumedPx: -15 });
+ expect(strokeUnits(2)).toEqual({ units: 0, consumedPx: 0 });
expect(strokeUnits(0)).toEqual({ units: 0, consumedPx: 0 });
expect(strokeUnits(50, 25)).toEqual({ units: 2, consumedPx: 50 });
});
diff --git a/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.ts b/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.ts
index 61bea65dc1..7f4427cfbd 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/terminalScrollSurface.ts
@@ -59,9 +59,12 @@ const PAGE_DOWN = "\x1b[6~";
*
* A stroke, not a jump to a position: the gesture says "keep going this way",
* which is the only thing the rail can honestly promise when the application
- * owns the history. Roughly half a screen per rail-length drag.
+ * owns the history. At 7 the maintainer's verdict on a real Claude pane was
+ * "you drag and almost nothing happens" — a grip that moves the transcript
+ * less than the hand moved feels dead, so the step errs brisk rather than
+ * fine; the wheel remains the fine-grained gesture.
*/
-export const STROKE_STEP_PX = 7;
+export const STROKE_STEP_PX = 3;
function clamp(value: number, low: number, high: number): number {
return Math.min(high, Math.max(low, value));