Skip to content

Windows: shell working directory remains stuck on old project path after moving folder #39836

Closed

Description

@HHN224

Description

OpenCode Desktop caches the shell working directory. After I moved the project folder on Windows and reopened it from the new location, the agent session still tried to access the old path.

Expected: New session uses D:\project space\video watching agent.
Actual: Shell fails with NotFound: FileSystem.access (D:\video watching agent).

The project sidebar shows the new path, but the shell session is stuck on the old directory.

Plugins

None

OpenCode version

v1.16.2

Steps to reproduce

  1. Create or open a project at D:\video watching agent.
  2. Start at least one chat session in that project.
  3. In Windows File Explorer, move the entire folder to D:\project space\video watching agent.
  4. In OpenCode, click "New Session" (or fully restart the app).
  5. Use "Open Project" and select the new path: D:\project space\video watching agent.
  6. Start a new chat and run any shell command.
  7. Observe the error: NotFound: FileSystem.access (D:\video watching agent).

Screenshot and/or share link

Image Image

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jul 31, 2026

    @github-actions
    Contributor

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

  2. Hona commented on Sep 2, 2026

    @Hona
    Member
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