fix: acp/zed race condition between MCP initialisation and prompt (#20205)

Signed-off-by: Kartik Angiras <angiraskartik@gmail.com>
This commit is contained in:
kartik
2026-02-28 23:03:08 +05:30
committed by GitHub
parent 6c65a2d813
commit b2214a6676
5 changed files with 39 additions and 2 deletions
@@ -521,6 +521,8 @@ export class Session {
const pendingSend = new AbortController();
this.pendingPrompt = pendingSend;
await this.config.waitForMcpInit();
const promptId = Math.random().toString(16).slice(2);
const chat = this.chat;