Skip to content

Loading folder with the same name - legacy context is loaded legacy files #34285

Closed as not planned

Description

@shiloh92

Description

How to replicate:
Clear a project you have existing
Try to open a new folder that has the same name as previous project
You will find it loads legacy context and continue to use an old directory rather than the new files and context

For example:
Project dir: C://old_project/
New project dir: C://new folder/old_project/
Result: only C://old_project/ is being used

There is no way to fix this except to create a completely different folder name.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jun 28, 2026

    @github-actions
    Contributor

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

    If your issue is the same as one of these, please add a comment there instead so the discussion stays consolidated. If it's distinct (e.g., specific to a different UI surface or has a different root cause), feel free to keep this open and add any additional context that would help distinguish it.

  2. github-actions commented on Aug 28, 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