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): a closed-over diff no longer paints over the next file

rubenluetke10-beep331aaa0f964c
diff --git a/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx b/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx
index df30c2eba2..1cedb572a8 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/editor/EditorSurface.tsx
@@ -254,10 +254,13 @@ export default function EditorSurface({
return (
<div className="relative h-full min-h-0 w-full" data-testid="code-editor-surface" data-language={languageFor(tab.path)}>
<div ref={codeHost} onContextMenu={keepContextMenu} className={cn("absolute inset-0", !showCode && "invisible")} />
+ {/* `hidden`, not `invisible`: Monaco's diff widget writes an inline
+ `visibility: visible` on both of its halves, which overrides a hidden
+ parent — the last diff then stayed painted over the next edit tab. */}
<div
ref={diffHost}
onContextMenu={keepContextMenu}
- className={cn("absolute inset-0", tab.mode !== "diff" && "invisible", !ready && "invisible")}
+ className={cn("absolute inset-0", (tab.mode !== "diff" || !ready) && "hidden")}
/>
{overlay && <div className="absolute inset-0 bg-background">{overlay}</div>}
</div>