mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-01 15:32:11 +08:00
3a923f36b4
AI SDK 6 logs a console.warn when system messages appear in the messages array. OpenCode prepends trusted system prompts to messages in session/llm/request.ts, so the warning fires on every turn and bleeds into the TUI frame. Set allowSystemInMessages: true on the streamText call to acknowledge the trusted internal system messages and prevent the warning from corrupting terminal output. This also future-proofs against AI SDK 7, which rejects system messages by default.