Skip to content

AI-native design editor. Open-source Figma alternative.

Use full system prompt for ACP agents instead of short context

Anton A S55ba13b43b16
diff --git a/src/ai/acp-transport.ts b/src/ai/acp-transport.ts
index 47bc39da9..5ab8d3e1c 100644
--- a/src/ai/acp-transport.ts
+++ b/src/ai/acp-transport.ts
@@ -1,6 +1,6 @@
import { ClientSideConnection, ndJsonStream, PROTOCOL_VERSION } from '@agentclientprotocol/sdk'
-import { ACP_DESIGN_CONTEXT } from '@/constants'
+import SYSTEM_PROMPT from '@/ai/system-prompt.md?raw'
import { mapUpdate } from './acp-map-update'
@@ -133,7 +133,7 @@ export class ACPChatTransport implements ChatTransport<UIMessage> {
this.session = await this.spawnAgent()
}
- const promptText = this.sentContext ? text : `${ACP_DESIGN_CONTEXT}\n\n${text}`
+ const promptText = this.sentContext ? text : `${SYSTEM_PROMPT}\n\n${text}`
this.sentContext = true
const { connection, sessionId } = this.session