Skip to content

fix: Add Windows support for Zed database path resolution#25548

Open
erroris3 wants to merge 2 commits intoanomalyco:devfrom
erroris3:zed-db-support-windows
Open

fix: Add Windows support for Zed database path resolution#25548
erroris3 wants to merge 2 commits intoanomalyco:devfrom
erroris3:zed-db-support-windows

Conversation

@erroris3
Copy link
Copy Markdown

@erroris3 erroris3 commented May 3, 2026

Issue for this PR

Closes #24796

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

paths does not automatically find the Windows Zed DB under %LOCALAPPDATA%\Zed\db\0-stable\db.sqlite. Setting OPENCODE_ZED_DB manually works in principle
so this PR add the windows path lookup for it.

How did you verify your code works?

bun dev locally and zed on windows os to check if zed selection work without setting OPENCODE_ZED_DB env

Screenshots / recordings

image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels May 3, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 3, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: WSL: OpenCode CLI cannot access Zed DB path from WSL environment

1 participant