瀏覽代碼

docs: clarify external apply patch guard

dhaern 3 月之前
父節點
當前提交
3ca60f59bb
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 (
           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'
         ) {
           logHookStatus('skipped', {