fix: resend authoring context to replacement ACP sessions

This commit is contained in:
Danila Poyarkov 2026-09-13 21:27:32 +03:00
parent ccbae39b3c
commit 3a2c7ec46f

View file

@ -142,6 +142,7 @@ export class ACPChatTransport implements ChatTransport<UIMessage> {
if (!this.session) {
this.session = await this.spawnAgent()
this.sentContext = false
}
const promptText = this.sentContext ? text : `${SYSTEM_PROMPT}\n\n${text}`