Skip to content

fix(openclaw): tolerate uninitialized state dir resolver#248

Open
YOMXXX wants to merge 1 commit into
TencentCloud:mainfrom
YOMXXX:fix/openclaw-state-dir-resolver-safe
Open

fix(openclaw): tolerate uninitialized state dir resolver#248
YOMXXX wants to merge 1 commit into
TencentCloud:mainfrom
YOMXXX:fix/openclaw-state-dir-resolver-safe

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make OpenClaw state-dir resolution tolerate an uninitialized or throwing runtime resolver during plugin registration
  • trim runtime and environment fallback values while preserving the existing priority order
  • add focused coverage for runtime, env, throwing resolver, and default fallback paths

Verification

  • npm test
  • npm run build

Fixes #89
Related: #182

Signed-off-by: 李冠辰 <liguanchen@xiaomi.com>
@Maxwell-Code07

Copy link
Copy Markdown
Collaborator

Awesome work! 13 fixes in one batch covering Gateway hardening, embedding compatibility, Hermes memory injection, offload stability, and pipeline optimization — a very productive cleanup session 👏

We'll review and merge them one by one 🚀

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.

TypeError: Cannot read properties of undefined (reading 'resolveStateDir') on plugin register

2 participants