Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.267 ·

Session export/import better preserves tool-use messages

Exported and re-imported session transcripts now correctly preserve tool-use messages, including file writes

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaSessionswhat it touches
KindImprovementsin v2.1.267,
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_reason is no longer always set to end_turn; it is now set to tool_use when the message actually contains tool-use blocks.
  • When importing an assistant message, file-write tool calls are now reconstructed and re-added as tool_use blocks (with their file_path and content), 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.

See this entry in the whole of v2.1.267 →