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
fix(home): turn the binary cursor field off over the composer (#730)
Ruben Lütkee8001277da0c
diff --git a/jarvis/ui/web/frontend/src/components/home/BinaryCursorField.tsx b/jarvis/ui/web/frontend/src/components/home/BinaryCursorField.tsxindex 82a9c8d1bc..43d24ce0d4 100644--- a/jarvis/ui/web/frontend/src/components/home/BinaryCursorField.tsx+++ b/jarvis/ui/web/frontend/src/components/home/BinaryCursorField.tsx@@ -190,6 +190,12 @@ function mountField(const onMove = (e: PointerEvent) => {if (e.pointerType === "touch") return;+ // Over a marked control (the composer) the field steps aside, as if the+ // pointer had left the page: no new digits, the wake fades out.+ if (e.target instanceof Element && e.target.closest(`[${FIELD_OFF_ATTR}]`)) {+ pointer = null;+ return;+ }const rect = host.getBoundingClientRect();const x = e.clientX - rect.left;const y = e.clientY - rect.top;@@ -229,6 +235,9 @@ function mountField(};}+/** Put this attribute on an element to keep the field off while the pointer is over it. */+const FIELD_OFF_ATTR = "data-binary-field-off";+/** Grid pitch in CSS pixels. */const CELL = 14;/** Digit size; a little under the pitch so neighbours never touch. */diff --git a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsxindex fcdfe0f954..d96d57715e 100644--- a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx+++ b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx@@ -216,7 +216,10 @@ function ChatStageContent() {<Greeting /></div><div className="relative w-full max-w-[720px] px-6 pb-5 pt-2">- <AgentComposer autoFocus />+ {/* The digits make way while the pointer is on the composer. */}+ <div data-binary-field-off>+ <AgentComposer autoFocus />+ </div></div></div>);