Skip to content

Web UI retains 40 full session transcripts #46119

Closed as not planned
Closed as not planned

Description

@Nittarab

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

Activity

  1. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions