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(agentic-ide): add themed terminal scrollbar

Ruben Lütkeedf535f1cd23
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.scrollbar.test.ts b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.scrollbar.test.ts
new file mode 100644
index 0000000000..708276d9a1
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.scrollbar.test.ts
@@ -0,0 +1,23 @@
+import { readFileSync } from "node:fs";
+import { resolve } from "node:path";
+import { describe, expect, it } from "vitest";
+
+const css = readFileSync(resolve(process.cwd(), "src/index.css"), "utf8");
+const component = readFileSync(
+ resolve(process.cwd(), "src/components/agentic/AgenticTerminal.tsx"),
+ "utf8",
+);
+
+describe("AgenticTerminal scrollbar", () => {
+ it("styles the shared xterm viewport with a visible track and interactive thumb", () => {
+ const host = ".agentic-terminal-host .xterm-viewport";
+
+ expect(component).toContain('className="agentic-terminal-host ');
+ expect(css).toContain(`${host} {`);
+ expect(css).toContain("scrollbar-gutter: stable;");
+ expect(css).toContain(`${host}::-webkit-scrollbar-track`);
+ expect(css).toContain(`${host}::-webkit-scrollbar-thumb`);
+ expect(css).toContain(`${host}::-webkit-scrollbar-thumb:hover`);
+ expect(css).toContain(`${host}::-webkit-scrollbar-thumb:active`);
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
index 079ea70af9..81b015c93c 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
@@ -557,7 +557,7 @@ export function AgenticTerminal({
<div
ref={containerRef}
data-testid={`agentic-terminal-host-${name}`}
- className="h-full min-h-0 w-full overflow-hidden"
+ className="agentic-terminal-host h-full min-h-0 w-full overflow-hidden"
/>
</div>
{(dragging || attaching) && (
diff --git a/jarvis/ui/web/frontend/src/index.css b/jarvis/ui/web/frontend/src/index.css
index c97acdfbaf..ea8528db88 100644
--- a/jarvis/ui/web/frontend/src/index.css
+++ b/jarvis/ui/web/frontend/src/index.css
@@ -28,6 +28,49 @@
display: none;
}
+/* Agentic IDE terminal scrollbar. This targets the shared xterm host rather
+ than a coding CLI, so Claude Code, Codex, and future agents all get the same
+ native scrollback controls. The visible track makes the scroll range easy to
+ discover; the inset thumb stays quiet until hover/drag. Keep this top-level:
+ xterm creates the viewport at runtime and Tailwind would purge it in a layer. */
+.agentic-terminal-host .xterm-viewport {
+ scrollbar-color: rgb(var(--jarvis-yellow) / 0.5) rgba(127, 127, 127, 0.14);
+ scrollbar-gutter: stable;
+ scrollbar-width: thin;
+}
+
+.agentic-terminal-host .xterm-viewport::-webkit-scrollbar {
+ width: 10px;
+}
+
+.agentic-terminal-host .xterm-viewport::-webkit-scrollbar-track {
+ background: rgba(127, 127, 127, 0.14);
+ border-radius: 999px;
+ box-shadow: inset 1px 0 rgba(255, 255, 255, 0.06);
+}
+
+.agentic-terminal-host .xterm-viewport::-webkit-scrollbar-thumb {
+ min-height: 32px;
+ background: rgb(var(--jarvis-yellow) / 0.5);
+ background-clip: padding-box;
+ border: 2px solid transparent;
+ border-radius: 999px;
+}
+
+.agentic-terminal-host .xterm-viewport::-webkit-scrollbar-thumb:hover {
+ background: rgb(var(--jarvis-yellow) / 0.72);
+ background-clip: padding-box;
+}
+
+.agentic-terminal-host .xterm-viewport::-webkit-scrollbar-thumb:active {
+ background: rgb(var(--jarvis-yellow) / 0.92);
+ background-clip: padding-box;
+}
+
+.agentic-terminal-host .xterm-viewport::-webkit-scrollbar-corner {
+ background: transparent;
+}
+
@layer base {
:root {
/* Jarvis — Schwarz/Gelb Theme (matte, signal-yellow) */