mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-21 14:56:28 +00:00
Claude Code forwards Agent-tool subagent records with parent_tool_use_id set; the streaming parser treated them as parent records, so subagent thinking streamed as the assistant's reasoning and subagent tool calls surfaced as unattributed top-level tool events. Gate the thinking/tool dispatchers and assistant-snapshot path on one shared isClaudeSubagentRecord guard. Also read Claude result errors[] (skipping [ede_diagnostic] telemetry) for every error result instead of reporting only the subtype name. Fixture: live Claude Code 2.1.234 stream-json capture with a background Explore subagent. Telegram E2E on the claude-cli backend shows the progress draft with only the parent Agent row. |
||
|---|---|---|
| .. | ||
| claude-2.1-subagent-forwarding.jsonl | ||
| claude-2.1-thinking-progress.jsonl | ||