Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
When a custom workspace directory is configured (e.g., on drive E:), OpenClaw still attempts to load skills from the hardcoded default path C:\Users<User>.openclaw\workspace\skills before falling back to the user-configured workspace. This causes an unnecessary failed filesystem I/O operation on every skill load, even though the correct path is explicitly set in configuration.
Steps to reproduce
Set a custom workspace path in OpenClaw config (e.g., E:\OpenClawData.openclaw\workspace)
Install or enable any skill (e.g., arxiv-watcher)
Observe logs during skill loading
Note that OpenClaw first tries:
C:\Users\James.openclaw\workspace\skills\arxiv-watcher\SKILL.md (which does not exist)
Only after this failure does it correctly fall back to:
E:\OpenClawData.openclaw\workspace\skills\arxiv-watcher\SKILL.md
Expected behavior
OpenClaw should only use the workspace path specified in the user’s configuration for skill discovery and loading. It should not attempt to read from ~/.openclaw/workspace unless that path is explicitly set as the workspace.
Actual behavior
OpenClaw unconditionally tries the hardcoded default path (~/.openclaw/workspace) first, regardless of the configured workspace. This results in:
A spurious “file not found” error in logs
Unnecessary I/O overhead
Confusion for users who have migrated their workspace
Note: Manually updating the location field in _meta.json helps some tooling but does not fix the core runtime loading logic, which still probes the wrong path first.
OpenClaw version
2026.5.28
Operating system
Windows 11
Install method
npm
Model
minimax M2.7
Provider / routing chain
OpenClaw version:2026.5.28 OS: Windows 11 Workspace config: Custom path on non-system drive (E:...) Skill: arxiv-watcher
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 3, 2026
Thanks for the report. I gave this a fresh shell check against current
main, and I could not reproduce it anymore.Current main does not show the reported default-workspace probe on reachable sandbox flows: production callers pass an already resolved workspace into sandbox setup. The remaining default in the low-level layout helper is only a defensive fallback; no current production caller found omits the workspace.
Review details
Best possible solution:
Keep workspace resolution at the run/context boundary; a future caller that genuinely lacks a workspace should resolve it with the agent resolver before entering sandbox layout.
Do we have a high-confidence way to reproduce the issue?
No. Current production callers found resolve and pass a concrete agent workspace to sandbox setup, so the optional low-level fallback is not reached by the reported flow.
Is this the best way to solve the issue?
Not applicable. The current caller-boundary resolution is the narrowest design; changing an unused helper fallback alone would not repair a demonstrated current product path.
Security review:
Security review: No proposed patch is under security review.
AGENTS.md: found and applied where relevant.
What I checked:
src/agents/agent-scope-config.ts:365, 982e0181b748)src/cron/trigger-script.ts:129, 982e0181b748)src/agents/sandbox/shared.ts:103, 982e0181b748)src/agents/sandbox/context.ts:101, 6bbc57e52672)qa/maturity-scores.yaml, 982e0181b748)Likely related people:
src/agents/sandbox/context.ts,src/agents/sandbox/shared.ts)Codex review notes: model internal, reasoning high; reviewed against 982e0181b748.
AliAbuelkheir commentedon Jun 3, 2026
Hi, I’d like to work on this. I’ll keep the change scoped to the gateway skill install/update workspace routing path and add focused regression coverage for custom/explicit agent workspaces.
wangmiao0668000666 commentedon Jun 4, 2026
While working on PR #90089 for the sandbox fallback path, I also checked
src/agents/workspace.ts:818:ensureAgentWorkspacestill falls back toDEFAULT_AGENT_WORKSPACE_DIRwhen called without an explicitdir. All current callers passdir, so this does not appear to be an active contributor to the reported behavior, but it is the last remaining hardcoded workspace fallback in the agent workspace layer. Related PRs addressing this issue surface:\n- #89767 fixes Gateway skill install/update routing\n- #90089 fixes sandbox skill-sync fallback31 remaining items
clawsweeper commentedon Aug 3, 2026
🦞🔧
ClawSweeper is automatically building this issue.
The issue review finished and no active implementation pull request was found.
Automatic implementation progress:
clawsweeper:manual-onlyorclawsweeper:human-review.Result: implementation skipped.
ruel225 commentedon Aug 4, 2026
I'd like to work on this issue. I will keep the change focused and include validation evidence.