Repository navigation
refactor: fold single-consumer internal owners - #181769
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
steipete
marked this pull request as ready for review
October 23, 2026 16:59
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
enabled auto-merge (squash)
October 23, 2026 17:08
steipete
disabled auto-merge
October 23, 2026 17:11
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 24, 2026
* refactor: fold single-consumer internal owners * fix(ui): follow plugin verdict copy in generated 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
Single-consumer modules and private one-use type frames split internal responsibilities across unnecessary files and names.
What Changed
Fold static Discord component handlers, Telegram list rendering, and small UI renderers into their existing consumers. Localize inbound envelope labels, CLI debug scanning, package normalization, and status-display preparation. Put exact private type shapes at their sole annotations; preserve public entry points and lazy renderer imports.
Net production reduction: 157 lines across 44 paths. Tests/support shrink by 2 lines net across 9 paths. The orphan input-dialog documentation link follows its owner. Relocated bodies receive only their actual net framing reduction, not wholesale deletion credit.
Best-effort tradeoffs accepted
None newly introduced. Existing guards, validation, authorization, fallback behavior, resource bounds, public SDK/protocol/config/CLI contracts and persisted shapes remain. Status display specializes the sole caller's already-fixed warning prefix; shared network discovery stays shared. The standalone session-memory backend is untouched.
Evidence
Focused existing suites and targeted native types, typed lint, format and line caps passed serially for each touched owner: LINE/Zalo/Tlon 81 cases; Discord public entries 29; UI config/desktop/plugin presentation 39; UI private annotations 79; package normalization 34; CLI debug scanning 28; Telegram rendering 84; five static UI folds 96; envelope formatting 26; status gathering 53. UI alias proof passed 12 unit and 24 browser cases.
Retained helper assertions moved to existing public entry points and passed before and after the folds. The status fallback case moves intact into the existing service-inspection registration to respect the gather-file cap. The raw-editor undo test now uses Vitest's cross-platform ControlOrMeta shortcut instead of Control-Z on macOS; all DOM identity, selection, undo and callback assertions remain unchanged. No retries, skips, timeout increases, suppressions or new baseline allowances.
Final checks passed: formatter parity, assertion safety, lint-suppression tests, mock-export safety, wrapper/eager-import closure, frozen updater bindings and stable prompt prefix, runtime cycles (zero), static cycles (zero), line caps and UI controller guards. Fresh independent review found no actionable P0–P2 defects. Hosted exact-head PR CI supplies broad builds and E2E; these were intentionally not run locally under the campaign CPU budget. No intended pixel or user-visible behavior change.
CI repair: generated raw-copy ownership
The first exact-head run failed control-ui-i18n and check-lint on the same owned cutover detail: the existing intentional Clean/Review strings moved from the retired security-audit module to overview, but their raw-copy baseline paths did not. The exact local verifier reproduced that error. Regenerating with the canonical keyless baseline command relocates only those two path fields; all 71 entries, strings, counts and metadata remain unchanged. No new allowance, translation-memory edit or production/test change.
The exact verifier passes after repair; all 11 public overview and 14 suppression cases pass. The baseline retains canonical generated JSON formatting (the generic formatter intentionally excludes it). Independent incremental P0–P2 review is clean. The old auto request was retired before this repair; replacement-head CI is required.