openclaw-matrix-multiaccounts/src/auto-reply/reply
Josh Lehman 9d50ebad7d feat(routing): route replies to originating channel
Implement reply routing based on OriginatingChannel/OriginatingTo fields.
This ensures replies go back to the provider where the message originated
instead of using the session's lastChannel.

Changes:
- Add OriginatingChannel/OriginatingTo fields to MsgContext (templating.ts)
- Add originatingChannel/originatingTo fields to FollowupRun (queue.ts)
- Create route-reply.ts with provider-agnostic router
- Update all providers (Telegram, Slack, Discord, Signal, iMessage)
  to pass originating channel info
- Update reply.ts to pass originating channel to followupRun
- Update followup-runner.ts to use route-reply for originating channels

This addresses the issue where messages from one provider (e.g., Slack)
would receive replies on a different provider (e.g., Telegram) because
the queue used the last active dispatcher instead of the originating one.
2026-01-07 04:51:33 +00:00
..
abort.ts refactor(auto-reply): split reply flow 2026-01-04 05:47:37 +01:00
agent-runner.heartbeat-typing.test.ts merge upstream/main 2026-01-06 23:09:01 +01:00
agent-runner.ts merge upstream/main 2026-01-06 23:09:01 +01:00
block-streaming.ts feat: multi-agent routing + multi-account providers 2026-01-06 18:33:37 +00:00
body.ts refactor(auto-reply): split reply flow 2026-01-04 05:47:37 +01:00
commands.ts fix(commands): wire /stop across chat commands 2026-01-06 23:11:57 +00:00
directive-handling.ts feat!: redesign model config + auth profiles 2026-01-06 00:56:58 +00:00
directives.ts fix: unify control command handling 2026-01-05 01:31:36 +01:00
dispatch-from-config.ts refactor: centralize reply dispatch 2026-01-06 04:55:00 +01:00
followup-runner.compaction.test.ts feat: multi-agent routing + multi-account providers 2026-01-06 18:33:37 +00:00
followup-runner.ts feat(routing): route replies to originating channel 2026-01-07 04:51:33 +00:00
groups.test.ts feat: multi-agent routing + multi-account providers 2026-01-06 18:33:37 +00:00
groups.ts feat: multi-agent routing + multi-account providers 2026-01-06 18:33:37 +00:00
mentions.test.ts chore: update mention gating docs and tests 2026-01-06 01:38:36 +01:00
mentions.ts fix: unify mention gating across providers 2026-01-06 01:32:17 +01:00
model-selection.ts feat!: redesign model config + auth profiles 2026-01-06 00:56:58 +00:00
queue.ts feat(routing): route replies to originating channel 2026-01-07 04:51:33 +00:00
reply-dispatcher.test.ts fix: stop typing after dispatcher idle 2026-01-06 03:09:49 +00:00
reply-dispatcher.ts fix(slack): clear assistant thread status after replies 2026-01-06 21:41:30 +01:00
reply-tags.ts refactor(auto-reply): split reply flow 2026-01-04 05:47:37 +01:00
route-reply.ts feat(routing): route replies to originating channel 2026-01-07 04:51:33 +00:00
session-updates.ts feat: track compaction count + verbose notice 2026-01-06 02:49:03 +01:00
session.ts feat: multi-agent routing + multi-account providers 2026-01-06 18:33:37 +00:00
typing.test.ts fix(telegram): prevent stuck typing after tool runs 2026-01-06 18:56:43 +00:00
typing.ts fix(telegram): prevent stuck typing after tool runs 2026-01-06 18:56:43 +00:00