The adapter returns the session/prompt response before the agent
finishes working. Late-arriving notifications raced past the turn
marker and leaked into the next turn, making each response appear
one prompt behind.
The event pump now sends a settled oneshot through the done payload
and awaits it before processing further messages.
finish_queued_acp_turn fires it after persisting the turn marker and
dispatching any queued prompt.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>