Skip to content

Fix rich content in failed tool results - #22

Merged
SmartAI merged 1 commit into
mainfrom
fix/error-tool-result-text
Jul 13, 2026
Merged

Fix rich content in failed tool results#22
SmartAI merged 1 commit into
mainfrom
fix/error-tool-result-text

Conversation

@SmartAI

@SmartAI SmartAI commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • convert non-text blocks in failed tool results to text before provider requests
  • preserve the original persisted result so inspection images remain available in the UI
  • cover ongoing-session results with a regression test

Cause

A CAD result could retain its inspection image after plan-conformance handling changed it to isError: true. Anthropic rejects image blocks inside failed tool results.

Verification

  • npm test -w @chamfer/client -- src/agent/contextPolicy.test.ts
  • npm test
  • npm run typecheck
  • npm run build

@SmartAI
SmartAI merged commit a7a9b80 into main Jul 13, 2026
1 check passed
@SmartAI
SmartAI deleted the fix/error-tool-result-text branch July 13, 2026 04:05
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.

1 participant