fix: keep observe collect readable during artifact churn

This commit is contained in:
Codex
2026-07-02 03:55:25 +00:00
parent a5fde8cffb
commit 1b24e994f8
3 changed files with 25 additions and 7 deletions
@@ -2102,6 +2102,9 @@ function compactObserveCollectForRaw(collect: Record<string, unknown> | null): R
view: collect.view,
stateDir: collect.stateDir,
turnCount: collect.turnCount,
artifactFileCount: collect.artifactFileCount ?? collect.fileCount,
skippedFileCount: collect.skippedFileCount,
skippedFiles: Array.isArray(collect.skippedFiles) ? collect.skippedFiles.slice(0, 8) : undefined,
anchor: observeRecord(collect.anchor),
window: observeRecord(collect.window),
counts: observeRecord(collect.counts),