feat(hooks): implement STOP_EXECUTION and enhance hook decision handling (#15685)

This commit is contained in:
Sandy Tao
2025-12-31 07:22:53 +08:00
committed by GitHub
parent 3ebe4e6a8f
commit 05049b5abf
10 changed files with 379 additions and 22 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ export class DefaultHookOutput implements HookOutput {
* Get the effective reason for blocking or stopping
*/
getEffectiveReason(): string {
return this.reason || this.stopReason || 'No reason provided';
return this.stopReason || this.reason || 'No reason provided';
}
/**