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(threads): keep the conversation clear of the composer after a draft's first send
rubenluetke10-beepab502ba45b67
diff --git a/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadView.tsx b/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadView.tsxindex 0af2d75986..e0db61dff8 100644--- a/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadView.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadView.tsx@@ -41,7 +41,6 @@ export function ThreadView({ onScreen }: { onScreen: boolean }) {const [base, setBase] = useState("");const [projectMenu, setProjectMenu] = useState(false);const [composerHeight, setComposerHeight] = useState(160);- const composerBox = useRef<HTMLDivElement | null>(null);// The sub-agent whose conversation shows instead of the main thread's, by its spawn call.const [openAgent, setOpenAgent] = useState<string | null>(null);// Sub-agents the CLI filed on its own (Codex), read for the open thread.@@ -124,13 +123,19 @@ export function ThreadView({ onScreen }: { onScreen: boolean }) {if (row && onScreen) useIdeThreadsStore.getState().markSeen(row.session_id, row.updated_ms);}, [sessions, selection.sessionId, onScreen]);- // How tall the composer is, so the conversation scrolls clear of it.- useEffect(() => {- const box = composerBox.current;- if (!box || typeof ResizeObserver === "undefined") return;+ // How tall the composer is, so the conversation scrolls clear of it. The+ // box only exists once the thread has messages — a draft's first send+ // mounts it later — so it is measured whenever it attaches, not on mount.+ const composerObserver = useRef<ResizeObserver | null>(null);+ const composerBox = useCallback((box: HTMLDivElement | null) => {+ composerObserver.current?.disconnect();+ composerObserver.current = null;+ if (!box) return;+ setComposerHeight(box.offsetHeight);+ if (typeof ResizeObserver === "undefined") return;const observer = new ResizeObserver(() => setComposerHeight(box.offsetHeight));observer.observe(box);- return () => observer.disconnect();+ composerObserver.current = observer;}, []);const prepareDraft = useCallback(async (): Promise<string | null> => {