Repository navigation
refactor(status): remove redundant report section wrappers - #117777
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 11:36 PM ET / August 2, 2026, 03:36 UTC. ClawSweeper reviewWhat this changesThe branch deletes the status-report section-wrapper module and constructs the same typed report sections directly in the standard and expanded status report assemblers. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain The patch is a coherent behavior-preserving cleanup: it removes a one-use wrapper while retaining the shared text renderer and row/table builders. Keep this PR open for the protected maintainer review path and add direct after-fix terminal evidence for both status report forms before merge. Priority: P3 Review scores
Verification
How this fits togetherThe flowchart LR
A[Status command inputs] --> B[Standard report assembly]
A --> C[Expanded report assembly]
B --> D[Typed report sections]
C --> D
D --> E[Shared text renderer]
E --> F[Terminal status output]
Decision needed
Why: The source comparison supports the cleanup, but the protected label requires explicit maintainer handling and the supplied evidence is test/CI-only rather than an observed after-fix command run. Before merge
Agent review detailsSecurityNone. PR surfaceSource -188. Total -188 across 3 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared renderer and report-table helpers, land the direct assembly cleanup after a maintainer confirms the protected review path and a redacted terminal capture shows unchanged output for both status commands. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is an internal refactor, and current tests already define the report ordering and empty-section behavior that must remain unchanged. Is this the best way to solve the issue? Yes. Inlining one-use section wrappers at their two real assembly owners while preserving the shared renderer and report-data helpers is the narrowest maintainable cleanup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f21ac5a73632. 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.
|
What Problem This Solves
The status report assembly had a 205-line one-use wrapper module around the existing text renderer and table builders. That extra ownership layer duplicated section descriptors, callbacks, and empty-state policy, making the real report flow harder to follow and maintain.
Why This Change Was Made
Inline the exact section descriptors at their two report assembly owners, while retaining the canonical renderer, channel-row builder, and table-column helpers. This removes the redundant abstraction without merging independent owners or changing output, ordering, truncation, colors, defaults, or empty-state behavior.
The JSON status path returns before this text-report assembly and is unaffected.
Production LOC: 77 added, 265 removed, net -188. Tests: no line-count change.
User Impact
No user-visible behavior change. Maintainers get a shorter, more direct status-report implementation with one fewer internal layer.
Evidence
origin/maincompleted without conflicts.Real terminal behavior
Built exact head
2c825edc049c5adc0fb7a87e3bf363b19faf0557on a fresh Blacksmith Testbox, then ran both real CLI paths with a disposable emptyHOME, state directory, and config path. The fixture was removed afterward. Wrapper result:exitCode=0,runStatus=succeeded, Testboxtbx_01kz09cp8x0hm0ge1sqfew3xcp: https://github.com/openclaw/openclaw/actions/runs/30731256493Representative redacted output from
openclaw status(populated Overview and empty Channels/Sessions sections):Representative redacted output from
openclaw status --all(populated Overview/Diagnosis and empty Channels/Agents tables):No changelog entry: this is an internal behavior-preserving refactor.