core: prevent duplicate user messages in ACP clients (#22468)

This commit is contained in:
Aiden Cline
2026-04-14 11:37:33 -05:00
committed by GitHub
parent a8f9f6b705
commit b1312a3181
2 changed files with 46 additions and 0 deletions

View File

@@ -453,6 +453,12 @@ export namespace ACP {
return
}
}
// ACP clients already know the prompt they just submitted, so replaying
// live user parts duplicates the message. We still replay user history in
// loadSession() and forkSession() via processMessage().
if (part.type !== "text" && part.type !== "file") return
return
}