anomalyco / anomalyco/opencode

Web UI retains 40 full session transcripts

Open
#46,119 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Open the web UI.
  2. Visit 40 or more sessions.
  3. Force GC and inspect Runtime.getHeapUsage with CDP.
Screenshot and/or share link

Not available

Operating System

macOS 26.6

Terminal

Not relevant

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.