Skip to content

test(cli): e2e for the CLI on macOS, Linux, and Windows - #10

Closed
AkaraChen wants to merge 8 commits into
mainfrom
test/cli-e2e
Closed

AkaraChen wants to merge 8 commits into
mainfrom
test/cli-e2e

Conversation

@AkaraChen

Copy link
Copy Markdown
Collaborator

Adds three-platform CI (Go tests, frontend tests, app build) and CLI end-to-end tests, including the startup auto-install on Windows.

🤖 Generated with Claude Code

@AkaraChen
AkaraChen added this pull request to stack #11 September 27, 2026 10:45
@netlify

netlify Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for akproxy canceled.

Name Link
🔨 Latest commit fb3b905
🔍 Latest deploy log https://app.netlify.com/projects/akproxy/deploys/6aba2ed4f15ee10007f094ce

Base automatically changed from feat/cli to main September 28, 2026 09:09
AkaraChen and others added 8 commits September 28, 2026 17:09
Build the real CLI and a fake agent into an isolated home and cover the
PRD flows: model required, missing agent, launch env and args for all
four agents, exit code passthrough, and `akproxy model` via a pty. With
AKPROXY_E2E_APP set, launch the built app and check that a new terminal
finds `akproxy`, that it launches an agent, and that turning the switch
off removes the command and PATH entry. On Windows, also cover
replacing a command that is still running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check the first shell startup file for the platform rather than
.zprofile, and find sh on PATH for the curl quoting test. Run each CI
test step after a successful build so one failure does not hide others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows refuses to overwrite or delete a running executable, so an app
update failed to install the new CLI while `akproxy claude` was open.
Rename the old akproxy.exe aside first and clean the leftovers on the
next install or removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both packages edit the real user PATH on Windows and raced each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Wails updater accepts a single-entry archive and replaces only the
desktop executable on Windows and Linux, so a sibling akproxy-cli never
arrived through updates, and the macOS release neither built it for both
architectures nor signed it. Production builds now embed the gzipped CLI
and write it to ~/.local/bin through a temporary file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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