Marcus Castro
eed8cd383f
fix(agent): search all agent stores when resolving --session-id ( #13579 )
...
* fix(agent): search all agent stores when resolving --session-id
When `--session-id` was provided without `--to` or `--agent`, the reverse
lookup only searched the default agent's session store. Sessions created
under a specific agent (e.g. `--agent mybot`) live in that agent's store
file, so the lookup silently failed and the session was not reused.
Now `resolveSessionKeyForRequest` iterates all configured agent stores
when the primary store doesn't contain the requested sessionId.
Fixes #12881
* fix: search other agent stores when --to key does not match --session-id
When --to derives a session key whose stored sessionId doesn't match the
requested --session-id, the cross-store search now also runs. This handles
the case where a user provides both --to and --session-id targeting a
session in a different agent's store.
2026-02-13 18:46:54 +01:00
..
2026-02-13 18:46:54 +01:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 17:18:49 +00:00
2026-02-13 16:18:16 +01:00
2026-02-13 14:28:22 +00:00
2026-02-08 04:53:31 -08:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-13 02:02:01 +01:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-13 04:25:05 +01: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-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-01-19 10:44:18 +00:00
2026-02-13 15:48:37 +01:00
2026-02-13 16:18:16 +01:00
2026-02-10 07:31:02 -05:00
2026-01-31 16:19:20 +09:00
2026-02-13 04:25:05 +01:00
2026-02-13 16:18:16 +01:00
2026-01-18 16:35:52 +00:00
2026-02-01 10:03:47 +09:00
2026-01-18 16:35:52 +00:00
2026-01-18 16:35:52 +00:00
2026-02-13 16:18:16 +01:00
2026-02-13 16:18:16 +01:00
2026-02-12 16:48:46 -05:00
2026-02-01 10:03:47 +09:00
2026-02-13 17:18:49 +00:00
2026-02-13 16:18:16 +01:00
2026-02-01 10:03:47 +09:00
2026-01-18 16:35:52 +00:00
2026-02-13 15:48:37 +01:00
2026-02-13 15:48:37 +01:00
2026-02-05 15:14:50 -08:00
2026-02-05 16:54:44 -05:00
2026-02-13 17:32:14 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-13 16:18:16 +01:00
2026-01-14 05:39:47 +00:00
2026-01-31 16:19:20 +09:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-01-18 01:00:24 +00:00
2026-02-13 14:28:22 +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-02-01 10:03:47 +09:00
2026-02-13 17:04:41 +01:00
2026-02-13 17:04:41 +01:00
2026-02-13 14:28:22 +00:00
2026-02-13 17:04:41 +01:00
2026-02-01 10:03:47 +09:00
2026-01-14 15:02:19 +00:00
2026-02-13 14:28:22 +00:00
2026-02-11 13:07:30 -05:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-01-14 15:02:19 +00:00
2026-02-13 14:28:22 +00:00
2026-02-06 22:17:09 -08:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-04 19:51:06 +00:00
2026-02-13 14:28:22 +00:00
2026-02-09 17:02:55 -08: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-13 14:28:22 +00:00
2026-01-30 03:16:21 +01:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 16:18:09 +09:00
2026-02-13 16:43:39 +01:00
2026-02-13 16:43:39 +01:00
2026-02-08 16:20:13 -05:00
2026-02-13 14:28:22 +00:00
2026-01-28 00:16:00 +00:00
2026-02-06 01:14:00 -05:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-04 19:51:06 +00:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-01-31 16:19:20 +09:00
2026-02-13 14:28:22 +00:00
2026-01-31 16:19:20 +09:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-13 16:08:38 +00:00
2026-02-01 10:03:47 +09:00
2026-02-05 16:54:44 -05:00
2026-02-13 15:48:37 +01:00
2026-02-13 15:48:37 +01:00
2026-02-13 14:28:22 +00:00
2026-02-13 14:28:22 +00:00
2026-01-16 00:42:28 +00:00
2026-02-01 10:03:47 +09:00
2026-01-18 07:46:00 +00:00
2026-01-17 18:19:55 +00:00
2026-01-31 16:19:20 +09:00
2026-02-13 16:18:16 +01:00
2026-02-13 16:18:16 +01:00
2026-02-13 16:18:16 +01:00
2026-02-05 12:09:23 -08:00
2026-02-01 10:03:47 +09:00
2026-02-13 16:18:16 +01:00
2026-02-13 14:28:22 +00:00
2026-02-12 16:48:46 -05:00
2026-02-13 16:18:16 +01:00
2026-02-13 16:43:39 +01:00
2026-02-13 16:43:39 +01:00
2026-02-13 14:28:22 +00:00
2026-02-11 14:48:45 -05:00
2026-02-13 17:04:41 +01:00
2026-02-13 17:04:41 +01:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-11 13:07:30 -05:00
2026-02-13 16:20:37 +00:00
2026-02-13 16:18:16 +01:00
2026-02-01 10:03:47 +09:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-09 13:27:21 -06:00
2026-02-13 15:23:46 +00:00
2026-02-01 12:55:22 +00:00
2026-02-05 16:54:44 -05:00
2026-02-13 17:18:49 +00:00
2026-02-13 17:18:49 +00:00
2026-02-13 14:48:45 +00:00
2026-02-05 16:54:44 -05:00
2026-02-05 16:54:44 -05:00
2026-02-01 10:03:47 +09:00
2026-02-08 04:53:31 -08:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-08 04:53:31 -08:00
2026-02-13 14:28:22 +00:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-12 23:52:19 -05:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:25:26 +01:00
2026-02-13 14:25:26 +01:00
2026-02-08 04:53:31 -08:00
2026-02-01 10:03:47 +09:00
2026-02-08 04:53:31 -08:00
2026-02-01 10:03:47 +09:00
2026-02-13 14:28:22 +00:00
2026-02-12 23:52:19 -05:00
2026-01-31 16:19:20 +09:00
2026-02-01 10:03:47 +09:00
2026-02-02 23:45:05 -08:00
2026-02-12 23:52:19 -05:00
2026-01-14 05:39:47 +00:00
2026-02-12 23:52:19 -05: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-13 14:28:22 +00:00
2026-02-12 19:16:04 +01:00