an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(ui): land fullscreen agent modal above the fullscreen view
Chaitanya Giridb46533c82bc
diff --git a/src/renderer/src/components/AddAgentModal.tsx b/src/renderer/src/components/AddAgentModal.tsxindex 3120b7bb..876732a6 100644--- a/src/renderer/src/components/AddAgentModal.tsx+++ b/src/renderer/src/components/AddAgentModal.tsx@@ -394,7 +394,11 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalposition: 'fixed', inset: 0,background: 'rgba(26, 19, 32, 0.6)',display: 'flex', alignItems: 'center', justifyContent: 'center',- zIndex: 100+ // Dialog tier (matches SettingsModal / QuitWarningModal at 300). Must sit+ // ABOVE FullscreenTerminal (250) and the fullscreen file/kanban overlays+ // (280): the "+ agent" button is reachable from fullscreen, so a lower+ // z-index made this modal open BEHIND the fullscreen view.+ zIndex: 300}}><div onClick={(e) => e.stopPropagation()} style={{ width: 940, maxWidth: '95vw' }}>diff --git a/src/renderer/src/components/FullscreenTerminal.tsx b/src/renderer/src/components/FullscreenTerminal.tsxindex 87f492ba..60350057 100644--- a/src/renderer/src/components/FullscreenTerminal.tsx+++ b/src/renderer/src/components/FullscreenTerminal.tsx@@ -23,10 +23,16 @@ export function FullscreenTerminal() {const agent = agents.find(a => a.id === fullscreenAgentId);const parser = usePtyParser(agent?.id ?? '__none__');- // Esc exits fullscreen+ // Esc exits fullscreen — but NOT while the Add-Agent modal is open over it.+ // That modal opens from the in-fullscreen "+ agent" button and now stacks+ // above this view (z 300 > 250); Esc should close the topmost layer (the+ // modal, via its backdrop/close per house convention) instead of yanking+ // fullscreen out from under it. Read addAgentOpen live so the listener stays+ // stable (no re-subscribe on every toggle).useEffect(() => {const onKey = (e: KeyboardEvent) => {if (e.key === 'Escape') {+ if (useStore.getState().addAgentOpen) return;e.preventDefault();setFullscreen(null);}