Skip to content

[BUG] File modifications from other sessions appear unexpectedly in current session version1.18.13 #40574

Closed as not planned

Description

@AbelKeithsun

Description

When working across multiple OpenCode sessions simultaneously, file modifications made in one session unexpectedly appear or get reflected in another session's workspace. This creates confusion and potential data inconsistency issues, as each session should maintain its own independent file state unless explicitly synced through version control.

The bug manifests when:

  • User has Session A and Session B open (either in separate windows or tabs)
  • User modifies files in Session A
  • User switches to Session B and observes that the file changes from Session A are already reflected in Session B's editor/file tree
  • This happens without explicit file synchronization or version control operations

This violates the expected isolation between concurrent sessions and can lead to accidental overwrites or confusion about which session owns which file state.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Open OpenCode and create or select a project
  2. Create two separate sessions (Session A and Session B) in the same project
  3. In Session A, open a file (e.g., src/app.ts or any text file)
  4. Modify the file content in Session A (add text, change lines, etc.)
  5. Switch to Session B
  6. Observe that the same file in Session B now shows the modifications made in Session A
  7. Verify that no explicit save/sync operation was performed between sessions

Expected behavior:

  • Session B should show the original file content or at least require explicit sync
  • File changes should be isolated per session unless synchronized through version control

Actual behavior:

  • Session B immediately reflects changes made in Session A
  • This creates unintended cross-session dependencies

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

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

    If your issue is distinct (e.g., it occurs in specific conditions not covered by those reports), please clarify the differences.

  2. changed the title [-][BUG] File modifications from other sessions appear unexpectedly in current session[/-] [+][BUG] File modifications from other sessions appear unexpectedly in current session version1.18.13[/+] on Aug 5, 2026
  3. github-actions commented on Oct 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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