Skip to content

Snapshot contention leaves lock artifacts and disk churn #15019

Closed as not planned

Description

@riatzukiza

Problem

Under heavy session activity, snapshot operations can overlap on the same snapshot git dir. This can leave index.lock / temporary pack artifacts and cause avoidable disk churn.

Scope

  • Serialize snapshot operations per snapshot repo
  • Harden staging/tree-write behavior under lock contention
  • Make cleanup lock-aware and threshold-driven
  • Add regression tests for high-contention behavior

Notes

This issue tracks phased fixes to reduce lock races and stabilize long-running sessions using snapshot-heavy workflows.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    perfIndicates a performance issue or need for optimization
    on Feb 25, 2026
  2. github-actions commented on Feb 25, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • No issue template was used. Please use one of the three required templates: Bug Report, Feature Request, or Question
    • If this is a bug report, it needs a description of steps to reproduce, your OS/environment, and OpenCode version
    • If this is a feature request, the title should start with [FEATURE]: and include a verification checkbox

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. github-actions commented on Feb 25, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)perfIndicates 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