Commit Graph

2 Commits

Author SHA1 Message Date
TheArchitectit 8beb1b8614 fix(team): read provider().model() not feature model for sub-agent default
load_main_model_from_config() read config.model() — the feature-config
model from settings.json (e.g. 'openai/glm-5.1-fast') — instead of
config.provider().model() — the /setup-saved active provider model
(e.g. 'custom/openclaw'). The latter is what the main session actually
connects with and what the status bar shows. Sub-agents inherited the
wrong model, which might not exist on the custom endpoint.

Fix: use config.provider().model() so sub-agents default to the same
provider that the user's main session is connected to.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-17 13:09:06 -05:00
Claude e68a80b418 feat(tui): Sprint 3 — theme system with 11 built-in themes
- Create src/theme.rs with TuiTheme struct (40+ color roles per theme)
- ColorDef enum: Named/Ansi256/Rgb with serde support
- 11 built-in themes: default, tokyonight, catppuccin-mocha, catppuccin-latte,
  nord, gruvbox, dracula, solarized-dark, solarized-light, monokai, system
- Theme integrated into TuiApp (tc() helper, set_theme() method)
- Dashboard rendering now uses theme colors (all Color::White/Gray/etc replaced)
- Input area uses theme colors (border, fg, cursor)
- JSON serialization/deserialization for custom themes
- 8 new tests: all builtins, ColorDef variants, JSON round-trip
- 248 unit tests pass

Sprint 3 of 7.

Authored by TheArchitectit
2026-06-11 19:08:30 -05:00