Files
kilocode/packages
Marius 3a923f36b4 fix(cli): suppress AI SDK system message warning in TUI (#12739)
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.
2026-07-31 15:03:13 +00:00
..
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00
2026-07-29 11:29:05 +00:00