Skip to content

Survive a missing nohup, and diagnose a proxy that won't start - #13

Merged
BeLazy167 merged 1 commit into
mainfrom
fix/proxy-start-diagnostics
Aug 21, 2026
Merged

Survive a missing nohup, and diagnose a proxy that won't start#13
BeLazy167 merged 1 commit into
mainfrom
fix/proxy-start-diagnostics

Conversation

@BeLazy167

Copy link
Copy Markdown
Member

From testing the release-tarball path with no Homebrew — the path a professor actually takes, and the only install path nothing had exercised (both real installs so far found an existing cliproxyapi).

The path works

Verified in a sandbox with no brew and no cliproxyapi on PATH: 59 MB binary downloaded from the GitHub release, feature-gate satisfied (v7.2.137 has disable-cloaking-model-list), config written, GPT and Claude both answering through it, proxy cleaned up on exit.

Two gaps it exposed

  1. start_proxy hard-depended on nohup. It's present everywhere in practice — my sandbox just didn't symlink it — but a plain background job with the same redirect does the same work, so it now falls back instead of failing outright.

  2. The failure message pointed at an empty log. "proxy failed to start — see proxy.log" is useless in exactly the case that produces it: the binary never ran (missing dep, wrong arch, quarantine), so the log is empty. It now distinguishes an empty log from a populated one, prints the last lines when there are any, and otherwise gives the exact command to run by hand — plus a reminder that Claude models are unaffected.

Verified both branches: with nohup removed from PATH, a GPT session still works end to end and still cleans up.

Suites green (routing 6/6, shellcheck, bash 3.2).

…t start

Found while testing the release-tarball path on a machine with no Homebrew —
the path a non-technical user actually takes, and the one nothing had
exercised until now (both real installs so far found an existing binary).

The tarball path itself works: 59 MB binary downloaded, feature-gate
satisfied, config written, GPT and Claude both answering through it, proxy
cleaned up on exit. Two things it exposed:

- start_proxy hard-depended on `nohup`. Present everywhere in practice, but
  a background job with the same redirect works without it, so fall back
  rather than failing.
- "proxy failed to start — see proxy.log" pointed at an EMPTY log, which is
  precisely the case where the log cannot help: the binary never ran. The
  message now distinguishes the two and prints the command to run by hand.
@BeLazy167
BeLazy167 merged commit 2427263 into main Aug 21, 2026
6 checks passed
@BeLazy167
BeLazy167 deleted the fix/proxy-start-diagnostics branch August 21, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant