Conversation summaries now cap system attachments by total size, not just by count
When Claude Code builds a shortened view of the conversation for internal use, it already limited how many system attachments (files or data folded into the conversation) it could include by count. It now also tracks a running total of their size in bytes and stops adding them once that budget is reached, in addition to the existing count limit. The underlying data is also now read through a function that can explicitly signal when there is no more data.
This prevents a conversation summary from growing too large just because it contains many small system attachments that individually stay under the count limit, keeping the summarized context bounded by actual size.