fix(coding-agent): persist implicit project trust on reload

This commit is contained in:
Mario Zechner
2026-06-08 10:08:01 +02:00
parent 130ae577ac
commit 38f18be447
5 changed files with 51 additions and 5 deletions

View File

@@ -94,9 +94,13 @@ function withTrustFileLock<T>(path: string, fn: () => T): T {
}
}
export function hasProjectConfigDir(cwd: string): boolean {
return existsSync(join(canonicalizePath(resolvePath(cwd)), CONFIG_DIR_NAME));
}
export function hasProjectTrustInputs(cwd: string): boolean {
let currentDir = canonicalizePath(resolvePath(cwd));
if (existsSync(join(currentDir, CONFIG_DIR_NAME))) {
if (hasProjectConfigDir(currentDir)) {
return true;
}