Subagent transcripts can be fetched only when needed, with resume reporting how much was read.
What's wrong with this entry?
The session writer now tracks which subagent transcripts to skip fetching and counts the fetches it does make, and resume telemetry reports how much subagent history was read and which hydration mode was used. Whether the deferred path runs is decided by session state rather than a flag in this code.
- New internals:
internalAgentEventReader,subagentLazyHydrate,agentIdsNotToFetch,agentTranscriptFetches. - Telemetry gained
subagent_readand asubagent_hydratemode; the old boolean is now derived from that mode beingskipped_delta.
subagentLazyHydrate
Strings lifted out of the shipped bundle, so the claim above can be checked against them.