Skip to content

fix: avoid excessive disk writes during startup and metadata discovery - #16

Merged
icesixgod merged 1 commit into
mainfrom
codex/fix-excessive-disk-writes
Oct 22, 2026
Merged

icesixgod merged 1 commit into
mainfrom
codex/fix-excessive-disk-writes

Conversation

@icesixgod

Copy link
Copy Markdown
Owner

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 mypy and Windows platform type checks
  • uv run pytest --cov --cov-report=term-missing — 629 passed on the isolated fix snapshot; 91.99% coverage
  • Python 3.14 tests with resource warnings treated as errors — 629 passed
  • Release validation and packaged MCP stdio smoke test
  • English and Chinese documentation are synchronized
  • No real logs, credentials, base instructions, encrypted reasoning, or unredacted screenshots are included

A 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.

@icesixgod
icesixgod merged commit 19695c7 into main Oct 22, 2026
15 checks passed
@icesixgod
icesixgod deleted the codex/fix-excessive-disk-writes branch October 22, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant