Repository navigation
refactor(config): retire compaction truncateAfterCompaction gate - #115206
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 28, 2026 13:21
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Jul 28, 2026
* origin/main: test(codex): de-flake attempt turn-watch timing tests (#115258) fix: preserve retryable ACPX lease ownership (#115247) fix: serialize ACPX lease ownership transitions fix: retain ACPX leases across wrapper reconnects refactor: parse ACPX lease command identity fix: preserve OpenClaw profile env in macOS launch-at-login plist (#99752) refactor(config): retire compaction truncateAfterCompaction gate (#115206) improve(ui): reduce duplicate chat startup work (#114743) fix(ui): keep reconnects, browser tabs, and localized search consistent (#115221) perf(pr): cache complete small file lists (#115199) perf(sqlite): skip no-op automatic schema repair (#115193) docs(browser): correct Docker sandbox setup (#115254) fix(ui): avoid duplicate session refreshes during startup (#114764) # Conflicts: # ui/src/pages/agents/panels-tools-skills.browser.test.ts
vincentkoc
added a commit
that referenced
this pull request
Jul 28, 2026
* origin/main: test(codex): de-flake attempt turn-watch timing tests (#115258) fix: preserve retryable ACPX lease ownership (#115247) fix: serialize ACPX lease ownership transitions fix: retain ACPX leases across wrapper reconnects refactor: parse ACPX lease command identity fix: preserve OpenClaw profile env in macOS launch-at-login plist (#99752) refactor(config): retire compaction truncateAfterCompaction gate (#115206) improve(ui): reduce duplicate chat startup work (#114743) fix(ui): keep reconnects, browser tabs, and localized search consistent (#115221) perf(pr): cache complete small file lists (#115199) perf(sqlite): skip no-op automatic schema repair (#115193) docs(browser): correct Docker sandbox setup (#115254) fix(ui): avoid duplicate session refreshes during startup (#114764)
This was referenced Jul 28, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 29, 2026
This was referenced Aug 16, 2026
[Bug]: Post-turn compaction ignores compaction/reset boundaries and delays completed replies
#117358
Closed
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.
What Problem This Solves
agents.defaults.compaction.truncateAfterCompactionis a stale two-flag trap. #113233 deleted the file-era JSONL successor-transcript rotation the flag originally controlled, leaving it as a pure enable-gate formaxActiveTranscriptBytes: a configured byte threshold silently no-ops unless the second flag is also set (#100529), and the config help/type docs still describe deleted rotation behavior.Why This Change Was Made
Per the config-surface-reduction bar, a knob whose only job is to arm another knob should not exist. After this change,
maxActiveTranscriptBytes > 0alone opts in to both remaining behaviors:resolveMaxActiveTranscriptBytesinsrc/auto-reply/reply/memory-flush.ts)extensions/codex/src/app-server/startup-binding.ts), where the behaviorally deadtruncateAfterCompactiontail block is also deleted; the context-engine bootstrap deferral is preservedopenclaw doctor --fixmigrates shipped configs: the retired key is stripped everywhere; when a config had the explicit opt-outtruncateAfterCompaction: falsealongside a configuredmaxActiveTranscriptBytes, the byte threshold is removed too so the user's explicit opt-out is preserved. Config help, labels, type docs, and the three docs pages are rewritten to the actual semantics.User Impact
maxActiveTranscriptBytesnow does what it says with no second flag — this fixes the silent-no-op half of Tool-result pruning silently omits results (reads as 'empty output'); maxActiveTranscriptBytes silently no-ops without truncateAfterCompaction #100529 (the issue's tool-result-pruning asks are already implemented on main: persistence-time capping and outbound-only projection truncation with explicit markers).maxActiveTranscriptBytesset without the old flag previously had a documented no-op; after upgrade the byte guard activates, matching the intent the value expresses. Users with the explicitfalseopt-out keep their opt-out via the doctor migration.ownsNativeCompactionshort-circuit #108984) next; PR fix(doctor): warn when maxActiveTranscriptBytes is set without truncateAfterCompaction #110356 (doctor warning for the retired gate combination) becomes obsolete.Closes #100529.
Evidence
node scripts/run-vitest.mjsover the doctor migration tests, config schema tests,agent-runner-memorytests, and the Codexstartup-bindingtests — 4 shards, 250 tests passed; help-quality suite 24 passed;git diff --checkclean.{true + maxBytes}→ flag stripped/maxBytes kept,{false + maxBytes}→ both removed,{true}→ stripped, untouched config → no changes.gpt-5.6-sol, xhigh): clean, no accepted findings.../codexsource (codex-rs/app-server/src/request_processors/thread_processor.rs,codex-rs/rollout/src/recorder.rs).