Repository navigation
v1.4.3 — bootstrap diagnostics + elevated home fix
Highlights
Fixes a first-run install failure where wxkey bootstrap reported "no WeChat account directory found under known roots" even when WeChat was correctly installed and logged in, plus diagnostic improvements for common bootstrap failures.
Fixes
- Elevated-child home lookup — when
wxkey bootstrapself-elevates viaosascript with administrator privileges, the root child now receives the invoking user'sHOMEandUSERthroughWXKEY_ORIG_HOME/WXKEY_ORIG_USERenv vars. Previously the elevated child relied onstat /dev/consoleto guess the original user, which fails under fast user switching / locked-screen / headless sessions and silently fell back to/var/root— making/Users/<you>/Library/Containers/com.tencent.xinWeChat/...invisible.
Diagnostics
re-elevatefailure detects SSH sessions and prints actionable guidance ("don't add sudo, don't pipe through an AI agent, respond to the desktop password prompt on the Mac itself") instead of surfacingosascript: exit status 1.pickAccountRootnot-found error now lists every scanned root with per-subdirectory status (boring / missingdb_storage/ unrecognized), so users can immediately tell whether their account dir is missing entirely or merely missingdb_storage/(the latter means "open WeChat, send/receive a message to initialize the local DB").
Internal
- Removed leftover developer-workspace path fallbacks and
/Applications/WeFlow.app/...legacy dylib fallback fromfindBundledDylib. Binaries built locally no longer probe these paths.
Used by
r266-tech/wx-mcp v1.4.6+ pins to this release. go install github.com/r266-tech/wxkey/cmd/wxkey@v1.4.3 also picks it up.
🤖 Generated with Claude Code