You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript SDK: log socket buffering and reconnect hardening #69292
The Java and Go SDK runtimes buffer logs while the log socket is not yet connected. The TypeScript coordinator runtime connects the log socket before runtime logs begin, which covers startup, but has no buffering for reconnect scenarios.
What needs to happen
Add log buffering to the TypeScript runtime's log channel so logs emitted while the socket is disconnected (including reconnects) are held and flushed once connected, matching the Java and Go implementations.
Acceptance criteria
Logs emitted before connection or during a reconnect are not lost.
@jason810496 I took a closer look at the TypeScript runtime startup order. TypeScript establishes the log socket before creating or using the runtime, comm, and client loggers. Most failures before that point, such as invalid arguments, bundle initialization failures, or failure to connect to the log socket, also mean there is no usable log connection. Those failures must go through stderr, which the coordinator already captures. Therefore, there are currently no LogChannel records waiting to be buffered before the initial connection.
Once connected, Node already buffers ordinary socket writes internally when they cannot be sent immediately (Node documentation).
Activity
shivaam commentedon Jul 9, 2026
@jason810496 I took a closer look at the TypeScript runtime startup order. TypeScript establishes the log socket before creating or using the runtime, comm, and client loggers. Most failures before that point, such as invalid arguments, bundle initialization failures, or failure to connect to the log socket, also mean there is no usable log connection. Those failures must go through stderr, which the coordinator already captures. Therefore, there are currently no LogChannel records waiting to be buffered before the initial connection.
Once connected, Node already buffers ordinary socket writes internally when they cannot be sent immediately (Node documentation).
fyi: @uranusjr