Repository navigation
refactor: fold private operation helpers into their callers - #177655
Conversation
|
🦞👀 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. |
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. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c6c327adb3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| if (mode === "remote") { | ||
| await runNonInteractiveRemoteSetup({ opts, runtime, baseConfig, baseHash: snapshot.hash }); | ||
| const remoteUrl = normalizeOptionalString(opts.remoteUrl); |
There was a problem hiding this comment.
Remove the retired remote-onboarding code reference
When the remote setup implementation is folded into this file, qa/scenarios/cli/cli-onboarding.yaml:27 is left pointing at the deleted src/commands/onboard-non-interactive/remote.ts. Remove that stale codeRefs entry so the onboarding scenario no longer advertises a nonexistent implementation file; the new owner is already listed immediately above it.
AGENTS.md reference: AGENTS.md:L50-L51
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR folds private helpers into their production callers and moves their tests to those callers. Example: Remote onboarding to wss://gateway.example.test with password replacement-password.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-owned consolidation is useful, but deleting the remote-onboarding module leaves a QA catalog reference that fails its existing contract test. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherCLI commands, Gateway maintenance, agent discovery, and bundled plugins own these operations; they consume configuration and requests and produce persisted updates, transport results, or channel output. flowchart TD
A[CLI commands and Gateway requests] --> B[Existing production owners]
C[Bundled plugin requests] --> B
B --> D[Configuration and state operations]
B --> E[Socket and provider transports]
B --> F[Channel replies and cards]
Technical reviewBest possible solution: Keep the owner consolidation and remove the obsolete remote.ts reference from the onboarding QA scenario. Do we have a high-confidence way to reproduce the issue? The existing catalog test deterministically rejects the deleted remote.ts reference; this was established from source without running tests. Is this the best way to solve the issue? Folding single-consumer transfer plumbing into existing owners is appropriate, and the remaining cutover repair needs only removal of the stale QA reference. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fa3b107c37d3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -511, Tests +24, Docs +6, Other -12. Total -493 across 63 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 19, 2026, 4:11 PM ET / 20:11 UTC. |
|
Merged via squash auto-merge.
|
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (#177614) fix(release): tag restart plugin cohorts consistently (#177725) refactor(ui): inline single-caller detail requests (#177705) chore(i18n): refresh native locales (#177721) refactor(codex): drop unread private runtime reports (#177689) refactor(ui): consolidate static artwork registries (#177692) refactor(ui): derive settings schema analysis in the view (#177624) refactor(media): consolidate capability defaults and compression grids (#177665) refactor(auth): bind OAuth managers to native provider operations (#177676) refactor(ui): remove redundant component rendering layers (#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082) fix(agents): report failed secret input prompt delivery (#177688) refactor(ui): share chat message render contracts (#177668) fix(ui): settle model status after overlapping publication (#177667) refactor(gateway): reuse native workspace and lifecycle facts (#177670) refactor(runtime): rely on canonical async lifecycle owners (#177635) refactor: fold private operation helpers into their callers (#177655) refactor(ui): remove unused chat leaf element adapters (#177582) perf(talk): use published authority for foreign voice writes (#177533) ...
#167350) * fix(pr): retain the admitted workflow across maintainer commands * fix: refresh the reviewed correction baseline Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163 * fix(pr): preserve cold workflow admission and repository identity * chore(pr): integrate canonical main CI repair * commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (#177614) fix(release): tag restart plugin cohorts consistently (#177725) refactor(ui): inline single-caller detail requests (#177705) chore(i18n): refresh native locales (#177721) refactor(codex): drop unread private runtime reports (#177689) refactor(ui): consolidate static artwork registries (#177692) refactor(ui): derive settings schema analysis in the view (#177624) refactor(media): consolidate capability defaults and compression grids (#177665) refactor(auth): bind OAuth managers to native provider operations (#177676) refactor(ui): remove redundant component rendering layers (#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082) fix(agents): report failed secret input prompt delivery (#177688) refactor(ui): share chat message render contracts (#177668) fix(ui): settle model status after overlapping publication (#177667) refactor(gateway): reuse native workspace and lifecycle facts (#177670) refactor(runtime): rely on canonical async lifecycle owners (#177635) refactor: fold private operation helpers into their callers (#177655) refactor(ui): remove unused chat leaf element adapters (#177582) perf(talk): use published authority for foreign voice writes (#177533) ... Co-authored-by: Vincent Koc <[email protected]>
…#177655) * refactor: fold private operation helpers into their callers * fix: resolve Feishu owner-fold lint errors
openclaw#167350) * fix(pr): retain the admitted workflow across maintainer commands * fix: refresh the reviewed correction baseline Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163 * fix(pr): preserve cold workflow admission and repository identity * chore(pr): integrate canonical main CI repair * commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits) test(gateway): restore local probe deferred import fix(agents): release prompt diagnostics for retired sessions (openclaw#177614) fix(release): tag restart plugin cohorts consistently (openclaw#177725) refactor(ui): inline single-caller detail requests (openclaw#177705) chore(i18n): refresh native locales (openclaw#177721) refactor(codex): drop unread private runtime reports (openclaw#177689) refactor(ui): consolidate static artwork registries (openclaw#177692) refactor(ui): derive settings schema analysis in the view (openclaw#177624) refactor(media): consolidate capability defaults and compression grids (openclaw#177665) refactor(auth): bind OAuth managers to native provider operations (openclaw#177676) refactor(ui): remove redundant component rendering layers (openclaw#177607) fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082) fix(agents): report failed secret input prompt delivery (openclaw#177688) refactor(ui): share chat message render contracts (openclaw#177668) fix(ui): settle model status after overlapping publication (openclaw#177667) refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670) refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635) refactor: fold private operation helpers into their callers (openclaw#177655) refactor(ui): remove unused chat leaf element adapters (openclaw#177582) perf(talk): use published authority for foreign voice writes (openclaw#177533) ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Private single-consumer modules repeat their caller's inputs in factories and transfer objects. Their tests often bypass the actual install, registration, transport, or provider operation.
User Impact
No intended user-visible behavior change, migration, or operator action. Public SDK exports, config keys, protocol and persisted shapes, CLI behavior, and lazy imports remain intact. Phase E session memory is untouched.
Why This Change Was Made
Fold private approval presentation preparation, queued-registration settlement, authenticated exec socket framing, update campaign/install/readiness helpers, web-search execution, env auth discovery, LINE card rendering, speech transports, Feishu comment delivery, thaw recovery, and remote onboarding into their existing production owners. Keep the operations' security, authority, durability, cancellation, bounds, retry, and outcome handling. Move private-helper tests to the actual requester/provider/handler/CLI/scheduler entry points; remove the retired modules and obsolete exact ratchet rows.
Update behavior is unchanged: host-owned and immutable installation refusals, campaign admission and cancellation, the lazy update runner, supervisor inspection, install payload transactions, nested leases, rollback, and visible warnings remain. Remote onboarding uses the same source snapshot/hash and commit operation, retaining credential replacement and SecretRef handling.
Net production LOC: 511 removed (+1,751 / -2,262), excluding tests, fixtures, test support, generated files, declarations, and inventories.
Best-effort tradeoffs accepted
Evidence
voidon a synchronous migrated-test callback. The repair only renames that local binding and removes the no-op operator. Selected typed lint and formatting passed; targeted extension types, 19 Feishu public delivery/handler cases, and the 14-case suppression audit passed again (170.14s test wrapper). The repaired exact head has fresh hosted CI; no CI job was rerun.line; they now return the realnewlinemode without casts. Both affected suites passed their 19-case replay.asOptionalRecordimport; this was rejected because the helper is already imported at line 14 (and was imported by the original provider). Actual Azure voice-discovery cases also passed in the extension proof above; no cosmetic review rerun was requested.Local application proof uses isolated HOME/OpenClaw/XDG state,
nice -n 10, one worker, and serial commands. No local broad suite, whole-graph typecheck, completed build, or E2E is claimed; the automatic runtime prerequisite described above was stopped. PR CI is the broad proof.