Description
When using opencode web or accessing app.opencode.ai, the app does full redownloads on every page reload. On mobile, phone lock/unlock also triggers a complete redownload. This wastes mobile data and causes slow startup.
Root cause: PWA has a manifest and icons but is missing the service worker for caching assets.
Current state:
| Component |
Status |
site.webmanifest |
✅ Exists with icons |
| PWA installable |
✅ Works |
| Service worker |
❌ Missing |
| Asset caching |
❌ Broken |
Steps to reproduce
- Run
opencode web or visit app.opencode.ai
- Open browser DevTools → Network tab
- Reload the page
- Observe: All assets re-downloaded from network (no cache hits)
Expected: Assets should be cached and served from service worker on reload.
Operating System
- macOS / Linux / Windows
- Mobile (iOS Safari / Android Chrome)
Proposed Fix
Add vite-plugin-pwa to packages/app with runtime caching for hashed assets.
Description
When using
opencode webor accessingapp.opencode.ai, the app does full redownloads on every page reload. On mobile, phone lock/unlock also triggers a complete redownload. This wastes mobile data and causes slow startup.Root cause: PWA has a manifest and icons but is missing the service worker for caching assets.
Current state:
site.webmanifestSteps to reproduce
opencode webor visitapp.opencode.aiExpected: Assets should be cached and served from service worker on reload.
Operating System
Proposed Fix
Add
vite-plugin-pwatopackages/appwith runtime caching for hashed assets.