diff --git a/packages/opencode/src/cli/cmd/tui/context/editor-zed.ts b/packages/opencode/src/cli/cmd/tui/context/editor-zed.ts index 6805f0b66650..d3308bcf2b22 100644 --- a/packages/opencode/src/cli/cmd/tui/context/editor-zed.ts +++ b/packages/opencode/src/cli/cmd/tui/context/editor-zed.ts @@ -185,6 +185,7 @@ function isZedActiveEditorRow(row: ZedEditorRow): row is ZedActiveEditorRow { export function resolveZedDbPath() { const candidates = [ process.env.OPENCODE_ZED_DB, + path.join(os.homedir(), "AppData", "Local", "Zed", "db", "0-stable", "db.sqlite"), path.join(os.homedir(), "Library", "Application Support", "Zed", "db", "0-stable", "db.sqlite"), path.join(os.homedir(), ".local", "share", "zed", "db", "0-stable", "db.sqlite"), ].filter((item): item is string => Boolean(item))