Bash PostToolUse additionalContext is silently dropped by CC — encounters are written to state but never surfaced. Fix with a two-phase approach: - PostToolUse (Bash): detects error, writes encounter with announced:false - UserPromptSubmit: fires on next user message, checks for unannounced encounter, surfaces it once, marks announced:true so dedup loop breaks Removes debug scaffolding and the format_encounter_message call from the Bash hook (announcement is now fully owned by user-prompt-submit.py). |
||
|---|---|---|
| .. | ||
| hooks.json | ||