claude-code-best/src/entrypoints
Bonerush 71c89e9de4 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
..
sdk chore: 添加脚本与构建配置更新 2026-04-22 22:38:10 +08:00
agentSdkTypes.js feat: 完成stub 2026-03-31 20:40:16 +08:00
agentSdkTypes.ts feat: 完成stub 2026-03-31 20:40:16 +08:00
cli.tsx feat: harden autonomy lifecycle, OOM bounds, and provider-boundary finalization 2026-04-29 14:04:27 +08:00
init.ts fix: theme switching always defaults to dark mode 2026-04-30 16:15:27 +08:00
mcp.ts feat: 完成一大波类型修复, 虽然 any 很多 2026-03-31 23:43:39 +08:00
sandboxTypes.ts feat: build 2026-03-31 19:22:47 +08:00