mirror of
https://github.com/chenhg5/cc-connect.git
synced 2026-07-03 12:28:10 +08:00
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>