Skip to content

OpenCode keeps reopening deleted project path after creating a new session #31401

Description

@fakheem7

Version:
OpenCode Desktop v1.16.2

Operating System:
Windows 11

Description:
OpenCode keeps reopening a deleted project path automatically.

Steps to reproduce:

Open a project.
Delete the project folder from disk.
Remove workspace files (opencode.workspace.*.dat).
Restart OpenCode Desktop.
Create a new session or open another project.

Expected behavior:
OpenCode should forget the deleted project and open the newly selected project.

Actual behavior:
OpenCode automatically returns to the old deleted project path and keeps reopening it in new sessions.

Additional information:

The original project folder no longer exists.
Workspace files were deleted.
The issue persists after restarting the application.
It appears that the project path is stored somewhere other than the workspace files.

Version:
OpenCode Desktop v1.16.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions