opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: Respect platform directory conventions

Open yousshim opened this issue 1 month ago • 2 comments

fixes #8235

xdg-basedir respects only the linux xdg standard. This commit replaces it with env-paths which respects the conventions on mac os and windows

What does this PR do?

Replaces "xdg-basedir" with "env-paths" which respects platform specific directory conventions.

How did you verify your code works?

Compiled and ran on windows and verified connecting to a provider stored the "auth.json" in the correct directory.

yousshim avatar Jan 13 '26 15:01 yousshim

Hey! Your PR title [FIX] Respect platform directory conventions doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

github-actions[bot] avatar Jan 13 '26 15:01 github-actions[bot]

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

github-actions[bot] avatar Jan 13 '26 15:01 github-actions[bot]