You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e0e0708
Browse filesBrowse the repository at this point in the historyBrowse files
fix: resume live wallpapers and simplify lifecycle code (#8)
* fix: recover live wallpaper playback and simplify lifecycle code
* Update README
* chore: prepare v0.3.1 and verify watcher recovery in Node
* test: use a deterministic video fixture in browser checks
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
## 0.3.1
4
+
5
+
- Resume videos and restart HTML wallpapers after focus or visibility interruptions without changing the selected wallpaper. HTML simulation state resets on recovery; sandbox restrictions stay unchanged.
6
+
- Fix a catalog refresh-completion race and simplify thumbnail ownership, header alignment, gallery controls and styles.
7
+
- Consolidate overlapping tests and verify folder deletion/recreation under Desktop's Node runtime, including direct folders, aliases and atomic replacements.
8
+
3
9
## 0.3.0
4
10
5
11
- Add muted, looping MP4 and WebM wallpapers, animated GIF and APNG uploads, and self-contained HTML wallpapers.
<p>Use your own wallpapers in OpenCode Desktop. Supports OpenCode 2.2.x from 2.2.6, 2.3.x from 2.3.2, and 2.4.x from 2.4.3 through the GUI plugin API.</p>
This installs the plugin globally. Alternatively, add it to your global `opencode.json` or `opencode.jsonc`, keeping any existing plugins. Do not add it to `cli.json`.
Images and HTML (WebGL self-contained animated wallpapers) must be non-empty and no larger than 8 MiB and videos can be up to 256 MiB.
22
26
23
27
1. Open **Settings > Wallpapers**.
24
28
2. Choose **Change folder** to use a local folder, or **+** to upload an image.
25
29
3. Select a wallpaper and adjust tint, brightness and fit.
26
30
27
-
Wallpaper starts off with an empty gallery. Wallpapers and preferences stay local and are not sent to models. Images and HTML must be non-empty and no larger than 8 MiB; videos can be up to 256 MiB.
28
-
29
-
- Folders support PNG, JPEG, WebP, SVG, GIF, APNG, MP4, WebM, and self-contained HTML, including subfolders. Changes appear automatically.
30
-
- Uploads support PNG, JPEG, WebP, GIF and APNG. Add video and HTML through the wallpaper folder.
31
-
- Videos play muted and loop continuously. MP4 with H.264 is recommended; other codecs depend on Desktop support. Animated images keep their original animation.
32
-
- HTML wallpapers run in a sandbox without access to the OpenCode interface or local storage. CSP blocks external scripts, styles, assets, and fetch requests. Embed everything in the HTML and use files from sources you trust. This is not a network firewall; a script can still navigate its own frame to another URL.
33
-
- Filter the gallery by **All wallpapers**, **Static**, or **Live**. Live tiles have a small play icon beside their name. Hover or keyboard-focus a live tile to preview it without changing your selected wallpaper.
34
-
- Videos and animated images show static thumbnail frames until previewed. For an HTML poster, put `Name.poster.png`, `.jpg`, `.jpeg`, or `.webp` beside `Name.html`. Poster files stay out of the gallery. Without a poster, HTML tiles show a live-wallpaper label until previewed.
35
-
- The gallery shows at most two rows, including the **+** tile. Use **Show more** to see all wallpapers, or **Show less** to collapse it.
36
-
- More tint improves text contrast. **Fill background** crops the image; **Show whole image** keeps it fully visible.
37
-
- Use `/wallpaper` in chat to switch images or turn wallpaper off. Escape cancels the picker.
38
-
- Turn **Show wallpaper** off to restore the app's backgrounds without losing your choices.
39
-
- Turn **Wallpaper slideshow** on to cycle through all wallpapers in gallery order, regardless of the gallery filter. Choose **None** or **Fade** and set **Display time** in seconds, from 5 to 86400. The default is 60 seconds. Slideshow needs at least two wallpapers. Fades apply between images and respect reduced-motion settings; video and HTML switch instantly. Live playback itself does not pause under reduced motion.
40
-
41
-
To remove an upload, hover or focus its tile and click **X**. Remove folder wallpapers by moving or deleting their source files.
42
-
43
-
## Koi Pond example
44
-
45
-
[Koi Pond](https://github.com/Himanshu-Sangshetti/koipond) is a live WebGL wallpaper, not a video. Download `koipond-linux.tar.gz` from its [wallpaper release](https://github.com/Himanshu-Sangshetti/koipond/releases/tag/wallpaper-v0.2.0), extract `web/index.html`, and save it in your wallpaper folder as `Koi Pond.html`. No installer is needed. Select it in **Settings > Wallpapers**.
46
-
47
-
Save the repo's [poster image](https://raw.githubusercontent.com/Himanshu-Sangshetti/koipond/main/.github/assets/hero.webp) beside it as `Koi Pond.poster.webp` to show the pond before hovering.
48
-
49
-
Other HTML animations work the same way when bundled into one file. The wallpaper cannot intercept clicks or read the OpenCode interface. HTML fills the panel; the fit setting applies to images and videos.
31
+
## Features
32
+
1. Use `/wallpaper` in chat to switch images or turn wallpaper off.
33
+
2. Folders support PNG, JPEG, WebP, SVG, GIF, APNG, MP4, WebM, and self-contained HTML, including subfolders.
34
+
3. Uploads support PNG, JPEG, WebP, GIF and APNG. Add video and HTML through the wallpaper folder.
35
+
4. Videos play muted and loop continuously. MP4 with H.264 is recommended; other codecs depend on Desktop support.
36
+
5. HTML wallpapers run in a sandbox without access to the OpenCode interface or local storage. <i>(CSP blocks external scripts, styles, assets, and fetch requests. Add only from trusted sources.)</i>
37
+
6. Turn **Wallpaper slideshow** on to cycle through all wallpapers in gallery order, regardless of the gallery filter.
38
+
7. Choose **Fade** and set **Display time** in seconds, from 5 to 86400. The default is 60 seconds.
50
39
51
40
## Optional folder configuration
52
41
@@ -57,7 +46,7 @@ You can set an initial folder with an absolute path instead of choosing one in S
@@ -68,15 +57,9 @@ The folder chosen in Settings takes precedence over this option.
68
57
69
58
## Development
70
59
71
-
Use Bun 1.4.4, as pinned in `package.json`, so the generated bundle matches CI.
60
+
Use Bun 1.4.4, as pinned in `package.json`.
72
61
73
62
```sh
74
63
bun run check
75
64
bun run test:storage /path/to/opencode
76
65
```
77
-
78
-
`check` rebuilds the GUI bundle and runs unit, native Node filesystem-watcher, headless Chrome, and package checks. Set `CHROME_BIN` to a Chrome or Chromium executable if it is installed elsewhere. The PR workflow runs these checks and rejects a stale committed bundle. `test:storage` checks migration against an OpenCode checkout's actual persistence decoder. Pass the checkout path or set `OPENCODE_CHECKOUT`.
79
-
80
-
## Release
81
-
82
-
See [CHANGELOG.md](CHANGELOG.md) for the 0.3.0 release notes. Before tagging `v0.3.0`, run `bun install --frozen-lockfile --ignore-scripts` and `bun run check`, then commit the rebuilt `dist/gui-experimental.cjs` with the source changes. Run the host-storage check against a supported OpenCode checkout and smoke-test the installed package in Desktop. Keep the local `showcase/` captures and artwork out of this PR.
0 commit comments