lsh411
a42e3cb78a
feat(heartbeat): add accountId config option for multi-agent routing ( #8702 )
...
* feat(heartbeat): add accountId config option for multi-agent routing
Add optional accountId field to heartbeat configuration, allowing
multi-agent setups to explicitly specify which Telegram account
should be used for heartbeat delivery.
Previously, heartbeat delivery would use the accountId from the
session's deliveryContext. When a session had no prior conversation
history, heartbeats would default to the first/primary account
instead of the agent's intended bot.
Changes:
- Add accountId to HeartbeatSchema (zod-schema.agent-runtime.ts)
- Use heartbeat.accountId with fallback to session accountId (targets.ts)
Backward compatible: if accountId is not specified, behavior is unchanged.
Closes #8695
* fix: improve heartbeat accountId routing (#8702 ) (thanks @lsh411)
* fix: harden heartbeat accountId routing (#8702 ) (thanks @lsh411)
* fix: expose heartbeat accountId in status (#8702 ) (thanks @lsh411)
* chore: format status + heartbeat tests (#8702 ) (thanks @lsh411)
---------
Co-authored-by: m1 16 512 <m116512@m1ui-MacBookAir-2.local >
Co-authored-by: Gustavo Madeira Santana <gumadeiras@gmail.com >
2026-02-04 16:49:12 -05:00
..
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-01-07 22:56:50 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-16 20:17:32 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-01-14 01:17:56 +00:00
2026-01-30 03:16:21 +01:00
2026-01-30 03:16:21 +01:00
2026-01-30 03:16:21 +01:00
2026-01-24 21:02:13 +00:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-01-30 03:16:21 +01:00
2026-01-30 03:16:21 +01:00
2026-01-14 15:02:19 +00:00
2026-01-30 03:16:21 +01:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-02-01 09:50:52 +01:00
2026-01-15 03:22:54 +00:00
2026-02-01 10:03:47 +09:00
2026-01-14 01:17:56 +00:00
2026-01-14 01:17:56 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-02-01 10:03:47 +09:00
2026-02-01 09:50:52 +01:00
2026-02-01 10:03:47 +09:00
2026-01-17 00:34:00 +00:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-01-14 05:39:51 +00:00
2026-01-25 04:35:20 +00:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-01-27 12:21:02 +00:00
2026-02-01 10:03:47 +09:00
2026-01-30 03:16:21 +01:00
2026-01-15 04:06:11 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-20 15:58:30 +00:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-03 18:03:53 -08:00
2026-01-31 16:04:04 +09:00
2026-02-02 21:44:02 +09:00
2026-01-18 06:37:37 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:20:27 +00:00
2026-02-01 10:03:47 +09:00
2026-02-04 16:49:12 -05:00
2026-02-02 21:31:17 -05:00
2026-01-24 20:56:40 +00:00
2026-01-14 01:17:56 +00:00
2026-01-28 11:42:33 +05:30
2026-01-30 03:16:21 +01:00
2026-02-03 14:27:39 -08:00
2026-01-14 01:17:56 +00:00
2026-02-04 13:25:56 -08:00
2026-02-04 16:16:34 -05:00
2026-02-03 16:00:57 -08:00
2026-02-04 16:16:34 -05:00
2026-01-26 13:34:04 +00:00
2026-02-04 16:16:34 -05:00
2026-02-02 23:45:05 -08:00
2026-01-24 08:00:44 +00:00
2026-01-24 01:18:33 +00:00
2026-02-04 16:16:34 -05:00
2026-01-24 04:21:47 +00:00
2026-02-02 23:45:05 -08:00
2026-01-18 02:12:10 +00:00
2026-01-24 23:30:45 +00:00
2026-01-27 03:24:54 +00:00
2026-02-04 16:16:34 -05:00
2026-01-20 15:57:08 +00:00
2026-02-04 16:16:34 -05:00
2026-02-04 16:16:34 -05:00
2026-02-03 18:03:53 -08:00
2026-02-03 14:27:39 -08:00
2026-01-25 04:35:20 +00:00
2026-02-04 16:16:34 -05:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-02-02 12:14:17 -08:00
2026-02-04 16:49:12 -05:00
2026-01-19 03:39:25 +00:00
2026-01-24 20:56:40 +00:00
2026-01-24 09:07:03 +00:00
2026-02-01 10:03:47 +09:00
2026-01-26 13:34:04 +00:00
2026-02-04 13:25:56 -08:00
2026-02-04 16:16:34 -05:00
2026-02-01 10:03:47 +09:00
2026-02-02 23:45:05 -08:00
2026-02-03 16:00:57 -08:00