Repository navigation
refactor(agents): privatize state reset seams - #108285
Merged
Merged
Conversation
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 16, 2026
* refactor(agents): privatize state reset seams * chore(deadcode): shrink agents state seam baseline
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
* refactor(agents): privatize state reset seams * chore(deadcode): shrink agents state seam baseline
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
Seven agent test-only reset/helper exports remained grandfathered in the dead-export baseline. They were not production API, but tests imported them directly from runtime modules.
Part of #105595.
Why This Change Was Made
The runtime helpers are now module-private. Tests reach them through dedicated
*.test-support.tsmodules backed by test-environment-only handles. Runtime behavior and state ownership stay unchanged.Scope:
User Impact
No user-visible behavior change. Production module surfaces shrink; test isolation remains covered through explicit test-support boundaries.
Evidence
+0/-7); zero additions or cascades.tbx_01kxjtpx9sx2vpt8n4zbbnran1, Actions run 29413974308: regeneration byte-stable, exact Knip 156, 29 focused suites / 852 tests green.tbx_01kxjsya3rbjf5vwxwk1h5tcht, Actions run 29413164064: targetedoxfmt, type-awareoxlint,tsgo:core, and full core/extensions/root test types green.