From 7889738debbb9b5d0c7eb07aca29ffe6b4edc45b Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Sat, 31 Jan 2026 12:22:07 -0500 Subject: [PATCH] docs: update clearContext to hookSpecificOutput --- docs/hooks/reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks/reference.md b/docs/hooks/reference.md index a86474ea85..452edb378d 100644 --- a/docs/hooks/reference.md +++ b/docs/hooks/reference.md @@ -167,8 +167,8 @@ case is response validation and automatic retries. - `reason`: Required if denied. This text is sent **to the agent as a new prompt** to request a correction. - `continue`: Set to `false` to **stop the session** without retrying. - - `clearContext`: If `true`, clears conversation history (LLM memory) while - preserving UI display. + - `hookSpecificOutput.clearContext`: If `true`, clears conversation history + (LLM memory) while preserving UI display. - **Exit Code 2 (Retry)**: Rejects the response and triggers an automatic retry turn using `stderr` as the feedback prompt.