-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Feature] Cross-session messaging between a user's own sessions #7962
Copy link
Copy link
Open
Labels
FeatureNew feature or requestNew feature or requestP2-mediumPriority: bug with workaround, important feature requestPriority: bug with workaround, important feature requestcomp:runnerComponent: agent runner, execution engineComponent: agent runner, execution enginecomp:serverComponent: server, API, session managementComponent: server, API, session managementtriagedIssue has been triaged by the botIssue has been triaged by the bot
Description
Activity
Metadata
Metadata
Assignees
Labels
FeatureNew feature or requestNew feature or requestP2-mediumPriority: bug with workaround, important feature requestPriority: bug with workaround, important feature requestcomp:runnerComponent: agent runner, execution engineComponent: agent runner, execution enginecomp:serverComponent: server, API, session managementComponent: server, API, session managementtriagedIssue has been triaged by the botIssue has been triaged by the bot
Problem or use case
Today a session can only message its own parent/child (sub-agent) sessions. There's no way for two sessions that aren't in a spawn hierarchy, a session on another compute, or otherwise unrelated sessions the same user owns to message each other. This blocks coordinator/worker and multi-compute workflows where peers need to hand off or nudge each other directly.
Proposed solution
Add a sys_session_message tool that delivers a message to any session the caller can already access (bounded by the existing per-user permission model), gated behind a cross_session_messaging release flag. Delivery reuses the existing message path (persist-before-forward, idle-wake) and is fire-and-forget. Messages carry a source_session_id marker so peer messages are identifiable, plus a chain-depth loop guard to bound runaway back-and-forth.
Alternatives considered
No response
Harness
Not applicable
Platform or device
Not platform-specific
Harness mode
Not applicable
Expected reach
Some users
Authentication type
Local