2 Commits
Author SHA1 Message Date
openbot 59c44e94ca fix(wecom): degrade stream replies to proactive msg when callback req_id stale
Turns that outlive the WeCom callback req_id window (e.g. approval
round-trips >5min) had their delta/finish frames silently rejected by
the gateway, so the user saw 'clicked approve, nothing happened' while
the agent kept working. Track req_id recv time; past a 240s TTL, stream
updates fall back to proactive aibot_send_msg. Also log non-zero
errcode ack frames so future gateway rejections are visible.
2026-10-24 09:18:19 +08:00
openbot d8cce95adf feat: wecom finish-frame overflow splitting + /status channel state
- _stream_close: finish frame capped at 19KB; overflow chunks delivered
  as aibot_send_msg markdown (dsh-im verified approach, nothing dropped)
- channel_state events recorded on channel objects; wecom WS reconnect
  failures surface in /status as channels[].state, service "degraded"
  when any channel failed
- runtime _safe_event no longer misroutes chatless keys

Tests: 71 passed (2 new: split + total-integrity)
2026-10-08 11:35:28 +08:00