Skip to content

Add easy setup diagnostics logging#497

Merged
shanselman merged 1 commit into
openclaw:masterfrom
indierawk2k2:feat/easy-setup-diagnostics
May 21, 2026
Merged

Add easy setup diagnostics logging#497
shanselman merged 1 commit into
openclaw:masterfrom
indierawk2k2:feat/easy-setup-diagnostics

Conversation

@indierawk2k2
Copy link
Copy Markdown
Contributor

Summary

  • Adds a setup-specific diagnostics sink for the easy-button local gateway install, pairing, gateway health, repair, and remove lifecycle.
  • Writes a human-readable latest summary plus machine-readable JSONL traces under %LOCALAPPDATA%\OpenClawTray\Logs\Setup\.
  • Redacts setup codes, tokens, key material, URL credentials, secret argv values, and command output before writing diagnostics to disk.
  • Surfaces the setup summary path in V2 onboarding failures and documents the new troubleshooting files.

Debug artifacts for affected users

  • Human summary: %LOCALAPPDATA%\OpenClawTray\Logs\Setup\easy-setup-latest.txt
  • Latest JSONL trace: %LOCALAPPDATA%\OpenClawTray\Logs\Setup\easy-setup-latest.jsonl
  • Per-run JSONL traces: %LOCALAPPDATA%\OpenClawTray\Logs\Setup\setup-*.jsonl
  • Existing tray log remains: %LOCALAPPDATA%\OpenClawTray\openclaw-tray.log

Validation

  • ./build.ps1
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore — 1803 passed, 28 skipped
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore — 1153 passed

Draft PR so someone hitting setup/pairing/gateway failures can install/test this branch and share the redacted diagnostics artifacts for debugging.

Emit redacted human and JSONL setup traces for install, pairing, gateway, repair, and remove flows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@shanselman shanselman marked this pull request as ready for review May 21, 2026 20:02
@shanselman shanselman merged commit 8446ea5 into openclaw:master May 21, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants