[BUG] Empty result field in final success message when using --output-format stream-json
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [X] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.103
Bug Description
When using --output-format stream-json, the final message with subtype: success returns an empty result field instead of containing the actual response content/output.
Steps to Reproduce
Not sure, happens randomly with the following arguments:
-p
--verbose
--mcp-config [mcpFile]
--output-format stream-json
--max-turns 100
Expected Behavior
The final success message should contain the actual result/response content in the result field, providing the output from the conversation/task completion.
Actual Behavior
The final message shows subtype: success but has an empty result field, making it impossible to retrieve the actual output programmatically when using stream-json format.
Message before final message is always:
Todos have been modified successfully. Ensure that you continue to use the todo list to track your progress. Please proceed with the current tasks if applicable
Message before is from TodoWrite
And message before is actual content that I would expect with type=message
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗