claude-code-best/packages/@ant/ink/src
Bonerush 78c70308cd fix: theme switching always defaults to dark mode
Root causes:
1. ThemeProvider was imported but never used in App.tsx and showSetupDialog
2. setThemeConfigCallbacks was never called to inject persistence callbacks
3. Preview/save/cancel theme lifecycle had no provider to coordinate

Changes:
- Export setThemeConfigCallbacks from @anthropic/ink
- Wrap App.tsx children with ThemeProvider (initialState from config, onThemeSave persists)
- Wrap showSetupDialog with ThemeProvider for onboarding/trust dialogs
- Call setThemeConfigCallbacks in init.ts to register load/save callbacks
- Update SnapshotUpdateDialog test to account for new ThemeProvider wrapper

Fixes #theme-switching
2026-04-30 16:15:27 +08:00
..
components fix: 修复 Windows Node.js 构建产物因 stdin.ref() 泄漏导致进程挂起 (#353) 2026-04-24 21:16:15 +08:00
core feat: 远程群控 (#243) 2026-04-11 23:22:55 +08:00
hooks fix(types): clean type fixes across 92 files 2026-04-09 23:45:56 +08:00
keybindings fix(types): clean type fixes across 92 files 2026-04-09 23:45:56 +08:00
theme feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
types Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
utils Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
index.ts fix: theme switching always defaults to dark mode 2026-04-30 16:15:27 +08:00