Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
OpenClaw can create a local diagnostics zip for bug reports. It combines sanitized Gateway status, health, logs, config shape, and recent payload-free stability events.
Treat diagnostics bundles like secrets until you have reviewed them. They are designed to omit or redact payloads and credentials, but they still summarize local Gateway logs and host-level runtime state.
bashopenclaw gateway diagnostics export
The command prints the written zip path. To choose a path:
bashopenclaw gateway diagnostics export --output openclaw-diagnostics.zip
For automation:
bashopenclaw gateway diagnostics export --json
Owners can use
/diagnostics [note]/diagnostics/diagnostics bad tool choiceopenclaw gateway diagnostics export --jsonIn group chats, an owner can still run
/diagnosticsWhen the active OpenClaw session is using the native OpenAI Codex harness, the same exec approval also covers an OpenAI feedback upload for the Codex runtime threads OpenClaw knows about. That upload is separate from the local Gateway zip and appears only for Codex harness sessions. Before approval, the prompt explains that approving diagnostics will also send Codex feedback, but it does not list Codex session or thread ids. After approval, the chat reply lists the channels, OpenClaw session ids, Codex thread ids, and local resume commands for the threads that were sent to OpenAI servers. If you deny or ignore the approval, OpenClaw does not run the export, does not send Codex feedback, and does not print the Codex ids.
That makes the common Codex debugging loop short: notice the bad behavior in Telegram, Discord, or another channel, run
/diagnosticscodex resume <thread-id>The zip includes:
summary.mddiagnostics.jsonmanifest.jsonstability/latest.jsonThe export is useful even when the Gateway is unhealthy. If the Gateway cannot answer status or health requests, the local logs, config shape, and latest stability bundle are still collected when available.
Diagnostics are designed to be shareable. The export keeps operational data that helps debugging, such as:
The export omits or redacts:
When a log message looks like user, chat, prompt, or tool payload text, the export keeps only that a message was omitted and the byte count.
The Gateway records a bounded, payload-free stability stream by default when diagnostics are enabled. It is for operational facts, not content.
The same diagnostic heartbeat records liveness warnings when the Gateway keeps running but the Node.js event loop or CPU looks saturated. These
diagnostic.liveness.warningInspect the live recorder:
bashopenclaw gateway stability openclaw gateway stability --type payload.large openclaw gateway stability --json
Inspect the newest persisted stability bundle after a fatal exit, shutdown timeout, or restart startup failure:
bashopenclaw gateway stability --bundle latest
Create a diagnostics zip from the newest persisted bundle:
bashopenclaw gateway stability --bundle latest --export
Persisted bundles live under
~/.openclaw/logs/stability/bashopenclaw gateway diagnostics export \ --output openclaw-diagnostics.zip \ --log-lines 5000 \ --log-bytes 1000000
--output <path>--log-lines <count>--log-bytes <bytes>--url <url>--token <token>--password <password>--timeout <ms>--no-stability-bundle--jsonDiagnostics are enabled by default. To disable the stability recorder and diagnostic event collection:
json5{ diagnostics: { enabled: false, }, }
Disabling diagnostics reduces bug-report detail. It does not affect normal Gateway logging.
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine