Mohamed Boudra 035a77f198 Fix Claude agent test for tool hydration from persisted history
The test was failing because it was checking for tool data in a `raw` field
that no longer exists in the AgentToolCallData interface. The interface now
uses a `result` field instead of `raw`.

Updated all references from `snapshot.data.raw` to `snapshot.data.result` to
match the current AgentToolCallData structure defined in packages/app/src/types/stream.ts:

- Changed editTool search to use rawContainsText(snapshot.data.result, ...)
- Changed readTool search to use rawContainsText(snapshot.data.result, ...)
- Updated assertHydratedReplica callbacks to check data.result instead of data.raw
- Removed fallback checks for data.raw since that field doesn't exist

This appears to be a result of a refactoring where the `raw` field was renamed
to `result` in the AgentToolCallData interface, but the test wasn't updated to
match the new structure.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 01:29:11 +00:00
Description
Languages
TypeScript 98.1%
JavaScript 1.3%
Shell 0.1%
Swift 0.1%