Skip to content

TUI store leaks memory on session deletion and message removal #12218

Closed

Description

@trvon

Description

session.deleted in sync.tsx only removes the session from store.session[] but leaves orphaned entries in message, part, todo, session_diff, session_status, permission, and question. Same pattern for message.removed leaving orphaned part data. Grows unboundedly over a long-running session.

Plugins

No response

OpenCode version

1.1.51

Steps to reproduce

Tests where included in PR

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    bugSomething isn't working
    on Feb 5, 2026
  2. added
    perfIndicates a performance issue or need for optimization
    on Feb 5, 2026
  3. github-actions commented on Feb 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions