gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Hooks - continue=false Behavior

Open Edilmo opened this issue 3 weeks ago • 0 comments

The continue field in hook outputs is intended to stop execution with a user-facing reason. Currently, the implementation may treat continue=false identically to decision=block in some contexts. The distinction needs clarification and potentially separate handling.

Code Location:

  • packages/core/src/hooks/types.ts:151-153 - shouldStopExecution() method
  • packages/core/src/hooks/hookAggregator.ts - Aggregation logic for continue field
  • packages/core/src/hooks/hookEventHandler.ts - Processing of continue decisions

Edilmo avatar Dec 08 '25 17:12 Edilmo