Repository navigation
fix(logging): preserve OpenClaw package references in diagnostics - #144808
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: needs maintainer review before merge. Reviewed September 11, 2026, 5:29 AM ET / 09:29 UTC (Revision 2). ClawSweeper reviewWhat this changesPreserves public OpenClaw package references in sanitized diagnostics and adds regression coverage for versioned references, nearby private data, and repeated redaction. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still damages package installation guidance, and the related PRs address separate diagnostic problems. No blocking correctness finding was identified. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s support sanitizer processes diagnostic text before update errors and support bundles expose it. It removes private information while preserving useful repair guidance. flowchart LR
A[Doctor and update diagnostics] --> B[Support text sanitizer]
B --> C[Remove credentials and private identifiers]
C --> D[Preserve public package references]
D --> E[Redact paths and bound output]
E --> F[Update errors and support bundles]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +24. Total +25 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep package-reference preservation in the shared sanitizer so every diagnostic caller receives usable repair commands with existing private-data protections. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main’s handle matcher consumes @openclaw in the Doctor installation command, and the update error handler invokes that sanitizer. Runtime reproduction was not executed in this read-only review. Is this the best way to solve the issue? Yes. Adjusting the existing sanitizer fixes the shared cause without adding caller-specific exceptions or changing installation behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 86cd546d0bbe. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Preserve the reviewed harness while incorporating the landed benchmark prerequisite. Punchcard-Session: coral-orchard-orchard-d4 * commit '4407ed19ac63b1c1c84a0cfe6eb4bbeca9c2322c': (1196 commits) fix(perf): isolate benchmark subprocess transport (#144159) refactor(auth): await Copilot cache persistence (#144810) refactor(web-fetch): exercise URL normalization through the public tool (#144887) fix(ollama): preserve hosted subdomain model context (#144891) fix(doctor): explain Codex plugin health failures (#144813) fix(channels): honor pinned accounts in Mattermost model menus (#144880) fix(update): failed-update records hide the triggering error behind the excerpt tail (#144729) fix(logging): preserve OpenClaw package references in diagnostics (#144808) fix: retain plugin detail tab selections while inspection loads (#144647) fix: keep discovered models when sign-in tokens renew (#144861) fix(update): preserve local package overrides (#89985) fix(update): resolve compatibility bridges within the runtime graph (#144831) chore(i18n): refresh native locales (#144856) fix: preserve child signal termination during CLI respawn (#144838) fix(text): hide encoded MiniMax tool envelopes (#126307) fix(subagents): deliver child replies that match the empty placeholder (#130647) fix(cli): reject blank message channel selectors (#144802) fix(telegram): preserve mixed text order and pending stop (#144839) fix(memory): restore FTS fallback for same-name view collisions (#144783) chore(release): close out 2026.9.4 on main (#144708) ...
What Problem This Solves
Fixes an issue where users running
openclaw updatereceived a broken repair command: diagnostic redaction changed@openclaw/codexinto<redacted-handle>/codex.Why This Change Was Made
Preserve public
@openclaw/npm package references when scrubbing contact handles. Standalone handles, private scopes, paths, email addresses, and credentials retain their existing redaction.User Impact
Plugin installation commands remain copyable in update errors and support reports, including after repeated redaction.
Evidence
Three mixed-data regressions failed before the fix and passed afterward, covering unversioned, tagged, and versioned package references.
All nine diagnostic-support-redaction tests pass.
Independent P1 review: no findings.
Full changed-file checks passed, including production/test typechecks and repository guards.