Description
When a project is moved from its original location to a new path (e.g., an external drive), closing the old workspace in opencode GUI and re-adding it at the new path does not update the working directory. The environment still uses the original workspace path, which no longer exists.
Steps to Reproduce
- Open a project at location A
- Move/copy the project to location B
- In opencode GUI, close the workspace and add location B
- Start a session
- Try to use any file system tool
Expected Behavior
The working directory should reflect the current workspace path (location B).
Actual Behavior
The environment still uses the original path (location A), causing file system tools to fail with NotFound: FileSystem.access errors.
Environment
Notes
- The workspace path is stored in the GUI's data file, but even after updating it, the working directory is fixed at process launch time.
Description
When a project is moved from its original location to a new path (e.g., an external drive), closing the old workspace in opencode GUI and re-adding it at the new path does not update the working directory. The environment still uses the original workspace path, which no longer exists.
Steps to Reproduce
Expected Behavior
The working directory should reflect the current workspace path (location B).
Actual Behavior
The environment still uses the original path (location A), causing file system tools to fail with
NotFound: FileSystem.accesserrors.Environment
Notes