Repository navigation
perf(status): batch text report output - #128168
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready evidence for exact head
The final owner-only +1/-3 change remains behavior-neutral and ready for native merge. No agent transcript is attached or published. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 5:27 AM ET / 09:27 UTC. ClawSweeper reviewWhat this changesThe PR emits the assembled plain-text Merge readinessNo correctness finding: the report is fully assembled before the changed output boundary, and batching follows existing multiline runtime-output patterns. This maintainer-labeled PR should remain open for normal exact-head CI and maintainer handling. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe status command collects local diagnostics, formats them into an ordered human-readable report, and sends that report through the shared runtime output interface. That interface serves terminal users and captured system-agent responses. flowchart LR
A[Operator runs status] --> B[Status diagnostics]
B --> C[Ordered text report]
C --> D[Runtime output boundary]
D --> E[Terminal or agent response]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -2. Total -2 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single final emission and merge after exact-head checks complete, preserving the existing report-builder and runtime-output contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a performance refactor, and source confirms the prior path made one runtime call per already materialized report line. Is this the best way to solve the issue? Yes: joining at the final report owner matches existing multiline command output and leaves diagnostics, JSON mode, and report construction unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3cb52f4bb869. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: perf(status): batch text report output This is item 2/3 in the current shard. Shard 1/18. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
What Problem This Solves
Plain-text
openclaw statusassembled its complete ordered report, then sent each line through a separate runtime logging boundary. A representative report crossed console/progress-cleanup and write handling 45 times despite already being fully materialized.Why This Change Was Made
Emit the owner-built report once by joining its existing lines with newlines. Pre-report config, secret, verbose, and failure diagnostics remain in their original positions; JSON and
status --allare unchanged.User Impact
Operators receive the same status report bytes and line order with less final-output overhead. There is no config, protocol, persistence, privacy, or security behavior change.
Evidence
bfad1bf454138d57b51106376b5d7cffd9b948f0.2bbb1dab7923484bf8cf3507a89e21d5807d3c4602905a0d75e8cdfe8268ecc5.node scripts/check-changed.mjs -- src/commands/status.command.ts: passed all core/core-test typechecks, lint, format, dead-code, import-cycle, and repository guards.pnpm build: passed all build phases and the Control UI startup budget.git diff --check: passed.