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: prevent agentic composer button overlap

Ruben Lütke90d60316a073
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx
index 5cd9b14508..3a3dacbed0 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx
@@ -1254,6 +1254,12 @@ describe("prompt bar seam", () => {
expect(screen.getByTestId("agentic-composer-collapsed")).toBeTruthy();
expect(screen.getByTestId("agentic-composer-reopen")).toBeTruthy();
expect(screen.getByTestId("pane-resizer-horizontal")).toBeTruthy();
+ expect(
+ screen
+ .getByLabelText("Instruction for Mika")
+ .closest('[aria-hidden="true"]')
+ ?.classList.contains("hidden"),
+ ).toBe(true);
});
it("dragging the seam to the bottom collapses an opened bar to a strip", () => {
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
index 1ca2ccfa89..1a2e53c484 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx
@@ -2465,7 +2465,8 @@ export function AgenticGrid({
void attach({ paths: [], files: images });
}}
className={cn(
- "relative flex shrink-0 flex-col overflow-hidden px-3 py-2 transition-colors",
+ "relative shrink-0 flex-col overflow-hidden px-3 py-2 transition-colors",
+ composerCollapsed ? "hidden" : "flex",
dragging && "bg-primary/5 ring-1 ring-inset ring-primary/50",
)}
>