feat(coding-agent): add per-run theme selection (#7722)

- add `--use-theme` for fixed and terminal-aware theme pairs
- keep invocation state non-persistent until an explicit selection
- preserve active themes across previews, reloads, and HTML exports
This commit is contained in:
Ramiz Wachtler 2026-08-12 16:25:38 +02:00 • committed by GitHub
parent 541045ae0e
commit 9795d60230
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 232 additions and 24 deletions

View file

@ -39,6 +39,23 @@ Select a theme via `/settings` or in `settings.json`:
On first run, pi detects your terminal background and defaults to `dark` or `light`.
### Initial Theme
Start an interactive run with a theme without changing the saved setting:
```bash
pi --use-theme light
```
To follow terminal appearance, use `lightTheme/darkTheme` syntax:
```bash
pi --use-theme light/dark
```
The CLI value is the initial theme for that run. Choosing another theme later in `/settings` applies it immediately
and saves it normally.
## Creating a Custom Theme
1. Create a theme file: