Skip to content

Commit 16feb83

Browse files
izecellCopilot
andcommitted
docs(copilot-cli): clarify agentStop fires per-turn, not per-session
Addresses review feedback on PR #43876. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d0c54fe commit 16feb83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/copilot/reference/hooks-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ fi
259259

260260
### Agent stop hook
261261

262-
Executed when the main agent finishes responding to a prompt and is about to stop. Use this hook to log session completion or to inject a follow-up instruction by blocking the stop. When you block, the `reason` you provide is enqueued as the next user prompt, so the agent continues with that input.
262+
Executed when the main agent finishes responding to a prompt and is about to stop. Use this hook to log the end of an agent turn or to inject a follow-up instruction by blocking the stop. To handle full session completion, use the session end hook. When you block, the `reason` you provide is enqueued as the next user prompt, so the agent continues with that input.
263263

264264
**Example input JSON:**
265265

0 commit comments

Comments
 (0)