feat(coding-agent): auto-switch dark/light theme via SIGWINCH

Replace single `theme` setting with `theme.dark` and `theme.light`.
Auto-detection is always on — COLORFGBG determines which slot to use.
On SIGWINCH, re-check COLORFGBG and switch themes if background changed.
Old `theme` setting auto-migrated using luminance detection.

Fixes #65
This commit is contained in:
can1357
2026-02-15 10:20:11 +01:00
parent 918bf9b043
commit a155d98f9f
13 changed files with 200 additions and 39 deletions
@@ -12,7 +12,7 @@ import { sleep } from "bun";
// Initialize dark theme with full color support
Bun.env.COLORTERM = "truecolor";
initTheme("dark");
initTheme();
async function main() {
// Load the real fixture that caused the bug