-
-
Notifications
You must be signed in to change notification settings - Fork 69.6k
Route heartbeats to isolated system session (avoid thread pollution) #11393
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Request: Route Heartbeats to Isolated System Session
Problem
When a heartbeat poll fires during an active conversation, the HEARTBEAT_OK response gets injected into the user's conversation thread, causing confusion.
Example:
User: Can you email me this plan?
Assistant: [sends email]
[heartbeat poll arrives]
Assistant: HEARTBEAT_OK
User: What are you talking about? Your reply doesn't match the thread at all
Proposed Solution
Heartbeat polls should:
- Route to a dedicated "system" session that never posts to active user conversations
- OR be suppressed entirely when the main session has recent (< 30 min) user activity
- OR heartbeat responses should be marked as "silent" and not rendered in the conversation thread
Current Workaround
Agents can detect mid-conversation state and skip heartbeat responses, but this is fragile and relies on agent-side logic.
Impact
User confusion, broken conversation flow, loss of trust when the assistant appears to be talking nonsense.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.