update plugin themes when plugin was updated (#20052)

This commit is contained in:
Sebastian
2026-03-30 13:51:07 +02:00
committed by GitHub
parent 3c32013eb1
commit 8e4bab5181
6 changed files with 237 additions and 38 deletions

View File

@@ -269,7 +269,9 @@ Theme install behavior:
- Relative theme paths are resolved from the plugin root.
- Theme name is the JSON basename.
- Install is skipped if that theme name already exists.
- First install writes only when the destination file is missing.
- If the theme name already exists, install is skipped unless plugin metadata state is `updated`.
- On `updated`, host only rewrites themes previously tracked for that plugin and only when source `mtime`/`size` changed.
- Local plugins persist installed themes under the local `.opencode/themes` area near the plugin config source.
- Global plugins persist installed themes under the global `themes` dir.
- Invalid or unreadable theme files are ignored.