Repository navigation
fix(status): keep unreadable logs visible in diagnostic reports - #177316
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. |
e8730e7 to
4bddbc1
Compare
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR distinguishes missing logs from unreadable logs in status --all reports and removes redundant caller-side recovery. Example: Reading /synthetic-status-logs/gateway.log fails with EACCES during openclaw status --all.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current diagnostic omission with a focused, maintainer-directed change; no actionable correctness or security defect was found, and exact-head CI passed. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe status command collects local and Gateway diagnostics, reads bounded log tails, and produces a summarized, redacted text report. flowchart TD
A[Status CLI] --> B[Status report owner]
B --> C[Log tail reader]
D[Gateway and restart log files] --> C
C --> E[Lines or unavailable guidance]
E --> F[Summarization and redaction]
F --> G[Pasteable diagnostic report]
Technical reviewBest possible solution: Keep failure presentation in the existing tail reader, preserving quiet missing files, bounded reads, redaction, and complete diagnostic reports. Do we have a high-confidence way to reproduce the issue? Current-main source shows that EACCES becomes an empty tail and therefore suppresses its report section; the PR reports a failing historical baseline and passing repaired command-harness cases, which were inspected but not rerun during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete fix using the existing reader and renderer: it distinguishes ENOENT, supplies static guidance for other failures, and removes duplicate catches without adding state or another owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against db207e077b74. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +7, Tests +37, Docs +2. Total +46 across 4 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, 8:54 AM ET / 12:54 UTC. |
|
Merged via squash.
|
…claw#177316) * fix(status): keep unreadable logs visible in diagnostic reports * style(commands): format status log regression
What Problem This Solves
openclaw status --allsilently omits Gateway and restart logs when reading them fails, making inaccessible logs indistinguishable from logs that do not exist yet.User Impact
Unreadable logs remain visible in the pasteable report with guidance to check their path and permissions. Missing logs before the first service start remain quiet, and the rest of the report stays available.
Why This Change Was Made
Let the log-tail reader own read-failure presentation and remove the duplicate caller catches. Non-missing failures produce a static unavailable message, never raw filesystem-error content. Normal tail bounds, summarization, redaction, Darwin stdout-only behavior, and the read-only command contract are unchanged.
Best-effort tradeoffs accepted
The caller no longer adds a second silent recovery layer around an already-handled log read. Unexpected programming failures may surface rather than masquerading as an empty log. The original January status helper (
1eb50ffac47) already swallowed read failures; no human incident or speculative race-removal claim is made. Missing files remain an intentional non-outcome, while other native read failures remain nonfatal and visible. Static guidance intentionally omits the raw error payload.Evidence
Production: +7 net lines; tests: +37; docs: +2. This is a silent-diagnostics bug fix, not deletion credit.
status-all.ts, and the regression runs through the actualstatusAllCommandharness. Existing main tests and fixtures remain unchanged.Release-note context:
status --allnow reports unreadable Gateway logs instead of silently omitting them.