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): reveal wallpaper through terminals

rubenluetke10-beep45996f172652
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 51c87e3b0c..d759a39494 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx
@@ -1462,6 +1462,25 @@ describe("terminal text size across a rebuild", () => {
const newest = () => terminalHarness.instances[terminalHarness.instances.length - 1];
+ it("keeps the xterm canvas clear over the shared translucent pane shell", () => {
+ render(
+ <AgenticTerminal
+ name="Dana"
+ displayName="Claude Code"
+ appearance="dark"
+ fontSize={13}
+ />,
+ );
+
+ expect(newest().options.allowTransparency).toBe(true);
+ expect(
+ (newest().options.theme as Record<string, unknown>).background,
+ ).toBe("rgba(0, 0, 0, 0)");
+ expect(screen.getByTestId("agentic-pane-Dana").style.background).toBe(
+ "rgba(10, 10, 10, 0.58)",
+ );
+ });
+
it("builds a replacement terminal at the size the user is looking at", () => {
const view = render(
<AgenticTerminal name="Dana" displayName="Claude Code" appearance="dark" fontSize={13} />,
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
index 2384403ec5..31d58ee816 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx
@@ -611,6 +611,10 @@ export function AgenticTerminal({
const activateLink = createTerminalLinkActivator(linkOptions);
const term = new Terminal({
convertEol: false,
+ // The pane shell supplies the shared section glass. xterm otherwise
+ // paints an opaque canvas over it, hiding both that glass and the desktop
+ // artwork even when the surrounding React container is translucent.
+ allowTransparency: true,
// Shared with the measurement in ./../../lib/terminalFont: a pane that
// measured a different stack from the one it draws with is the bug that
// module exists to prevent.
@@ -1699,7 +1703,7 @@ export function AgenticTerminal({
// only standing accent. The old per-pane drop shadows made a grid of
// twelve read as twelve floating cards — a tiling terminal is a wall,
// and a wall needs edges, not elevation.
- "relative flex h-full w-full flex-col overflow-hidden rounded-lg border transition-shadow",
+ "relative flex h-full w-full flex-col overflow-hidden rounded-lg border backdrop-blur-[4px] transition-shadow",
focused && "border-primary/60 shadow-[0_0_0_1px_hsl(var(--primary)/0.3)]",
dragging && "border-primary shadow-[0_0_0_2px_hsl(var(--primary)/0.5)]",
// A prompt just landed here. Two seconds of ring, for the one job the
diff --git a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts
index 3f2b090821..050f3947d9 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts
+++ b/jarvis/ui/web/frontend/src/components/agentic/terminalThemes.ts
@@ -11,14 +11,16 @@ import type { ITheme } from "@xterm/xterm";
* ground: darker, more saturated hues, with the "bright" row kept genuinely
* distinguishable rather than lighter.
*
- * Both themes are checked against WCAG AA for body text (>= 4.5:1 against
- * their own background), which is the difference between a terminal you can
- * read for an hour and one you squint at.
+ * The xterm canvas itself stays transparent. The stable reading ground comes
+ * from the translucent pane shell below it, so the desktop artwork remains
+ * visible without stacking two dark fills into an effectively opaque panel.
*/
-/** Warm paper for light mode. Reads like an editor, not like a console. */
+const TRANSPARENT_TERMINAL_BACKGROUND = "rgba(0, 0, 0, 0)";
+
+/** Warm-paper contrast palette for light mode. */
export const LIGHT_TERMINAL_THEME: ITheme = {
- background: "#fcfbf8",
+ background: TRANSPARENT_TERMINAL_BACKGROUND,
foreground: "#2b2b33",
cursor: "#a86b00",
cursorAccent: "#fcfbf8",
@@ -43,14 +45,14 @@ export const LIGHT_TERMINAL_THEME: ITheme = {
};
/**
- * Deep slate — matches the app shell rather than being pure black.
+ * Deep-slate contrast palette for dark mode.
*
* This is what most people see: the panes follow the app's theme, and the app
- * defaults to dark (`hooks/useTheme`). Not pure black on purpose — a #000 pane
- * inside a #12141a shell reads as a hole punched in the window.
+ * defaults to dark (`hooks/useTheme`). The canvas stays clear; the translucent
+ * pane shell below it supplies the dark reading ground.
*/
export const DARK_TERMINAL_THEME: ITheme = {
- background: "#12141a",
+ background: TRANSPARENT_TERMINAL_BACKGROUND,
foreground: "#e8e8ec",
cursor: "#ffd60a",
cursorAccent: "#12141a",
@@ -80,8 +82,13 @@ export function themeFor(appearance: TerminalAppearance): ITheme {
return appearance === "dark" ? DARK_TERMINAL_THEME : LIGHT_TERMINAL_THEME;
}
-/** Chrome (pane frame) colours that go with each terminal theme. */
+/**
+ * Chrome (pane frame) colours that go with each terminal theme.
+ *
+ * These alphas mirror the shared section-panel glass tokens. Keeping the tint
+ * on this single layer lets xterm remain clear while preserving text contrast.
+ */
export const PANE_CHROME: Record<TerminalAppearance, { shell: string; border: string }> = {
- light: { shell: "#fcfbf8", border: "rgba(0,0,0,0.10)" },
- dark: { shell: "#12141a", border: "rgba(255,255,255,0.10)" },
+ light: { shell: "rgba(252, 251, 248, 0.68)", border: "rgba(0,0,0,0.10)" },
+ dark: { shell: "rgba(10, 10, 10, 0.58)", border: "rgba(255,255,255,0.10)" },
};
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
index 9de493ed88..12155466e5 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx
@@ -488,10 +488,11 @@ describe("Sidebar icon rail", () => {
renderSidebar(SIDEBAR_DEFAULT_WIDTH);
expect(screen.getByTestId("sidebar").dataset.railed).toBe("false");
- // The label is ON the row, which is the whole point of the wide layout.
- expect(
- screen.getByTestId("nav-row-agentic-ide").textContent?.trim(),
- ).not.toBe("");
+ // The label is ON the row, and names the workspace rather than carrying
+ // the retired generic "Chat" label shown in the product screenshot.
+ expect(screen.getByTestId("nav-row-agentic-ide").textContent).toContain(
+ "Agentic IDE",
+ );
});
test("drops to icons once dragged past the snap point", () => {
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
index 747b8a3776..bd3647e77d 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
@@ -151,16 +151,16 @@ const NAV_GROUPS: NavItem[][] = [
{ id: "socials", labelKey: "nav.socials", icon: Share2 },
{ id: "feedback", labelKey: "nav.feedback", icon: MessageSquareWarning },
],
- // 5) The coding chat — its own bottom group on purpose. It is not one more
+ // 5) The Agentic IDE — its own bottom group on purpose. It is not one more
// page among the tools above: opening it puts real coding agents to work in a
// folder and can narrow the assistant to that workspace, so it sits apart
// with its own divider rather than blending into the list.
[
{
id: "agentic-ide",
- labelKey: "nav.chat_workspace",
+ labelKey: "nav.agentic_ide",
icon: MessagesSquare,
- fallbackLabel: "Chat",
+ fallbackLabel: "Agentic IDE",
// The classic grid is the same destination as far as the row is
// concerned: someone who stepped back into it should still see where
// they are in the navigation.