anomalyco / anomalyco/opencode
Web UI retains 40 full session transcripts
Open
@Brendonovich is already working on this.
Since Aug 29, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The web UI keeps message and part data for 40 recently opened sessions, while nearby-session prefetch keeps 10. In a Playwright run that visited 50 sessions, the page retained 134.4 MB of JS heap after GC. Limiting the same cache to 10 sessions retained 72.5 MB in the same run. This extra retained data increases memory use in long-lived web and desktop renderers.
Plugins
Not relevant
OpenCode version
1.18.25
Steps to reproduce
- Open the web UI.
- Visit 40 or more sessions.
- Force GC and inspect
Runtime.getHeapUsagewith CDP.
Screenshot and/or share link
Not available
Operating System
macOS 26.6
Terminal
Not relevant
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.