Repository navigation
fix(installer): point the Windows banner at /agents, not /hub - #4294
Conversation
The Windows installer's last line told new users to type /hub, which the terminal UI does not have, so their first command went to the model as a question. It now says /agents, matching install.sh, and a test checks every /command in both closing banners against the TUI's command list. Fixes amd#4231
|
Approve The Windows installer's closing banner told brand-new users to type a command the terminal UI doesn't have, so their first keystroke went to the model as a question instead of doing anything. This fixes the wording to match the macOS/Linux installer and adds a test that cross-checks every slash command either installer prints against the list the terminal UI actually defines — so the two can't drift apart again. I reproduced the test's logic against this branch: both installers now advertise only Real-world evidenceNo evidence bundle was produced for this PR, and none is expected: the change is one line of text in a Windows PowerShell installer that this Linux CI lane can't run. The verdict rests on static review plus the new test, which I re-ran by hand here. The PR's test plan reports the pytest run passing on the fix and failing on 🔍 Technical detailsVerification performed
🟢 Nit — the command regexes only accept lowercase letters and hyphens ( Strengths
|
… terminal (amd#4298) Stacked on amd#4294. Merge that first. The documented `irm https://amd-gaia.ai/install.ps1 | iex` runs the installer inside the user's own PowerShell session. Any failure's `exit 1` closed their window and took the "Fix:" hint with it, and even a successful run left their session with `$ErrorActionPreference = "Stop"` and custom functions shadowing the built-in `Write-Error`/`Write-Warning`. Now the script runs in its own scope and fails with `throw`, so the error and its hint stay on screen and the session is left as it was. Running it with `pwsh -File install.ps1` still exits 1 on failure. It also stops shadowing `Write-Error` for uv's own `irm | iex` installer, which runs inside this script's scope. ## Test plan - [x] With pwsh 7.6.6 on macOS, `pytest tests/unit/installer/test_install_scripts_terminal_hub.py -q` passed 47, with 1 skip (wget not installed). The script's real non-Windows failure path covers these checks: - [x] After the `iex` run fails, the session survives, `$ErrorActionPreference` is `Continue`, `Write-Error` and `Write-Warning` resolve to the cmdlets, and no installer function is left behind. This failed on the base branch because the process exited. - [x] `pwsh -File install.ps1` exits non-zero and still prints the reason. - [x] A static check finds no `exit` left in the script (the base branch has 11) and confirms the script still parses. - [ ] A real Windows `irm | iex` install, both one that succeeds and one that fails partway (for example with the network off before the hub download) Fixes amd#4224 --------- Co-authored-by: Kalin Ovtcharov <[email protected]>
The Windows one-line installer's closing banner told new users to type
/hubin the terminal UI, which has no such command, so their very first action was sent to the model as a question. It now says/agents, matching the macOS/Linux installer, and a test checks every/commandeither installer prints in its closing banner against the TUI's command list, so the banners can't drift again.Test plan
~/.cache/gaia-dev/venv/bin/python -m pytest tests/unit/installer/test_install_scripts_terminal_hub.py -q -k banner_slash: the ps1 case fails onmain(/hub), and both cases pass with the fix~/.cache/gaia-dev/venv/bin/python -m pytest tests/unit/installer/test_install_scripts_terminal_hub.py -q: all passFixes #4231