feat: add one-click diagnostics bundle#45
Closed
elliotllliu wants to merge 1 commit intoTianyiDataScience:mainfrom
Closed
feat: add one-click diagnostics bundle#45elliotllliu wants to merge 1 commit intoTianyiDataScience:mainfrom
elliotllliu wants to merge 1 commit intoTianyiDataScience:mainfrom
Conversation
Add a diagnostics collection system that gathers: - App version + git commit hash - OS, Node.js, CPU, memory info - Gateway connectivity status + endpoint + PID - Token scope summary (redacted for security) - OpenClaw CLI version Available via: - GET /api/diagnostics — JSON format - GET /api/diagnostics?format=text — human-readable text - Settings page 'Diagnostics' section with download buttons Helps reduce back-and-forth in issue triage and enables users to self-diagnose startup/connection failures. Closes TianyiDataScience#41
Owner
|
谢谢这条 PR,方向是很对的。 我这边已经把等价而且覆盖面更完整的一版诊断包通过 如果你还想继续补诊断字段或下载形态,非常欢迎基于最新 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #41
Adds a one-click diagnostics bundle for startup and connection failure triage.
Collected Information
Access Methods
GET /api/diagnostics— full JSON bundleGET /api/diagnostics?format=text— human-readable text reportFiles
src/runtime/diagnostics-bundle.ts— new module:collectDiagnosticsBundle(),formatDiagnosticsText()src/ui/server.ts— import, API route, settings UI sectionSecurity
Token information is always redacted — only presence/absence is reported, never actual token values.