openclaw - 💡(How to fix) Fix [Bug] WebChat Dreaming UI: wiki.importInsights throws "unable to resolve opened file path" [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#84015Fetched 2026-05-20 03:45:18
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
1
Author
Timeline (top)
labeled ×6commented ×1

Error Message

GatewayRequestError: unable to resolve opened file path

Root Cause

The error originates from @openclaw/fs-safe's path sandbox check (path-mismatch error). The wiki.importInsights call tries to open a dreaming diary file, but the path resolution fails because:

  • Wiki vault path: /Users/<user>/.openclaw/memory/wiki/
  • Dreaming diary files: /Users/<user>/.openclaw/workspace/memory/dreaming/ (deep/, light/, rem/)

The dreaming files are outside the wiki vault's sandbox root, so fs-safe rejects the path with path-mismatch: unable to resolve opened file path.

The memory-wiki bridge config has bridge.indexDreamReports: true, which correctly indexes dreaming reports, but the wiki.importInsights file-open operation does not have the dreaming directory whitelisted in its path sandbox.

Code Example

GatewayRequestError: unable to resolve opened file path

---

[ws] ⇄ res ✗ wiki.importInsights 246ms errorCode=internal_error errorMessage=unable to resolve opened file path
RAW_BUFFERClick to expand / collapse

Bug: WebChat Dreaming UI - wiki.importInsights throws "unable to resolve opened file path"

Problem

When clicking on a diary entry in the Dreaming tab of the WebChat Control UI, the request fails with:

GatewayRequestError: unable to resolve opened file path

Gateway log confirms:

[ws] ⇄ res ✗ wiki.importInsights 246ms errorCode=internal_error errorMessage=unable to resolve opened file path

Root Cause

The error originates from @openclaw/fs-safe's path sandbox check (path-mismatch error). The wiki.importInsights call tries to open a dreaming diary file, but the path resolution fails because:

  • Wiki vault path: /Users/<user>/.openclaw/memory/wiki/
  • Dreaming diary files: /Users/<user>/.openclaw/workspace/memory/dreaming/ (deep/, light/, rem/)

The dreaming files are outside the wiki vault's sandbox root, so fs-safe rejects the path with path-mismatch: unable to resolve opened file path.

The memory-wiki bridge config has bridge.indexDreamReports: true, which correctly indexes dreaming reports, but the wiki.importInsights file-open operation does not have the dreaming directory whitelisted in its path sandbox.

Environment

  • OpenClaw version: 2026.5.12 (f066dd2)
  • memory-wiki plugin: enabled, vaultMode: bridge
  • memory-core plugin: enabled, dreaming enabled with all 3 phases (light/deep/rem)
  • OS: macOS Darwin 25.4.0 (arm64), Node v22.16.0

Steps to Reproduce

  1. Ensure memory-wiki bridge mode is enabled with indexDreamReports: true
  2. Ensure memory-core dreaming is enabled and has generated diary entries
  3. Open WebChat Control UI → Dreaming tab
  4. Click on any diary entry
  5. Observe error: GatewayRequestError: unable to resolve opened file path

Expected Behavior

Clicking a dreaming diary entry should open and display the diary content.

Observed Behavior

Error thrown, diary content not displayed.

Related Issues

  • #65091 — Dreaming UI does not surface wiki content (bridge mode, different error)
  • #65722 — openclaw wiki bridge import returns 0 artifacts

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING