Fix PATH symlink root resolution and do_user debug #2

Merged
lksz merged 1 commit from feat/host-cli-docs into main 2026-11-13 18:24:46 +00:00
Owner
  • Summary:
    • Resolve wohpe via readlink -f so ~/.local/bin/wohpe finds the project tree
    • Tighten wohpe_looks_like_root so a lone PATH symlink is not treated as the root
    • Add debug traces for do_user init/test SSH checks (no secret contents)
  • Test plan:
    • wohpe via PATH symlink reports correct WOHPE_ROOT
    • wohpe do_user test / init with DEBUG=1 shows useful failure context
    • Direct ./wohpe from the repo still works
- **Summary:** - Resolve `wohpe` via `readlink -f` so `~/.local/bin/wohpe` finds the project tree - Tighten `wohpe_looks_like_root` so a lone PATH symlink is not treated as the root - Add debug traces for `do_user` init/test SSH checks (no secret contents) - **Test plan:** - [ ] `wohpe` via PATH symlink reports correct `WOHPE_ROOT` - [ ] `wohpe do_user test` / `init` with `DEBUG=1` shows useful failure context - [ ] Direct `./wohpe` from the repo still works
Resolve the CLI through readlink so ~/.local/bin installs find the tree, and surface SSH check failures when debugging.

Co-authored-by: Cursor <cursoragent@cursor.com>
lksz merged commit 0c3e7e5bd9 into main 2026-11-13 18:24:46 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
szmedia/wohpe!2
No description provided.