[agent] Installer no-sudo fallback + quieter envx auth#87
Open
alexng353 wants to merge 1 commit into
Open
Conversation
Keep explicit bin-dir installs on the existing fatal sudo path, but let default installs fall back to a per-user bin directory when sudo is unavailable or denied. Also make envx auth quiet by default: hide the raw auth token and server response unless --debug is set, and print a concise authenticated line with the key fingerprint. Co-Authored-By: GPT-5.5 <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[agent] Installer no-sudo fallback + quieter
envx authTwo UX fixes surfaced while onboarding envx on a fresh macOS box.
install.sh— fall back to~/.local/bininstead of abortingcurl -fsSL https://get.envx.sh | shon a machine where/usr/local/binneeds sudo but there's no TTY (or sudo isn't installed) aborted withSuperuser not granted, aborting installation, even though a no-sudo install to~/.local/binis possible.Now:
elevate_privis split into a non-fataltry_elevate_priv. When the target dir isn't writable:--bin-dir/ENVX_BIN_DIR→ unchanged (fatal sudo path — you asked for that dir)./usr/local/bin+ sudo unavailable/denied → falls back to$HOME/.local/bin(mkdir -p, PATH warning) and installs there instead of dying.envx auth— concise outputauthunconditionally printed the raw PGPauth tokensignature and thensuccess+ the raw server response. Now it prints a single✓ authenticated fingerprint: <fp>line; the token and raw response are shown only under--debug. Exit-code contract is unchanged (0 on success, error on failure).Verified:
cargo fmt --checkclean,cargo buildcompiles,cargo clippyruns; installer fallback path exercised manually.Co-Authored-By: GPT-5.5 noreply@openai.com
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com