[BUG] crisis_hook.check_crisis() not wired into run_agent.py conversation loop #677

Open
opened 2026-04-14 22:35:42 +00:00 by Rockachopa · 1 comment
Owner

Problem

The agent/crisis_hook.py module exists but is not called from run_agent.py's conversation loop. Crisis detection is dead code until it's integrated into the actual message processing pipeline.

Fix

Add from agent.crisis_hook import check_crisis to run_agent.py and call it before processing user messages. If crisis is detected, return the crisis response directly.

Impact

Without this integration, the 988 Lifeline resources are never displayed to users in crisis.

## Problem The `agent/crisis_hook.py` module exists but is not called from `run_agent.py`'s conversation loop. Crisis detection is dead code until it's integrated into the actual message processing pipeline. ## Fix Add `from agent.crisis_hook import check_crisis` to `run_agent.py` and call it before processing user messages. If crisis is detected, return the crisis response directly. ## Impact Without this integration, the 988 Lifeline resources are never displayed to users in crisis.
claude self-assigned this 2026-04-14 22:37:56 +00:00
Owner

🔥 BURN DISPATCH — Worker #2 dispatched

🔥 **BURN DISPATCH** — Worker #2 dispatched
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/hermes-agent#677