Skip to content

Commit bdacbb7

Browse files
jsell-rhclaude
andcommitted
docs(runner): update GRPCMessageWriter module docstring
Reflects the streaming TEXT_MESSAGE_END design replacing the old MESSAGES_SNAPSHOT batch approach. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 66926bf commit bdacbb7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

components/runners/ambient-runner/ambient_runner/bridges/claude/grpc_transport.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
(a) bridge._active_streams[thread_id] queue — feeds the /events SSE tap
99
(b) GRPCMessageWriter — assembles and writes the durable DB record
1010
11-
GRPCMessageWriter — per-turn event consumer.
12-
Accumulates MESSAGES_SNAPSHOT content.
13-
Pushes one PushSessionMessage(event_type="assistant") on RUN_FINISHED / RUN_ERROR.
11+
GRPCMessageWriter — real-time assistant text writer.
12+
Accumulates TEXT_MESSAGE_CONTENT deltas, pushes on TEXT_MESSAGE_END.
13+
Each assistant turn gets a server-assigned seq at its correct chronological
14+
position relative to tool events. push_error() handles crash recovery.
1415
1516
When AMBIENT_GRPC_ENABLED is not set, none of this code is instantiated or called.
1617
"""

0 commit comments

Comments
 (0)