mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-21 15:49:15 +01:00
3597bff21d
* add logs * fix _currentNewSession race in async send flows Async commit-wait flows (_sendFirstChat, _sendFirstChatViaController, _sendSubsequentChat) unconditionally cleared _currentNewSession on completion. When a newer session was created while the previous one was still awaiting commit, the clear stomped the newer session's pointer — causing 'Session not found' errors on the next send. Extract _clearCurrentNewSessionIfMatch() that only clears when the value still points at the session that initiated the async flow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * enable claude test * update logging --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>