Cache output bundle previews in memory#45
Merged
t-kalinowski merged 8 commits intomainfrom Apr 23, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This makes files-mode output bundle previews follow a one-way memory-to-disk model.
Previously, later replies for image-heavy output bundles could write preview images to disk and then read those same files back to rebuild inline previews. That made reply rendering depend on old bundle files still being present. This change keeps the bounded preview images in memory and treats the bundle directory as append-only history for clients and debugging.
User facing changes
No intended user-facing behavior change.
Output bundles still use the same public layout and disclosure paths:
transcript.txt,events.log,images/, andimages/history/.Internal changes
ActiveOutputBundle.transcript.txtis recreated for later appends without replaying earlier spilled text.docs/plans/completed/.