fix(sessions): reject thread send targets

This commit is contained in:
Peter Steinberger
2026-05-02 05:55:48 +01:00
parent f9c0375f26
commit 49be9a15fe
5 changed files with 73 additions and 0 deletions

View File

@@ -93,6 +93,11 @@ the response:
immediately.
- **Wait for reply:** set a timeout and get the response inline.
Thread-scoped chat sessions, such as Slack or Discord keys ending in
`:thread:<id>`, are not valid `sessions_send` targets. Use the parent channel
session key for inter-agent coordination so tool-routed messages do not appear
inside an active human-facing thread.
Messages and A2A follow-up replies are marked as inter-session data in the
receiving prompt (`[Inter-session message ... isUser=false]`) and in transcript
provenance. The receiving agent should treat them as tool-routed data, not as a