zeroclaw/src/config
simianastronaut 320171c66a fix(daemon): expand tilde to home directory in file paths
Rust treats `~` as a literal path character, not a home directory
shorthand. Several config resolution paths used `PathBuf::from()` on
user-provided strings without expanding `~` first, causing a literal
`~` folder to be created in the working directory.

Apply `shellexpand::tilde()` to all user-facing path inputs:
- ZEROCLAW_CONFIG_DIR env var (config/schema.rs, onboard/wizard.rs)
- ZEROCLAW_WORKSPACE env var (config/schema.rs, onboard/wizard.rs,
  channels/matrix.rs)
- active_workspace.toml marker file config_dir (config/schema.rs)

The WhatsApp Web session_path was already correctly expanded via
shellexpand::tilde() in whatsapp_web.rs.

Closes #3417

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:07:40 -04:00
..
mod.rs fix: restore MCP support missing from master branch (#3412) 2026-03-13 09:20:37 -04:00
schema.rs fix(daemon): expand tilde to home directory in file paths 2026-03-13 11:07:40 -04:00
traits.rs fix format 2026-02-21 19:38:19 +08:00