Skip to content

Commit 355aa8e

Browse files
committed
docs(openai): clarify fallback cleanup ownership
1 parent 38864b5 commit 355aa8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/ai/src/providers/openai-chatgpt-responses.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,8 @@ export function closeOpenAICodexWebSocketSessions(sessionId?: string): void {
920920
}
921921
closeWebSocketSilently(entry.socket, 1000, "debug_close");
922922
};
923-
// Sticky SSE fallback follows the cached socket lifecycle; otherwise reused
924-
// session ids stay degraded and the process-local set grows indefinitely.
923+
// Sticky SSE fallback follows the provider session-resource lifecycle;
924+
// otherwise reused session ids stay degraded and the set grows indefinitely.
925925
if (sessionId) {
926926
websocketSseFallbackSessions.delete(sessionId);
927927
const entry = websocketSessionCache.get(sessionId);

0 commit comments

Comments
 (0)