fix(api): restore tool activity + reasoning blocks on chat history reload

↗ view on GitHub · Jason Lee · 2026-05-13 · febe83f5

snapshotMessagesToMikeMessages now handles nested Strands snapshot format:
- toolUse/toolResult blocks use nested objects (no type field) not flat Bedrock format
- reasoning blocks parsed and emitted as reasoning events
- text block filters exclude nested blocks to avoid false matches
- read_document filename extracted from document_metadata block in result text
Repository dropthejase/louis
Author Jason Lee <12leeejk2@gmail.com>
Authored
Parents 838d29ba
Stats 2 files changed , +63 , -28
Part of AgentCore conversation persistence via S3 (not SessionManager)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-febe83f5.md from inside the repo you want the change in.

⬇ Download capture-commit-febe83f5.md