Repository navigation
revert: default hard context admission (#189810) - #189891
Merged
Merged
Conversation
Revert e44b8f4 (#189810), which introduced unconditional provider-bound pressure checks and overflow copy changes across eight failed jobs in scheduled full CI 41252475393. Restore the previous opt-in behavior, fixtures, recovery copy and docs as one clean inverse. Real Gateway child-result tests fail before rollback, as does the runner prompt-cache integration. Accepted rollback risk: long tool turns can again overflow with the optional precheck disabled. Co-authored-by: steipete <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
November 1, 2026 00:23
Collaborator
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Nov 1, 2026
…ed-backup-search-exports-20261101 * commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc': fix(ci): keep backup and chat search internals private (#189894) fix(codex): recover unused native threads without dropping history (#189900) fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855) perf(test): parse the Mantis resolver workflow once (#189801) fix(agents): revert default hard context admission (#189891) refactor(test): use canonical tracked temp paths (#189800) chore(ui): refresh control ui locales (#189898) improve: show gateway commit and build time on About refactor(test): share SDK export fixture JSON writes (#189799) fix: restore Files navigation from unavailable previews (#189879) refactor(test): share raw ratchet fixture writes (#189798) fix(ai): honor Model Studio compatible-mode output limits (#189870) fix: hold queued messages through inline edits (#189869) perf(test): reuse the baseline fixture Node resolver (#189790) test(qa): correlate handoff replies by run identity (#189885) fix(ui): normalize canonical Unicode in local search comparisons (#189874) fix(ui): explain unsupported browsers without module scripts (#189883) # Conflicts: # ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 1, 2026
Revert fe5a903 (openclaw#189810), which introduced unconditional provider-bound pressure checks and overflow copy changes across eight failed jobs in scheduled full CI 41252475393. Restore the previous opt-in behavior, fixtures, recovery copy and docs as one clean inverse. Real Gateway child-result tests fail before rollback, as does the runner prompt-cache integration. Accepted rollback risk: long tool turns can again overflow with the optional precheck disabled. Co-authored-by: steipete <[email protected]>
steipete
added a commit
that referenced
this pull request
Nov 1, 2026
) * fix(agents): compact long tool turns and publish current context totals Start client maintenance at 75% of the active context window while preserving provider and native compaction ownership. Check every prepared request against the hard window using nominal occupancy, calibrated tool-result estimates, and provider-measured context plus pending additions. Publish current context through the existing guarded session writer and let final ordered accounting supersede intermediate snapshots. Retire downstream mixed-counter repairs; invalidate old prompt-only freshness stamps without a schema change or new configuration. Preserve the working 32k prompt-cache fixture and repair impossible lifecycle fixture windows from the reverted admission rollout. Include red-on-parent long-turn/accounting regressions and repair the cold native-auth test setup. Related: #189810, #189891, #189888, #164551. Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]> * fix(agents): complete nominal context admission and accounting cutover * fix(agents): share lexical pricing with compaction summary fitting * test(agents): align context consumers and isolate announce state * test: await archive and steering fixture handoffs Join the database lifecycle before raw archive fixture seeding, and wait for runtime steering admission before releasing the held document request. Preserve the existing behavior assertions and allocate exact regression lines. Archive admission passes 17/17; steering passes 6/6. The CI assertions did not reproduce locally, but diagnostic probes exposed the asynchronous fixture handoffs. Fresh Codex review found no actionable findings. --------- Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 2, 2026
…claw#190017) * fix(agents): compact long tool turns and publish current context totals Start client maintenance at 75% of the active context window while preserving provider and native compaction ownership. Check every prepared request against the hard window using nominal occupancy, calibrated tool-result estimates, and provider-measured context plus pending additions. Publish current context through the existing guarded session writer and let final ordered accounting supersede intermediate snapshots. Retire downstream mixed-counter repairs; invalidate old prompt-only freshness stamps without a schema change or new configuration. Preserve the working 32k prompt-cache fixture and repair impossible lifecycle fixture windows from the reverted admission rollout. Include red-on-parent long-turn/accounting regressions and repair the cold native-auth test setup. Related: openclaw#189810, openclaw#189891, openclaw#189888, openclaw#164551. Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]> * fix(agents): complete nominal context admission and accounting cutover * fix(agents): share lexical pricing with compaction summary fitting * test(agents): align context consumers and isolate announce state * test: await archive and steering fixture handoffs Join the database lifecycle before raw archive fixture seeding, and wait for runtime steering admission before releasing the held document request. Preserve the existing behavior assertions and allocate exact regression lines. Archive admission passes 17/17; steering passes 6/6. The CI assertions did not reproduce locally, but diagnostic probes exposed the asynchronous fixture handoffs. Fresh Codex review found no actionable findings. --------- Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
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
Reverts our regression in #189810 (
e44b8f449184), which broke eight node jobs in scheduled full CI 41252475393 by applying conservative context admission to previously working turns.User Impact
Restores the opt-in context-pressure checks and earlier overflow recovery behavior. This explicitly re-accepts the earlier risk that long tool turns can overflow with
midTurnPrecheckdisabled. That risk needs a fresh forward fix later.Why This Change Was Made
This urgent rollback is a clean inverse of our own change, restoring runtime behavior, consumer expectations, and configuration documentation together. No fixture budgets, assertions, retries, or baselines are weakened. Related #189888 adjusts fixtures while retaining the admission policy; this rollback deliberately withdraws that policy.
Evidence
f121a7f70da4; the patch is unchanged and all 18 reverted file blobs match the parent ofe44b8f449184. Fresh-head focused rerun passes 279/279 across 21 files: all 49 named failure tests, 216 touched consumers, and 14 prompt-prefix stability cases (four Vitest shards, 887.08s including preparation).c633ec6376e1..f365b8b5431a: scoped-clean, no findings. It reviewed the complete inverse with unchanged-source context limitations and did not execute tests. The rebase is patch-identical; source inspection and boundary tests supply separate evidence.agent-runner.runreplyagent.e2e.test.ts, in the cases preserving explicit native OpenAI, default native OpenAI, default OpenAI with an unavailable selected profile, and API-key OpenAI compaction ownership before the first attempt. All fail because shared auth store ownership is not prepared atsetRuntimeAuthProfileStoreSnapshot. A representative failure reproduces before the revert with fix: prevent context overflow during long tool turns #189810 still present; relevant auth sources are unchanged. The two restored overflow-copy cases pass. This is an auth-fixture setup gap, not a claimed passing full E2E suite.Simplify pass: one clean inverse, no new owner, wrapper, state, dependencies, or configuration. Broad proof comes from exact-head PR CI.
Requested by @steipete
Work sessions
Discussion, implementation and verification