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(terminal): enforce minimumContrastRatio so text stays legible on coloured backgrounds
Chaitanya Giri547304ba641c
diff --git a/src/renderer/src/components/terminalPool.ts b/src/renderer/src/components/terminalPool.tsindex 2c7b4666..8f9e4602 100644--- a/src/renderer/src/components/terminalPool.ts+++ b/src/renderer/src/components/terminalPool.ts@@ -54,6 +54,15 @@ export function acquireTerminal(ptyId: string, theme?: ThemeMap, fontSize = 14):cursorBlink: true,cursorStyle: 'block',scrollback: 10000,+ // Guarantee legible text no matter what colors a running program sets.+ // When a program paints a coloured cell background (e.g. a git-diff add line+ // with a green bg, or a yellow-highlighted line) while leaving the default+ // foreground, the theme's dark ink would otherwise render dark-on-colour and+ // be unreadable on the light/cream theme. xterm auto-adjusts the foreground+ // per cell to keep at least this contrast ratio (WCAG AA = 4.5) against the+ // actual background — so it also rescues low-contrast coloured *text* on the+ // cream paper. Untouched for already-high-contrast cells (the dark theme).+ minimumContrastRatio: 4.5,allowProposedApi: true});const fit = new FitAddon();