Skip to content

Project path is not updated after moving project directory (opens old deleted path) #34737

Description

@afsharmn

Description

I previously opened a project in OpenCode located at:

C:\first_address

Later, I moved the entire project to:

D:\second\address

The original folder (C:\first_address) was removed/deleted.

After reopening OpenCode and selecting the project from the new location (D:\second\address), OpenCode still tries to open the old path (C:\first_address) instead of using the new one.

It looks like OpenCode may be keeping a cached workspace/project reference and not refreshing the project location.

Steps to Reproduce

  1. Open a project in OpenCode from:
    C:\first_address

  2. Close OpenCode.

  3. Move the project folder to:
    D:\second\address

  4. Delete or remove the original folder.

  5. Open OpenCode again.

  6. Open/select the project from the new location.

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

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