The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): stop the agent terminal falling back to a white background
Brooklyn Nicholson6f756272f8e2
diff --git a/apps/desktop/src/app/right-sidebar/terminal/use-agent-terminal.ts b/apps/desktop/src/app/right-sidebar/terminal/use-agent-terminal.tsindex a8d92d9e36e..f87840e95cc 100644--- a/apps/desktop/src/app/right-sidebar/terminal/use-agent-terminal.ts+++ b/apps/desktop/src/app/right-sidebar/terminal/use-agent-terminal.ts@@ -26,9 +26,13 @@ export function useAgentTerminal({ active, id, procId }: { active: boolean; id:const surfaceTheme = () => {const ansi = renderedMode === 'dark' ? (theme.darkTerminal ?? theme.terminal) : theme.terminal- const surface = resolveSurfaceColor('#ffffff')+ const base = terminalTheme(renderedMode, ansi)+ // Fall back to the palette's own background, not white — a hardcoded+ // '#ffffff' flashes a white slab in dark mode whenever the probe can't read+ // the token (pre-paint mount). Same contract as the user terminal.+ const surface = resolveSurfaceColor(base.background ?? '#ffffff')- return { ...terminalTheme(renderedMode, ansi), background: surface, cursorAccent: surface }+ return { ...base, background: surface, cursorAccent: surface }}// eslint-disable-next-line no-restricted-syntax -- legitimate non-atom ref write (see eslint rule comment)