Files
chenhg5-cc-connect/agent
cg33 3087e8563f fix(acp): improve vendor compatibility for session/update parsing (#434)
Add support for alternative JSON formats in ACP session/update messages
to handle different vendor implementations (OpenClaw, OpenCode, etc.).

Changes:
- Add debug logging to capture raw session/update JSON for troubleshooting
- Support multiple text field formats in mapAgentMessageChunk:
  - Standard ACP: content.text with type field
  - Alternative: content.text without type
  - Alternative: top-level text field
  - Alternative: content as string
- Enhance fallback text extraction for unknown sessionUpdate types
- Add tests for all alternative formats

Fixes #432

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-07 14:53:47 +08:00
..