Browse Source

docs: clarify external apply patch guard

dhaern 3 months ago
parent
commit
3ca60f59bb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/hooks/apply-patch/index.ts

+ 3 - 0
src/hooks/apply-patch/index.ts

@@ -86,6 +86,9 @@ export function createApplyPatchHook(ctx: PluginInput) {
 
 
         if (
         if (
           normalizedError.kind === 'blocked' &&
           normalizedError.kind === 'blocked' &&
+          // Only the plugin-side outside-workspace preflight should fail open.
+          // Keep the code check explicit so any future blocked error remains
+          // fail-closed by default.
           details?.code === 'outside_workspace'
           details?.code === 'outside_workspace'
         ) {
         ) {
           logHookStatus('skipped', {
           logHookStatus('skipped', {