Skip to content

fix(tui): scope Zed editor context to containing workspaces#25211

Merged
kitlangton merged 2 commits intodevfrom
kit/fix-zed-context-scope
May 1, 2026
Merged

fix(tui): scope Zed editor context to containing workspaces#25211
kitlangton merged 2 commits intodevfrom
kit/fix-zed-context-scope

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

@kitlangton kitlangton commented May 1, 2026

Summary

  • Prevent Zed DB fallback from using editor context from workspaces nested inside the OpenCode session directory
  • Prefer the most-specific containing Zed workspace when multiple ancestor workspaces match
  • Skip inaccessible Zed DB candidates instead of crashing in sandboxed CLI runs
  • Add regression coverage for containing, most-specific, nested workspace, and inaccessible DB path cases

Fixes #25164

Testing

  • bun test test/cli/tui/editor-context-zed.test.ts
  • bun typecheck
  • git push hook: bun turbo typecheck

@kitlangton kitlangton merged commit 4c70ea2 into dev May 1, 2026
11 checks passed
@kitlangton kitlangton deleted the kit/fix-zed-context-scope branch May 1, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCode CLI is trying to access Zed sqlite DB

1 participant