#6255: fix(media): expand ~ in CLI command paths
Cluster:
Workspace Path Fixes
## Summary
Expands `~` in CLI media model command paths before execution.
The `command` field in CLI media model configs was not expanding `~` before execution. Since `execFile` doesn't process shell expansions, paths like `~/.openclaw/skills/...` would fail with ENOENT. Now calls `expandHomeDir()` on the command path.
**Note:** The audio text extraction fix that was originally part of this PR has already been merged separately into main.
## Test plan
- [ ] Configure a CLI media model with `~` in the command path
- [ ] Verify media understanding works without ENOENT errors
---
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Most Similar PRs
#20024: Use expandHomePrefix for consistent tilde expansion
by Clawborn · 2026-02-18
64.9%
#8014: fix(media-understanding): support legacy {file} placeholder in CLI ...
by Glucksberg · 2026-02-03
64.3%
#17456: fix(test): stabilize media root guard test against tmpdir HOME overlap
by widingmarcus-cyber · 2026-02-15
63.4%
#20488: fix(discord): pass mediaLocalRoots to sendMessageDiscord
by olyashok · 2026-02-19
62.7%
#18811: fix(media): require file extension for ambiguous MEDIA: path detection
by aldoeliacim · 2026-02-17
62.3%
#9177: feat(media): add parakeet-mlx CLI output support
by mac-110 · 2026-02-04
61.9%
#9817: fix(media): resolve relative paths before reading local files (#8759)
by lailoo · 2026-02-05
59.9%
#21586: fix: support multiple --media flags in send command
by mattemoon · 2026-02-20
59.8%
#11529: fix(wizard): strip shell-style backslash escapes from workspace paths
by mcaxtr · 2026-02-07
59.3%
#13497: fix(docker): normalize workspace paths for container compatibility
by janckerchen · 2026-02-10
59.3%