Skip to content

opencode seems to keep old project folder data with no easy way to remove it. #40699

Closed as duplicate

Description

@radfaraf

Had a project that was normally pointing to waveshare4.2rlcd-modern-platform, it's now waveshare4.2rlcd, if I delete the project from OpenCode, and try to add it again with the new folder. It still references the old one and fails to work when trying agents in the project due to the folder not being there. There needs to be a way to actually really delete the information it stores about it, because it's keeping the old information. Not sure how this happened originally some complex mess with worktrees.

Basically this could be easily solved without worrying about how to reproduce it if we could simply delete old project data, or even be able to edit the folder the project is attached to. It's missing basic functions that it should have that would have made this easily fixable on my end.

Log shows this:

timestamp=2026-08-05T17:40:57.816Z level=INFO run=5227d0b9 message="llm runtime selected" llm.runtime=ai-sdk llm.provider=opencode-go llm.model=minimax-m3
timestamp=2026-08-05T17:40:57.829Z level=ERROR run=5227d0b9 message="prompt_async failed" sessionID=ses_02cfc6154ffeaBJ229YOLDfoXB cause="Cause([Die(PlatformError: NotFound: FileSystem.realPath (/Volumes/4TB SSD/@symlinks/Documents/@coding/waveshare4.2rlcd-modern-platform) (cause: Error: ENOENT: no such file or directory, lstat '/Volumes/4TB SSD/@symlinks/Documents/@coding/waveshare4.2rlcd-modern-platform'))])"

Activity

  1. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

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

  2. radfaraf commented on Aug 5, 2026

    @radfaraf
    Author

    #38578 appears to be the closest duplicate. It describes the same stale workspace path, FileSystem.realPath ENOENT failure, and sessions remaining unusable after the folder is moved or renamed.

    The additional part I wanted to emphasize is the lack of a recovery option: OpenCode should allow users to fully remove the stored project/session data or edit the project path so a corrupted stale reference can be repaired.

    Closing this as a duplicate of #38578 is fine.

  3. Hona commented on Sep 2, 2026

    @Hona
    Member

    Fixed for opencode2 launch via #46713
    You can try the desktop beta here: https://github.com/anomalyco/opencode-beta

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