zeroclaw/src/onboard
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(onboard): resolve rebase conflict in models command helpers 2026-02-24 16:03:01 +08:00
wizard.rs fix(daemon): expand tilde to home directory in file paths 2026-03-13 11:07:40 -04:00