Repository navigation
fix: avoid excessive disk writes during startup and metadata discovery - #16
Merged
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
MCP startup previously prewarmed task history, and compressed metadata probes decompressed entire logs into temporary disk files. Multiple plugin processes could therefore write tens of GB before the viewer was opened.
Serve MCP without history prewarming and stream bounded compressed headers for task discovery. Preserve complete frame/tail validation, pagination, filesystem checks, and task-local read budgets when a trajectory is requested. Add regression tests and update the English and Chinese documentation.
Privacy impact
Metadata and format probes read only bounded headers and create no decompression spool. Full history reads retain their existing validation and limits. Returned content, redaction, and full-detail consent remain unchanged; native read-limit retries still require a verified matching task identity.
Validation
uv run ruff format --check .uv run ruff check .uv run mypyand Windows platform type checksuv run pytest --cov --cov-report=term-missing— 629 passed on the isolated fix snapshot; 91.99% coverageA local probe of 803 synthetic compressed archives representing 13.47 GB of uncompressed history made no decompression-spool calls and recorded 0 B of disk writes during header discovery.