Skip to content

Discord component registry fallback warning should include error details #84185

@100menotu001

Description

@100menotu001

Summary

When Discord persistent component registry state fails to open or operate, the warning log currently records only String(error).

Current behavior

The warning confirms that persistent state failed and that OpenClaw fell back to in-memory registry state, but it omits structured fields such as error name, message, and cause details. That makes persistent-state failures harder to triage from logs.

Expected behavior

The fallback warning should keep the existing best-effort behavior while logging structured error details when the thrown value is an Error.

Why this matters

Persistent registry failures are recoverable, but diagnosing the underlying storage or runtime issue needs enough context to distinguish configuration, state-store, and filesystem failures.

Suggested scope

Keep this narrow:

  • Format registry errors into structured warning metadata.
  • Include cause details when available.
  • Keep fallback behavior unchanged.
  • Add coverage for the warning metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions