2 Commits

Author SHA1 Message Date
zhujia
1c1dc61fea fix(partners): merge queued outbound messages before delivery
A partner has one outbound lane and every channel send is a blocking HTTP
round trip, so a fast model filled the queue faster than Feishu could post:
readers kept receiving an answer long after the turn had finished.

- share the dispatcher's delta/progress coalescing with the live router and
  keep message order through a pending queue
- merge queued narration and tool hints, which otherwise cost one API call
  each
- retry ordinary messages with the configured budget, but never hold the lane
  behind backoff sleeps for stream frames, which self-heal
- keep the lane alive when a single message fails, and follow a channel
  reload
- stamp publish time on the bus and warn when delivery waits too long, so a
  trailing reply is visible in the logs
2026-09-30 16:24:51 +08:00
Bingxi Zhao (Frank)
da1061910b feat(partners): production IM infra — retry/dedup/coalescing, per-channel delivery flags, stream-delta protocol, slack/telegram connection fixes
- manager: exponential-backoff retry (send_max_retries), origin-scoped
  duplicate suppression, _stream_delta coalescing, per-channel
  send_progress/send_tool_hints gating (global AND channel override)
- base: send_delta/supports_streaming protocol, _wants_stream injection
- runner: live stream segments per loop round (turn_id:call_id), narration
  rounds freeze on completion, final reply marked _streamed when delivered
- telegram: split API/polling HTTPX pools (pool exhaustion fix), trim
  legacy nanobot command menu, raise on send failure for manager retry
- slack: Socket Mode handshake timeout + WSS diagnostics, send raises
- schema: DeliveryOverrides/StreamingSupport mixins on channel configs
- partners/network.py: strict SSRF validator for channel media downloads
- icons: correct WeCom mark (TDesign outline, official brand palette)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 17:43:08 +08:00