Group of 2 You'll notice
Exported and re-imported session transcripts now correctly preserve tool-use messages, including file writes
What
- When rebuilding an assistant message during session export/import,
stop_reasonis no longer always set toend_turn; it is now set totool_usewhen the message actually contains tool-use blocks. - When importing an assistant message, file-write tool calls are now reconstructed and re-added as
tool_useblocks (with theirfile_pathandcontent), in addition to the existing text-block handling.
Why Previously, exporting and re-importing a session could lose or mislabel tool-use information, such as file writes a session had made. This keeps transcripts more faithful when moved between sessions or environments.