feat(coding-agent): allow project trust extensions to defer
This commit is contained in:
@@ -648,10 +648,11 @@ async function resolveProjectTrusted(options: {
|
||||
options.onExtensionError?.(`Extension "${error.extensionPath}" project_trust error: ${error.error}`);
|
||||
}
|
||||
if (result) {
|
||||
const trusted = result.trusted === "yes";
|
||||
if (result.remember === true) {
|
||||
options.trustStore.set(options.cwd, result.trusted);
|
||||
options.trustStore.set(options.cwd, trusted);
|
||||
}
|
||||
return result.trusted;
|
||||
return trusted;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user