Skip to content

fix(kiro): accept inline system messages#630

Open
xixiknow wants to merge 2 commits into
fawney19:mainfrom
xixiknow:codex/kiro-inline-system-messages
Open

fix(kiro): accept inline system messages#630
xixiknow wants to merge 2 commits into
fawney19:mainfrom
xixiknow:codex/kiro-inline-system-messages

Conversation

@xixiknow

@xixiknow xixiknow commented Jun 5, 2026

Copy link
Copy Markdown

Summary

  • 修复 Kiro 请求体包装失败的问题:当 messages[] 里出现 system / developer 消息,且尾部不是 user / assistant 时,不再直接返回 None
  • 将内联的 system / developer 消息折叠进系统提示,保持 Kiro conversationState 的构建稳定。
  • 增加回归测试,覆盖“尾部为 system 消息”时仍能正常构建 currentMessage 和 history 的场景。

Test plan

  • cargo test -p aether-provider-transport folds_inline_system_messages_into_instructions_and_keeps_last_user_as_current_message -- --nocapture
  • cargo test -p aether-provider-transport wraps_claude_request_into_kiro_payload_before_body_rules -- --nocapture

claude and others added 2 commits June 5, 2026 21:27
Fold system/developer messages into the Kiro instruction block so request-body construction no longer fails when the tail message is system-shaped.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants