Repository navigation
refactor(status): consolidate scan projections and lazy loaders - #119412
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 10:20 PM ET / August 5, 2026, 02:20 UTC. ClawSweeper reviewWhat this changesThe PR removes duplicate status-scan projections and one-use lazy-loader wrappers while preserving the existing text, JSON, and status-all output paths. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain The refactor is still necessary and source review found no correctness or credential-isolation regression. It should remain open under its protected maintainer label, but merge proof is currently CI/test-only rather than an inspectable after-fix status run. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s status command gathers configuration, gateway health, channel state, and local agent information before rendering terminal or JSON diagnostics. The changed projection layer supplies those renderers while keeping gateway call credentials out of published status data. flowchart LR
A[Status command options] --> B[Status scan overview]
B --> C[Gateway snapshot]
B --> D[Full scan result]
C --> D
D --> E[Shared safe projection]
E --> F[Terminal status]
E --> G[JSON status]
B --> H[Full status report]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -133. Total -133 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the canonical projection refactor, then add a redacted after-fix terminal capture or log covering Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors established status behavior rather than reporting a failure; source and existing tests define the preserved outputs. Is this the best way to solve the issue? Yes — deriving the result from the overview owner and deleting one-use loader adapters is the narrowest maintainable solution, and the shared projection retains the explicit credential boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 50c7444edf4b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: (22 commits) refactor(plugins): consolidate lifecycle hook dispatch (#119429) fix(ci): stabilize TUI PTY proof ownership (#119420) test(system-agent): reduce suite setup overhead (#119424) fix(ui): keep session rail pill status from overlapping the headline (#119397) fix(discord): avoid doctor runtime loading (#119391) fix(media): decouple playback cache retention (#119417) fix(slack): infer upload filename extensions from MIME types (#119399) refactor(channels): unify configured binding resolution (#119414) refactor(google-meet): unify gateway and tool dispatch (#119413) test(state): reuse legacy database fixtures (#119423) fix(reset): preserve bootstrap guidance for dynamic models (#119179) fix(chutes): honor serving context limits (#119196) refactor(status): consolidate scan projections and lazy loaders (#119412) fix(status): status --all slows down with missing plugins (#119203) refactor(gateway): consolidate usage reporting and caches (#119409) perf(gateway): keep reload and recovery machinery off gateway cold start (#119094) fix(cli): align TaskFlow controller columns for wide text (#118801) fix: make startup migration restart guidance install-neutral (#119406) fix(ci): preserve cache warmer shard envelopes (#119403) fix(sessions): preserve compatible auth profiles on model changes (#117550) ...
What Problem This Solves
Status scanning duplicated overview/result contracts and projections and wrapped existing lazy loaders in repeated one-use adapters. This is part of a maintainer-requested project-wide production LOC reduction campaign.
Why This Change Was Made
Derive scan results from the authoritative overview owner, retain an explicit credential-safe gateway projection, and invoke existing lazy loaders directly.
User Impact
Status command text, JSON output, advertised links, and gateway credential isolation remain unchanged. Removes 133 production lines.
Evidence
gpt-5.6-solwithxhighreasoning; no accepted or actionable findings.git diff --check, scoped formatting, and direct before/after behavioral equivalence checks passed.Exact-head isolated CLI transcript
Observed on exact PR head
5afd26cb8e185dbecb1d8c8c7fe827de5d9c4d0e; all five changed source Git blobs were independently verified on a fresh Blacksmith Testbox. The CLI was compiled from that exact source and run with isolated HOME/state/config, an unused ephemeral localhost port, and no inherited credentials or live operator gateway. Host names, paths, and ports are redacted.This intentionally proves cold/isolated unreachable-gateway behavior; it does not access an operator's live gateway or credentials.