The public release list and /releases/latest currently resolve to desktop-v1.3.1. Bash limit=1 cannot extract a CLI version; PowerShell treats the desktop archive tag as a CLI version.
Fix
Page through releases (50/page, bounded at 100 pages), preserving Gitea release order.
Select only exact vMAJOR.MINOR.PATCH tags with boolean draft=false and prerelease=false.
Require the detected platform archive in that release assets. Missing assets fail explicitly; never silently downgrade.
Bash uses a validated JSON reader in POSIX awk, byte locale, no new jq/Python/Node installer dependency. PowerShell uses structured JSON and the same selection contract.
Preserve host safety for irm | iex: return/throw instead of terminating the host, as the existing regression suite requires.
Add offline regressions and a minimal read-only Linux/Windows Gitea CI workflow. Existing host-safety tests remain enabled, with portable child-host/temp-path discovery.
Approved normally and merged at 2026-11-14 22:28:10 Asia/Shanghai as 6bbafa9acc.
Scope / safety
User-approved CLI version-discovery repair only. No release version bump, tag, feed publish, rollout increase, branch-protection edit or immutable-archive replacement.
The source-repository install scripts also require a matching upstream patch before any future public-install sync, otherwise that sync could revert this fix.
## Bug
The public release list and `/releases/latest` currently resolve to `desktop-v1.3.1`. Bash `limit=1` cannot extract a CLI version; PowerShell treats the desktop archive tag as a CLI version.
## Fix
- Page through releases (50/page, bounded at 100 pages), preserving Gitea release order.
- Select only exact `vMAJOR.MINOR.PATCH` tags with boolean `draft=false` and `prerelease=false`.
- Require the detected platform archive in that release assets. Missing assets fail explicitly; never silently downgrade.
- Bash uses a validated JSON reader in POSIX awk, byte locale, no new jq/Python/Node installer dependency. PowerShell uses structured JSON and the same selection contract.
- Preserve host safety for `irm | iex`: return/throw instead of terminating the host, as the existing regression suite requires.
- Add offline regressions and a minimal read-only Linux/Windows Gitea CI workflow. Existing host-safety tests remain enabled, with portable child-host/temp-path discovery.
## Test evidence
- macOS BSD awk/Bash: 13 Python unittest cases passed; `bash -n install` and `git diff --check` passed.
- Linux Bash/awk independent final run: all 13 cases passed.
- PowerShell 7.4.13 on Linux: 23 discovery assertions passed; existing tests/test.ps1 passed.
- Anonymous read-only live Bash discovery selected CLI `1.3.1` with asset `octopus-darwin-arm64.zip`, while desktop archive remains first.
- Exact-head Gitea CI run 55002: Linux bash-discovery and Windows PowerShell powershell-discovery both completed successfully. https://eightarms.net/Octopus/octopus-release/actions/runs/55002
- Approved normally and merged at 2026-11-14 22:28:10 Asia/Shanghai as 6bbafa9acc2042baed1f9966961729a71cbdd87a.
## Scope / safety
User-approved CLI version-discovery repair only. No release version bump, tag, feed publish, rollout increase, branch-protection edit or immutable-archive replacement.
The source-repository install scripts also require a matching upstream patch before any future public-install sync, otherwise that sync could revert this fix.
Reviewed release filtering, structured/validated JSON parsing, strict stable tag and boolean checks, exact platform asset matching, bounded pagination and fail-closed behavior. Exact-head Linux and Windows CI run 55002 is green; offline discovery and existing host-safety regressions pass. No release or rollout changes.
Reviewed release filtering, structured/validated JSON parsing, strict stable tag and boolean checks, exact platform asset matching, bounded pagination and fail-closed behavior. Exact-head Linux and Windows CI run 55002 is green; offline discovery and existing host-safety regressions pass. No release or rollout changes.
Bug
The public release list and
/releases/latestcurrently resolve todesktop-v1.3.1. Bashlimit=1cannot extract a CLI version; PowerShell treats the desktop archive tag as a CLI version.Fix
vMAJOR.MINOR.PATCHtags with booleandraft=falseandprerelease=false.irm | iex: return/throw instead of terminating the host, as the existing regression suite requires.Test evidence
bash -n installandgit diff --checkpassed.1.3.1with assetoctopus-darwin-arm64.zip, while desktop archive remains first.6bbafa9acc.Scope / safety
User-approved CLI version-discovery repair only. No release version bump, tag, feed publish, rollout increase, branch-protection edit or immutable-archive replacement.
The source-repository install scripts also require a matching upstream patch before any future public-install sync, otherwise that sync could revert this fix.
Reviewed release filtering, structured/validated JSON parsing, strict stable tag and boolean checks, exact platform asset matching, bounded pagination and fail-closed behavior. Exact-head Linux and Windows CI run 55002 is green; offline discovery and existing host-safety regressions pass. No release or rollout changes.