We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6c1fc1 commit 8bd3c69Copy full SHA for 8bd3c69
packages/core/src/v3/inputStreams/manager.ts
@@ -195,6 +195,15 @@ export class StandardInputStreamManager implements InputStreamManager {
195
})
196
.finally(() => {
197
this.tails.delete(streamId);
198
+
199
+ // Auto-reconnect if there are still active handlers or waiters
200
+ const hasHandlers =
201
+ this.handlers.has(streamId) && this.handlers.get(streamId)!.size > 0;
202
+ const hasWaiters =
203
+ this.onceWaiters.has(streamId) && this.onceWaiters.get(streamId)!.length > 0;
204
+ if (hasHandlers || hasWaiters) {
205
+ this.#ensureStreamTailConnected(streamId);
206
+ }
207
});
208
this.tails.set(streamId, { abortController, promise });
209
}
0 commit comments