The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
style(desktop): blank line before repaint try in webgl context-loss handlers
Brooklyn Nicholson7c47cb4c5425
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 66994a7065c..7b6f68509da 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@@ -139,6 +139,7 @@ export function useAgentTerminal({ active, id, procId }: { active: boolean; id:webgl.onContextLoss(() => {webgl.dispose()webglRef.current = null+// Same as the user terminal: repaint the buffered rows with the DOM// renderer so the viewport doesn't stay black after a context loss.try {diff --git a/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.ts b/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.tsindex c695f024a2e..701c7e947a9 100644--- a/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.ts+++ b/apps/desktop/src/app/right-sidebar/terminal/use-terminal-session.ts@@ -963,6 +963,7 @@ export function useTerminalSession({webgl.onContextLoss(() => {webgl.dispose()webglRef.current = null+// The DOM renderer takes over, but the lost WebGL frame can leave// the viewport black while the buffer stays intact: force a fit +// full-row repaint so the buffered output shows again (#98273).