Skip to content

fix: chat.send resolves on first terminal output - #75

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
fix-chat-send-first-output
Jun 11, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
fix-chat-send-first-output

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Found by the first live MCP call (#73/#74): messages_send delegates to chat.send, whose dispatch awaited runAgent — which only settles when the runner process exits (idle timeout, up to 30 min), long after the reply streamed as an event. Same root cause as the #28 spinner. Now resolves on the first terminal output; the process still lingers for follow-up IPC; errors settle it too. Also corrects WS chat.send res timing for request/response clients (openclaw TUI awaits this res). Tests 153/153 (multi-output streaming test updated to the new, semantically-correct timing).

The runner process lingers after replying (polling IPC until the idle
timeout), and runAgent only settles on exit — so chat.send responses,
and therefore MCP messages_send, blocked for up to 30 minutes while
the reply sat in the event stream. Resolve on the first terminal
output (every ContainerOutput is a completed turn); later outputs
still stream as events. Found live: the first real MCP call hung.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant