You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: derive loadConfig() rootDir from --db path in read-only query functions
manifestoData, hybridSearchData, moduleBoundariesData, diffImpactData,
complexityData, and auditData called loadConfig() bare or with
process.cwd(), so `--db /other/repo/.codegraph/graph.db` invoked from a
different directory read the invoking directory's .codegraphrc.json
instead of the target repo's.
Export a new resolveConfigForDbPath() helper from db/connection.ts,
generalizing the private deriveRootDirFromDbPath() added in #1763, and
use it at all six call sites named in #1881. resolveDbSettings() and
resolveBusyTimeoutMs() now delegate to it too, so rootDir derivation
lives in exactly one place. Also fixes a latent bug in audit.ts's
manual rootDir computation, which broke for directory-style --db
inputs (findDbPath's directory normalization was bypassed).
0 commit comments