-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Dashboard "Open config" fails on Windows: Start-Process -LiteralPath is invalid in all PowerShell versions #90157
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What happens
Clicking Open config or How to enable on any feature card in the dashboard (e.g. Memory Wiki) throws a PowerShell exception. Each click leaves a
config.openFile failedwarning in the gateway log.Reproduction
2026.5.28.openclaw logs --follow.Root cause
dist/config-CSgRab7Q.js—resolveConfigOpenCommand(...)shells out via PowerShell withStart-Process -LiteralPath '<path>':```js
if (platform === "win32") return {
command: "powershell.exe",
args: [
"-NoProfile",
"-NonInteractive",
"-Command",
`Start-Process -LiteralPath '${escapePowerShellSingleQuotedString(configPath)}'`
]
};
```
Start-Processdoes not have a-LiteralPathparameter in either Windows PowerShell 5.1 or PowerShell 7+. Only-FilePathexists. Tested in pwsh 7.6.1:```
PS> Start-Process -LiteralPath 'C:\Users\me.openclaw\openclaw.json' -WhatIf
Start-Process: A parameter cannot be found that matches parameter name 'LiteralPath'.
PS> Start-Process -FilePath 'C:\Users\me.openclaw\openclaw.json' -WhatIf
What if: Performing the operation "Start-Process" on target ...
```
Suggested fix
Swap
-LiteralPath→-FilePath. Works on both Windows PowerShell 5.1 and pwsh 7+:```js
`Start-Process -FilePath '${escapePowerShellSingleQuotedString(configPath)}'`
```
Workaround
Patch
dist/config-CSgRab7Q.jslocally (lost on every update), or open `~/.openclaw/openclaw.json` manually in any editor.Environment
powershell.exe(5.1) andpwsh.exe(7.6.1) — same failure, since-LiteralPathdoes not exist onStart-Processin either version.