Workaround for "UnknownError: No such file or directory" on Windows when open a git-enabled directories #4308

Open
opened 2026-02-16 17:43:22 -05:00 by yindo · 0 comments
Owner

Originally created by @Darkstarrd-dev on GitHub (Jan 6, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

a persistent UnknownError when opening Git-enabled directories in the Windows desktop app.

Image

The error persists through restarts, previously forcing users to perform a full reinstall or revert to the CLI.

The issue can be resolved by manually editing the configuration file:

Path: ~\AppData\Roaming\ai.opencode.desktop\default.dat

Steps:

  • Locate the "projects": {"local": [...]} section in the file.
  • The entries are sorted in reverse order; the first entry is typically the directory that triggered the error.
  • Remove the problematic entry from the list and save the file.

Example:

  • record:
    "server.v3": "{"list":[],"projects":{"local":[{"worktree":"Z:\\OpenCodePlayGround","expanded":true},{"worktree":"Z:\\Playground\\react","expanded":true},{"worktree":"Z:\\Playground","expanded":true}]}}",
  • remove the first record
  • screenshot:
Image

This will allow the app to launch successfully without losing entire project history.

Plugins

No response

OpenCode version

1.1.3

Steps to reproduce

  1. opening Git-enabled directories in the Windows desktop app

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

No response

Originally created by @Darkstarrd-dev on GitHub (Jan 6, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description a persistent `UnknownError` when opening Git-enabled directories in the Windows desktop app. <img width="1548" height="446" alt="Image" src="https://github.com/user-attachments/assets/61c4c4fb-21da-4697-b3bf-336595b3a8d9" /> The error persists through restarts, previously forcing users to perform a full reinstall or revert to the CLI. The issue can be resolved by manually editing the configuration file: **Path:** `~\AppData\Roaming\ai.opencode.desktop\default.dat` **Steps:** * Locate the `"projects": {"local": [...]}` section in the file. * The entries are sorted in reverse order; the **first entry** is typically the directory that triggered the error. * **Remove the problematic entry** from the list and save the file. **Example:** * record: "server.v3": "{\"list\":[],\"projects\":{\"local\":[{\"worktree\":\"Z:\\\\OpenCodePlayGround\",\"expanded\":true},{\"worktree\":\"Z:\\\\Playground\\\\react\",\"expanded\":true},{\"worktree\":\"Z:\\\\Playground\",\"expanded\":true}]}}", * remove the first record * screenshot: <img width="372" height="818" alt="Image" src="https://github.com/user-attachments/assets/7cb02e75-40c2-4127-b4b3-c3e0eb25fac1" /> This will allow the app to launch successfully without losing entire project history. ### Plugins _No response_ ### OpenCode version 1.1.3 ### Steps to reproduce 1. opening Git-enabled directories in the Windows desktop app ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal _No response_
yindo added the windowsbugweb labels 2026-02-16 17:43:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4308