GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Concurrent sessions working on different repos interfer each other · Issue #4251 · anomalyco/opencode

Concurrent sessions working on different repos interfer each other #4251

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Concurrent sessions working on different repos interfer each other#4251
Copy link
Assignees
rekram1-node

Description

@mleader1
mleader1
opened on Nov 12, 2025
Issue body actions

Description

This is my first day using Opencode, and I must say, I’m impressed. I’m a Claude Code user, so I was expecting something similar.

However, there’s a significant issue that’s holding me back. Our codebase is massive and consists of multiple repositories, each serving a different part of a large platform.

  • rootDir
    | - repo 1
    |. - system A
    |. - - | System A - repo A.1
    |. - - | System A - repo A.2
    |. - - | System A - repo A.3
    | …
    |. - repo 2
    |. - repo 3
    etc. etc.

Each repository may contain a similar folder structure, such as /web/dashboard.

Today, I encountered several issues:

  1. I created four terminal sessions (using Termius) to work in different repositories.
  2. At the start of each session, I provided a clear definition and scope of the working repository boundaries to prevent tampering with other repositories.

Initially, everything worked well for the first few conversations. However, as I started working on some serious code (based on my “Implementation Plan”s), the four sessions became chaotic and extremely dangerous to work with. Eventually, I had to revert the last few commits they created because:

a) They started working on other repositories where the other three sessions were working.
b) The right-hand column statistics “Modified Files” showed a confusing mix of file changes across the four terminal sessions. They showed different numbers of modified files and interfered with each other, showing modified files that didn’t belong to their scoped repository.

Due to these issues, I had to give up. I’m not sure whether it’s an Opencode issue or a problem with the LM model (I used Claude as well as a few other models, switching between them during the test).

The issue above sounds chaotic, and it was chaotic to me as well, which is why I lost confidence in continuing to use it. I’m quite OCD about knowing exactly which files can and should be worked on.

I think this issue is only because I tried it on a platform codebase that contains over 30 repositories as the root for Opencode to operate on.

Regardless of the underlying issue, I believe it’s worth submitting my feedback. I really do love this product and its flexible model provider approach!

Thank you.

Reacted by Andrea Giacon, Thomas Barron, Drewry Pope, JHIH-SIOU LI and Giabanga

Activity

  1. mleader1
    added
    bugSomething isn't working
    on Nov 12, 2025
  2. github-actions commented on Nov 12, 2025

    @github-actions
    github-actionsBot
    on Nov 12, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Sessions are now mixed with home directory session list, disregarding which directory you're in #3551: Sessions are now mixed with home directory session list, disregarding which directory you're in - describes similar directory-based session confusion
    • [FEATURE]: tie working directory / directories with chat session #4048: [FEATURE]: tie working directory / directories with chat session - feature request to properly tie working directories with sessions
    • Performance issue: session-child-cycle becomes extremely slow with many sessions #3526: Performance issue: session-child-cycle becomes extremely slow with many sessions - performance issues when dealing with many sessions
    • Concurrency bug: Polaris edit session blocked by self-induced file change #4079: Concurrency bug: Polaris edit session blocked by self-induced file change - concurrency issues with file modifications across sessions

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

  3. rekram1-node commented on Nov 12, 2025

    @rekram1-node
    rekram1-node
    on Nov 12, 2025
    Member
    More actions

    so it sounds like for ur usecase having more finegrained control of the filesystem allowing u to control what that the agent can access would be important

    Reacted by Lida Weng
  4. rekram1-node
    self-assigned this
    on Nov 12, 2025
  5. mleader1 commented on Nov 12, 2025

    @mleader1
    mleader1
    on Nov 12, 2025
    Author
    More actions

    @rekram1-node My personal view is that the agent needs read access to the entire codebase for context understanding (and documentation references, as we have coding standards and system documentation in a centralized repo). However, it should also be restricted to work within the boundaries of the session’s scope (read and write permissions for serious coding work).

    While there might be alternatives or compromises, such as setting the repo as root where Opencode starts, and referencing parent folders or other repos for references (I haven't tested this approach but I'm not going to either), this isn’t straightforward thinking and isn’t ideal for the agent to understand the bigger picture of the codebase they’re given to work on.

  6. tbarron-xyz commented on Nov 12, 2025

    @tbarron-xyz
    tbarron-xyz
    on Nov 12, 2025
    More actions

    Just an idea, you could use a read-only agent in the root dir for getting all context and writing an implementation plan, writing a plan file to the relevant sub dir. Then trigger an edit-enabled agent in the subdir, have it read the plan file and execute.

  7. tbarron-xyz commented on Nov 13, 2025

    @tbarron-xyz
    tbarron-xyz
    on Nov 13, 2025
    More actions

    I also just experienced this issue: b) The right-hand column statistics “Modified Files” showed a confusing mix of file changes across the four terminal sessions. They showed different numbers of modified files and interfered with each other, showing modified files that didn’t belong to their scoped repository.

    I have one plan mode agent running in ./ planning things, and another build mode agent executing a plan in the same working dir (disjoint working areas). The Build agent edited 2 files. 1 of the edited files shows up in the Modified Files pane of the Plan agent, but not the other.

  8. AndryHTC commented on Feb 4, 2026

    @AndryHTC
    AndryHTC
    on Feb 4, 2026
    More actions

    CRITICAL

  9. tbarron-xyz commented on Apr 5, 2026

    @tbarron-xyz
    tbarron-xyz
    on Apr 5, 2026
    More actions

    Still experiencing this. Opencode in terminal #2 wrote a file and it shows up in the Modified Files list of Opencode in terminal #1.

    Image Image
  10. thdxr
    removed
    bugSomething isn't working
    on May 3, 2026
  11. github-actions commented on Jul 3, 2026

    @github-actions
    github-actionsBot
    on Jul 3, 2026 – with GitHub Actions
    Contributor
    More actions

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

  12. github-actions
    closed this as not plannedon Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.