Skip to content

rust(fix): show read tool payloads to the agent, not only next_step - #852

Merged
bill-sift merged 1 commit into
mainfrom
claude/ecstatic-hawking-h171uw
Oct 23, 2026
Merged

bill-sift merged 1 commit into
mainfrom
claude/ecstatic-hawking-h171uw

Conversation

@bill-sift

Copy link
Copy Markdown
Contributor

preview_rule, list_rule_versions, list_calculated_channel_versions and list_report_rule_summaries replaced their result content with the next_step sentence. Claude Code shows the model content, not structuredContent, so agents saw an annotation or row count but none of the data, and retried preview_rule expecting results.

Add tool::common::read_result, which keeps the serialized JSON body in content after next_step, and use it in those four handlers. Document in CLAUDE.md when a read tool may replace content with next_step.

preview_rule, list_rule_versions, list_calculated_channel_versions and
list_report_rule_summaries replaced their result content with the
next_step sentence. Claude Code shows the model content, not
structuredContent, so agents saw an annotation or row count but none of
the data, and retried preview_rule expecting results.

Add tool::common::read_result, which keeps the serialized JSON body in
content after next_step, and use it in those four handlers. Document in
CLAUDE.md when a read tool may replace content with next_step.

Fixes ENG-16095

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpgNJv9a2xUnT6JrDztEpZ
@bill-sift
bill-sift merged commit 5472940 into main Oct 23, 2026
22 checks passed
@bill-sift
bill-sift deleted the claude/ecstatic-hawking-h171uw branch October 23, 2026 19:58
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.

3 participants