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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat: keep navigation rail visible
rubenluetke10-beepe29022714bba
diff --git a/jarvis/ui/web/frontend/src/App.detached.test.tsx b/jarvis/ui/web/frontend/src/App.detached.test.tsxindex 13bd822509..03280d1f91 100644--- a/jarvis/ui/web/frontend/src/App.detached.test.tsx+++ b/jarvis/ui/web/frontend/src/App.detached.test.tsx@@ -62,7 +62,6 @@ beforeEach(() => {vi.stubGlobal("fetch", vi.fn().mockResolvedValue({ ok: false }));useEventStore.setState({activeSection: "chats",- navRevealed: false,solo: false,detachedViews: [],});@@ -86,7 +85,6 @@ describe("App shell around detached coding views", () => {it("keeps the sidebar reachable in the main window", () => {useEventStore.setState({activeSection: "agentic-ide",- navRevealed: false,detachedViews: ["agentic-ide"],});@@ -96,16 +94,16 @@ describe("App shell around detached coding views", () => {expect(screen.getByTestId("sidebar-resizer")).toBeTruthy();});- it("hides the sidebar but keeps the shared ground for an attached coding workspace", () => {+ it("keeps the navigation rail visible in an attached coding workspace", () => {useEventStore.setState({activeSection: "agentic-ide",- navRevealed: false,detachedViews: [],});render(<App />);- expect(screen.queryByTestId("sidebar")).toBeNull();+ expect(screen.getByTestId("sidebar")).toBeTruthy();+ expect(screen.getByTestId("sidebar-resizer")).toBeTruthy();expect(screen.getByTestId("jarvis-desktop-wallpaper")).toBeTruthy();expect(screen.getByTestId("main-view").parentElement?.classList.contains("jarvis-section-stage"),diff --git a/jarvis/ui/web/frontend/src/App.tsx b/jarvis/ui/web/frontend/src/App.tsxindex e1442a93d2..e56f01b816 100644--- a/jarvis/ui/web/frontend/src/App.tsx+++ b/jarvis/ui/web/frontend/src/App.tsx@@ -32,15 +32,6 @@ import jarvisDesktopWallpaper from "@/assets/jarvis-desktop-wallpaper.webp";/** Where the collapsed/expanded choice for the nav sidebar is remembered. */const NAV_COLLAPSED_KEY = "jarvis.sidebar.collapsed.v1";-/**- * The sections that open without the app's module rail.- *- * These screens are focused workspaces, so navigation steps aside. The shared- * wallpaper remains the product ground while terminal panes keep the opaque- * surfaces their output needs.- */-const CODING_SECTIONS = new Set(["agentic-ide", "chat-workspace", "agentic-ide-classic"]);-/*** The shared visual ground for every app section.*@@ -188,30 +179,9 @@ export default function App() {[navCollapsed, sidebar],);- /*- * On a coding surface the rail is gone until it is asked for.- *- * Not merely narrower — absent, along with the seam beside it. The button- * that brings it back sits inside the coding surface itself (see- * `NavRevealButton`), where the eye already is; parking it on the app chrome- * would mean looking away from the work to find the way back to it.- */const activeSection = useEventStore((s) => s.activeSection);- const navRevealed = useEventStore((s) => s.navRevealed);const solo = useEventStore((s) => s.solo);const detachedViews = useEventStore((s) => s.detachedViews);- /*- * A detached IDE leaves a placeholder in the main window, not a coding- * surface. The actual IDE normally carries its own menu-reveal control, but- * it is deliberately unmounted while detached to protect the PTY streams.- * Treating the placeholder like the IDE therefore hid the only navigation- * with no control left to bring it back. Give that state the regular shell- * so every other section remains reachable while the IDE stays detached.- */- const codingDetached =- !solo && detachedViews.some((view) => CODING_SECTIONS.has(view));- const codingSurface = CODING_SECTIONS.has(activeSection) && !codingDetached;- const railHidden = codingSurface && !navRevealed;/** The realtime broker must exist exactly ONCE across all windows: it@@ -255,24 +225,20 @@ export default function App() {{brokerMounted && <SubscriptionRealtimeTransportBroker />}<DesktopWallpaper />- {!railHidden && (- <>- <Sidebar- width={sidebar.size}- collapsed={navCollapsed}- onToggleCollapsed={toggleNav}- />+ <Sidebar+ width={sidebar.size}+ collapsed={navCollapsed}+ onToggleCollapsed={toggleNav}+ />- <PaneResizer- orientation="vertical"- onPointerDown={startSidebarResize}- onDoubleClick={sidebar.reset}- onNudge={sidebar.nudge}- active={sidebar.isResizing}- title="Drag to resize the sidebar — double-click to reset"- />- </>- )}+ <PaneResizer+ orientation="vertical"+ onPointerDown={startSidebarResize}+ onDoubleClick={sidebar.reset}+ onNudge={sidebar.nudge}+ active={sidebar.isResizing}+ title="Drag to resize the sidebar — double-click to reset"+ /><main className="relative z-10 flex min-w-0 flex-1 flex-col">{/* App-wide macOS permission alert — topmost so a missing grant isdiff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsxindex 5fe549ec1d..838d00b1ab 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx@@ -71,7 +71,6 @@ import { ContinueInterrupted } from "./ContinueInterrupted";import { DeckStage, type DeckAgent } from "./deck/DeckStage";import type { CardState } from "./deck/AgentCard";import { useDeckQueue } from "./deck/useDeckQueue";-import { NavRevealButton } from "@/components/layout/NavRevealButton";import { PaneNotifications } from "./PaneNotifications";import { isVoiceActive } from "./VoiceBubble";import { PromptPreview } from "./PromptPreview";@@ -2253,12 +2252,6 @@ export function AgenticGrid({data-testid="agentic-toolbar"className="flex shrink-0 flex-nowrap items-center gap-2 border-b border-border px-2 py-1">- {/* This section hides the app's module rail (see `CODING_SECTIONS` in- App.tsx), so the way back has to be ON this row — otherwise the- workspace is a place you can enter and not leave. First in the line,- where every editor puts it. */}- <NavRevealButton />-{workspaceBar ?? (<div className="flex min-w-0 flex-1 items-center gap-2"><FolderGit2 className="h-4 w-4 shrink-0 text-primary" />@@ -2547,15 +2540,13 @@ export function AgenticGrid({)}>{/*- The column's own head: the way back to the app, and its name.+ The column's own head and name.Not "AGENTS" in small caps any more. This column lists theconversations you are having, grouped by the folder they are in —- "Chat" is what that is, and the panel glyph beside it is where the- app's navigation went (this section hides it, see App.tsx).+ "Chat" is what that is.*/}<div className="flex h-11 shrink-0 items-center gap-1 px-2">- <NavRevealButton /><span className="flex-1 truncate px-1 text-sm font-semibold tracking-tight">Chat</span>diff --git a/jarvis/ui/web/frontend/src/components/layout/NavRevealButton.tsx b/jarvis/ui/web/frontend/src/components/layout/NavRevealButton.tsxdeleted file mode 100644index 92c7688a98..0000000000--- a/jarvis/ui/web/frontend/src/components/layout/NavRevealButton.tsx+++ /dev/null@@ -1,50 +0,0 @@-/**- * The way back to the app, from a surface that hid it.- *- * The coding sections open without the module rail (see `CODING_SECTIONS` in- * `App.tsx`) — so something on those screens has to say where it went. This is- * that something: the panel glyph every editor uses for exactly this, in the- * top-left corner where exactly this button lives in every editor. Familiar- * shape, familiar place, one click each way.- *- * It renders only where the rail is actually hidden. On a screen that has its- * navigation it would be a button that toggles something already visible, which- * is how a control stops meaning anything.- */-import { PanelLeft, PanelLeftClose } from "lucide-react";--import { useEventStore } from "@/store/events";-import { cn } from "@/lib/utils";--export interface NavRevealButtonProps {- className?: string;-}--export function NavRevealButton({ className }: NavRevealButtonProps) {- const revealed = useEventStore((s) => s.navRevealed);- const setRevealed = useEventStore((s) => s.setNavRevealed);- const label = revealed ? "Hide the app menu" : "Show the app menu";-- return (- <button- type="button"- data-testid="nav-reveal"- onClick={() => setRevealed(!revealed)}- title={label}- aria-label={label}- aria-expanded={revealed}- className={cn(- "flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-muted-foreground",- "transition-colors hover:bg-foreground/[0.06] hover:text-foreground",- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",- className,- )}- >- {revealed ? (- <PanelLeftClose className="h-4 w-4" aria-hidden />- ) : (- <PanelLeft className="h-4 w-4" aria-hidden />- )}- </button>- );-}diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsxindex d6b27c1829..9de493ed88 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.test.tsx@@ -529,6 +529,16 @@ describe("Sidebar icon rail", () => {expect(useEventStore.getState().activeSection).toBe("agentic-ide");});+ test("keeps the rail canvas transparent and the active control glassy", () => {+ renderSidebar(SIDEBAR_RAIL_WIDTH);++ const sidebar = screen.getByTestId("sidebar");+ expect(sidebar.querySelector(".jarvis-shell-surface")).toBeNull();+ expect(screen.getByTestId("nav-row-chats").classList).toContain(+ "jarvis-message-surface",+ );+ });+test("keeps the wake-word hint and realtime control off the rail", () => {// Both are label-shaped controls that cannot say anything useful in 64 px.// They step aside rather than being clipped into unreadable stubs.diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsxindex 23709aa0fb..747b8a3776 100644--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx@@ -348,29 +348,6 @@ export function Sidebar({data-railed={railed ? "true" : "false"}className="relative isolate flex h-full shrink-0 flex-col">- {/*- The frosted backing, as a SEPARATE non-scrolling layer.-- It used to be `bg-card/40 backdrop-blur` on this <aside> itself — which- made the element carrying `backdrop-filter` the ancestor of the- scrolling <nav> below. WebKit composites such an element from a backdrop- snapshot that it does NOT reliably invalidate when a descendant scrolls,- so on macOS the sidebar kept PAINTING the rows at their old offsets- while hit-testing them at the new ones: the pointer sat on one entry and- the click landed on another a couple of rows up, worst at the top of the- list and correct again at the bottom, until something forced a full- repaint. Chromium (the Windows WebView2) composites this case eagerly,- which is why it only ever showed up on a Mac.-- Splitting the blur out fixes the cause rather than the symptom: nothing- that scrolls lives inside a backdrop-filtered element any more. The- layer is `-z-10` inside an `isolate` stacking context, so it paints- behind the rows and cannot swallow their clicks.- */}- <div- aria-hidden- className="jarvis-shell-surface pointer-events-none absolute inset-0 -z-10 backdrop-blur-md"- /><div className={cn("border-b border-border", railed ? "px-2 py-3" : "px-4 py-4")}><divclassName={cn(@@ -446,7 +423,7 @@ export function Sidebar({aria-label={railed ? t("sidebar.expand") : t("sidebar.collapse")}className={cn("flex shrink-0 items-center justify-center rounded-md text-muted-foreground",- "transition-colors hover:bg-accent/60 hover:text-foreground",+ "transition-colors hover:bg-background/20 hover:text-foreground","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",railed ? "h-7 w-7" : "-mr-1 h-7 w-7",)}@@ -461,7 +438,7 @@ export function Sidebar({</div>{!railed && (<>- <div className="mt-3 min-h-[20px] rounded-md bg-background/40 px-2 py-1.5 text-xs text-muted-foreground">+ <div className="jarvis-input-surface mt-3 min-h-[20px] rounded-md px-2 py-1.5 text-xs text-muted-foreground">{transcription ? (<spanclassName={cn(@@ -537,7 +514,7 @@ export function Sidebar({type="button"onClick={() => setActive("apikeys")}className={cn(- "group flex w-full items-center rounded-lg border border-border bg-background/40 text-left transition-colors hover:border-primary/40 hover:bg-background/60",+ "jarvis-message-surface group flex w-full items-center rounded-lg border border-border text-left transition-colors hover:border-primary/40",railed ? "justify-center px-2 py-2" : "gap-3 px-3 py-2",)}// On the rail the card shrinks to its status dot, so everything it@@ -634,9 +611,9 @@ function NavRow({className={cn("group relative flex w-full items-center rounded-lg text-sm transition-all",railed ? "justify-center px-0 py-2" : "gap-3 px-3 py-2",- "hover:bg-background/60",+ "hover:bg-background/20",active- ? "bg-background text-foreground shadow-[inset_2px_0_0_hsl(var(--primary))]"+ ? "jarvis-message-surface text-foreground shadow-[inset_2px_0_0_hsl(var(--primary))]": "text-muted-foreground hover:text-foreground",)}>diff --git a/jarvis/ui/web/frontend/src/store/events.ts b/jarvis/ui/web/frontend/src/store/events.tsindex 7fcbc1b5f1..bb73709a61 100644--- a/jarvis/ui/web/frontend/src/store/events.ts+++ b/jarvis/ui/web/frontend/src/store/events.ts@@ -306,19 +306,6 @@ interface EventStore {// first paint after a restart never flashes "OFFLINE".wsWarming: boolean;activeSection: SectionId;- /**- * Has the user pulled the app's module rail back out over a coding surface?- *- * The coding sections open WITHOUT it — a wall of agent output is what those- * screens are for, and a column of twenty section icons beside it is the app- * talking about itself. One button brings it back, and leaving the section- * puts it away again, so "open the chat and the rail is gone" stays true- * every time rather than only the first time.- *- * Shell state kept in the store rather than in `App` because the button that- * flips it lives inside the coding surface, several lazy boundaries down.- */- navRevealed: boolean;/*** True when this document is a detached solo window (`?solo=1`): it renders* exactly one section with no app chrome and must ignore cross-window@@ -404,7 +391,6 @@ interface EventStore {setWarming: (warming: boolean) => void;clearEvents: () => void;setActiveSection: (s: SectionId) => void;- setNavRevealed: (revealed: boolean) => void;setDetachedViews: (views: SectionId[]) => void;setTranscription: (text: string, isFinal: boolean) => void;pushToast: (@@ -477,7 +463,6 @@ export const useEventStore = create<EventStore>((set, get) => ({activeSection: initialSectionFromSearch(typeof window === "undefined" ? "" : window.location.search,),- navRevealed: false,solo: soloWindowFromSearch(typeof window === "undefined" ? "" : window.location.search,),@@ -517,10 +502,7 @@ export const useEventStore = create<EventStore>((set, get) => ({setConnected: (c) => set({ connected: c }),setWarming: (warming) => set({ wsWarming: warming }),clearEvents: () => set({ events: [] }),- // Leaving a section puts the rail away again, so a coding surface is entered- // without it EVERY time rather than only the first time.- setActiveSection: (s) => set({ activeSection: s, navRevealed: false }),- setNavRevealed: (revealed) => set({ navRevealed: revealed }),+ setActiveSection: (s) => set({ activeSection: s }),setDetachedViews: (views) => set({ detachedViews: views }),setTranscription: (text, isFinal) =>diff --git a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsxindex b09d10e606..58095a0e9f 100644--- a/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx+++ b/jarvis/ui/web/frontend/src/views/AgenticIdeView.tsx@@ -40,7 +40,6 @@ import {fetchAgentAccounts,groupFor,} from "@/lib/agentAccountsApi";-import { NavRevealButton } from "@/components/layout/NavRevealButton";import { openScratchProject } from "@/lib/chatLibraryApi";import { TopBarActions } from "@/components/layout/TopBar";import { WorkspaceBar } from "@/components/agentic/WorkspaceBar";@@ -883,12 +882,6 @@ export function AgenticIdeView({ onScreen = true }: AgenticIdeViewProps) {// ---------------------------------------------------------------- launcherreturn (<div className="flex h-full min-h-0 flex-col" ref={shellRef}>- {/* The grid puts this in its own toolbar; the launcher has no such row,- and this section hides the app's module rail — so without it the- screen a user lands on with nothing open has no way back to the app. */}- <div className="flex shrink-0 items-center px-2 pt-2">- <NavRevealButton />- </div>{renderBar(false)}<div className="min-h-0 flex-1"><WorkspaceLauncher