homelab-codex-ws/services/agent-system/telegram-bot
Oskar Kapala b9ed118b8c fix(telegram-bot): correct risk_level field + show description in alerts
- read risk_level with risk fallback (was: risk only → "unknown" for
  all actions written by supervisor which uses risk_level key)
- include description field in alert format (was: alert_only payloads'
  substance was invisible — description carried the full message)
- extract _format_pending_action() pure helper to enable unit testing
  without a live Telegram connection
- 8 tests: risk_level present, risk fallback, both absent, description
  shown/absent, truncation, full HA alert_only shape, no-description no-crash
- flagged during Phase 5 review of ha-diag-agent supervisor routing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 16:26:49 +02:00
..
tests fix(telegram-bot): correct risk_level field + show description in alerts 2026-05-29 16:26:49 +02:00
bot.py fix(telegram-bot): correct risk_level field + show description in alerts 2026-05-29 16:26:49 +02:00
Dockerfile Add Telegram approval bot for agent actions 2026-05-16 21:53:06 +02:00
requirements.txt Fix Telegram bot job queue dependency 2026-05-18 20:22:12 +02:00