[BUG] Config and Data directories follow the Linux XDG standard even on windows #5351

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

Originally created by @yousshim on GitHub (Jan 13, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

The paths for the config/data/cache directory is provided by the "xdg-basedir" which does not respect the convention on windows (and mac os, but I can't test it). In the readme of "xdg-basedir" they recommend using "env-paths" for other platforms.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @yousshim on GitHub (Jan 13, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description The paths for the config/data/cache directory is provided by the "xdg-basedir" which does not respect the convention on windows (and mac os, but I can't test it). In the readme of "xdg-basedir" they recommend using "env-paths" for other platforms. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the windowsbug labels 2026-02-16 17:51:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5351