Handle manifest-free verified builtin providers in policy staging

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-09-28 15:07:35 -05:00
1 parent 4b20957878
commit cd719a1b19
1 file changed
+6 -1
@@ -412,7 +412,12 @@ export class AcpxRuntimeHost {
...(options.providerPolicy === undefined ? {} : { providerPolicy: {
...options.providerPolicy,
systemInstructions: boundedInstructions(options.systemInstructions),
protectedPaths: [...(options.providerPolicy.protectedPaths ?? []), dirname(installation.agentServerPackageJsonPath)],
protectedPaths: [
...(options.providerPolicy.protectedPaths ?? []),
...(installation.agentServerPackageJsonPath === null
? []
: [dirname(installation.agentServerPackageJsonPath)]),
],
} }),
}),
dependencies.retainAdmissionCleanup,