Skip to content

Does OpenCode automatically clean up old session/conversation data? #4980

Closed

Description

@junhoyeo

Question

Just to confirm, OpenCode doesn't automatically clean up old session data in ~/.local/share/opencode/storage/, right?
I want to make sure I'm not missing any cleanup logic that might delete historical data.

Activity

  1. github-actions commented on Dec 2, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues or closely related to ongoing discussions. Please check:

    Feel free to ignore if your specific concern differs from these existing discussions.

  2. rekram1-node commented on Dec 2, 2025

    @rekram1-node
    Collaborator

    No it does not

    Although i think there is currently a hardcoded limit for session retrieval (used to populate session picker)

    We will of course add pagination but the hardcoded limit is there for now to address some perf issues

  3. self-assigned this
    on Dec 2, 2025
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