Skip to content

feat(updates): install any of the newest 5 versions per component - #481

Merged
edenreich merged 4 commits into
mainfrom
fix/issue-465
Nov 9, 2026
Merged

edenreich merged 4 commits into
mainfrom
fix/issue-465

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #465

Summary

Every update path only ever moved a component to the newest release. The three components (CLI, Gateway, Desktop) now each expose their 5 most recent release tags, and each can be installed at a chosen tag independently: releases/download/<tag>/<asset> for the CLI and gateway binaries, and that release's own latest.json for the desktop updater (with the allowDowngrades comparator, so an older release can be rolled back over a bad update). The one-click "Install updates" flow and dev-build behaviour stay unchanged when no version is picked.

Changes

  • backend/src/updates.rs: UpdateInfo gains versions - raw release tags (newest first, capped at 5, keeping the v prefix so download URLs work), fetched gh-first with the public /releases?per_page=5 API fallback; latest stays the normalized installable version. check_and_install_cli-style pinning also drives the desktop updater: install_desktop_update now takes a tag and points the updater at releases/download/<tag>/latest.json, dropping the default newer-than-current rule so downgrades work.
  • backend/src/cli_install.rs + backend/src/download.rs: check_and_install_cli and try_gh_download accept a tag; the binary and its checksums.txt both come from the same releases/download/<tag>/ base (gh positional tag arg, matching ureq fallback URL).
  • backend/src/gateway.rs + backend/src/processes.rs: start_gateway accepts a tag; the supervisor threads it to ensure_gateway_binary, which still stops the running gateway before the download (the Reinstall path [BUG] Applying an update on Windows stops the desktop-run gateway and never restarts it #380 fixed for Windows) and only builds the versioned URL when a tag was pinned.
  • frontend/lib/updates.ts (new): stripV, semver-ish versionAction (Upgrade / Downgrade / no action) and selectableVersions (empty for dev builds and failed lookups), with unit tests.
  • frontend/store.tsx: per-component selection (selectedVersions / selectVersion) and installUpdate(name): the CLI reinstalls only the CLI (daemon restart, gateway reused), the gateway reinstalls only the gateway through the existing stop-first flow, the desktop row pins the updater; running sessions are cancelled first and the selection clears after install. applyUpdates is untouched for the one-click path.
  • frontend/components/SettingsView.tsx: each Updates row's version opens a native dropdown of the 5 tags with the installed one marked, and shows an Upgrade / Downgrade button per selection; dev builds and failed lookups get no dropdown.
  • backend/Cargo.toml: url = "2" for UpdaterBuilder::endpoints.

Checks

  • bun run build passing (embedded by the Rust build).
  • cargo fmt --check, cargo clippy -- -D warnings, cargo test passing (3 new tests: tag URL/base shaping and gh tag-list parsing; frontend compares versions in updates.test.ts).

…alls

check_updates now returns the newest 5 release tags per component alongside latest, reusing the gh-first lookup with a public-API fallback. check_and_install_cli, try_gh_download, ensure_gateway_binary and install_desktop_update gain an optional tag: the cli and gateway download releases/download/<tag>/<asset> (checksums from the same tag), the desktop updater points at that release's latest.json with the allowDowngrades comparator so an older version can be installed. The one-click flow and dev builds behave as before.
The Updates tab renders each component's version with a dropdown of its 5 newest release tags (installed one marked, nothing on dev builds or unknown releases) and an Upgrade or Downgrade button per pick, comparing semver. installUpdate installs exactly the picked component: the CLI reinstall restarts only the daemon while the gateway keeps serving, the gateway reinstall rides the stop-first supervisor flow, the desktop row pins the updater to that release. The one-click Install updates flow is untouched.
…utor

recent_tags blocks on a gh subprocess and HTTP, so desktop_update_info now fetches it through spawn_blocking like the CLI and gateway lookups.
@edenreich

Copy link
Copy Markdown
Contributor

@infer /model ollama_cloud/glm-5.3 can you review this PR? is it ready for merge? use /ponytail:ponytail /ponytail:ponytail-review /rust /rust-concurrency /clean-architecture /clean-code /domain-driven-design

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/glm-5.3 · Action: v0.59.5 · CLI: v0.246.0 · Gateway: v0.63.1 · View Job

Todos

  • Read the full diff and the commit history
  • Read changed backend files (updates, cli_install, download, gateway, processes)
  • Read changed frontend files (updates.ts, store.tsx, SettingsView.tsx, tauri.ts)
  • Trace callers of every changed signature
  • Run repo checks (fmt, clippy, cargo test, bun test, build)
  • Write the review report with merge verdict

Pull Request

#481

✅ Infer Result: Success

All checks pass. Let me mark the todos complete and deliver the review - this is a review-only run, so no code is changed and nothing is committed or pushed.

What this change does: The Updates tab now lists the 5 newest release tags of each component (CLI, Gateway, Desktop) and lets you install any of them from a dropdown with an Upgrade or Downgrade button, instead of only ever moving to the newest release. The CLI and gateway binaries download from the picked tag's releases/download/<tag>/ path, and the desktop updater reads that release's own latest.json with a comparator that also accepts older versions. The one-click Install updates flow and dev-build behavior stay unchanged.

What I verified beyond reading the diff: all repo checks pass on this branch - bun run build, bun test (230 tests, including the 3 new updates.test.ts ones), cargo fmt --all -- --check, cargo clippy --all-targets -- -D warnings, cargo test. The pinned-install assumptions hold against the real releases: every desktop release ships its own latest.json (checked v0.58.0), every CLI release ships checksums.txt (checked v0.248.0), and all three repos tag plain v-prefixed semver. In tauri-plugin-updater 2.14.1 the version_comparator(|current, release| release.version != current) closure is byte-for-byte the plugin's own allow-downgrades rule, endpoints(Vec<Url>) genuinely requires the url crate, and the release-list lookups stay off the async executor in both check paths - those choices all check out. Every caller of the changed signatures was traced and updated, and the structure is clean: version math is a pure frontend/lib/updates.ts with tests, transport stays in backend commands, orchestration in the store, presentation in SettingsView.

Must fix

  1. An up-to-date CLI or Gateway now always reports as outdated (backend/src/updates.rs:130-131)
  • What this is: versions now holds raw tags (v0.249.0) and latest is taken straight from that list, while current comes from parse_version, which strips the v (0.249.0). is_outdated (updates.rs:110) compares the two as plain strings.
  • Problem: "0.249.0" != "v0.249.0", so a fully current CLI or Gateway is flagged outdated on every check. The row reads "CLI 0.249.0 → v0.249.0" instead of "up to date", the banner permanently shows "CLI v0.249.0 available - restart to update" (store.tsx:1608), and the one-click Install updates keeps re-installing the same version with the banner never clearing. The PR description itself says "latest stays the normalized installable version" - the code contradicts it.
  • Fix: one line in check_updates: let latest = versions.first().and_then(|tag| parse_version(tag)).unwrap_or_default(); - versions keeps raw tags for the download URLs, only latest is normalized back. test_is_outdated (updates.rs:316) only compares un-prefixed strings, which is exactly how this slipped through; a small test of the derivation (normalized latest from a raw tag list) would pin it.
  • If we skip it: every user with current binaries gets a permanent false update banner from the moment this ships.

Should fix

  1. Pinned gateway install silently does nothing on Windows (backend/src/gateway.rs:224-239)
  • What this is: the new Downgrade/Upgrade Gateway button calls start_gateway(force=true, restart=true, tag). On Windows gateway downloads are unsupported, so from_flags(true, true, false) resolves to Reuse (gateway.rs:31-38): the tag is dropped, the running gateway keeps serving, and the command returns Ok.
  • Problem: the UI treats it as success - it clears the selection and refreshes - while the gateway binary never changed. The user asked for a specific version and got a silent no-op.
  • Fix: in start_gateway, after computing the mode: if tag.is_some() && mode != GatewayStart::Reinstall { return Err("Gateway version installs need automatic gateway downloads, which are unsupported on Windows yet".into()); }
  • If we skip it: Windows users click Downgrade Gateway, nothing happens, no error, and the picked version vanishes from the dropdown as if it installed.
  1. A failed pinned CLI install leaves the composer disabled (frontend/store.tsx:1580-1585)
  • What this is: the CLI branch of installUpdate does setReady(false) and then awaits checkAndInstallCli. If that invoke throws (network error, checksum mismatch), the catch only sets the error banner - ready stays false, and the composer is disabled={!ready} (Composer.tsx:915).
  • Problem: one failed per-version install and the user cannot type until they find the Restart CLI flow.
  • Fix: restore readiness on the failure path - wrap the await in try/finally (or setReady(true) in the catch), two lines. The Gateway branch cannot hit this (startGatewayThenModels swallows its errors internally), but it clears the picked tag even when the restart failed inside, so a retry means re-picking the version - worth the same treatment.
  • If we skip it: any failed CLI downgrade or upgrade bricks chat input behind the settings error banner.

Nice to have

  1. selectableVersions re-slices slice(0, 5) (frontend/lib/updates.ts:13) though the backend already caps versions at 5 - a duplicated rule; delete the slice or keep the cap in exactly one place.
  2. If the picked tag falls off the refreshed 5-tag list (a new release shipped while one was selected), the select shows blank while the Upgrade/Downgrade button keeps working - rare and self-heals, just mildly confusing.
  3. The Upgrade/Downgrade button has no in-flight guard; a double-click races two installs through the same cli-install.tmp staging path. It ends in an error message, not corruption (the binary rename lands only after a verified extract), but disabling the button while installing would be kinder.

Verdict: fix 1 first. Not ready to merge as-is - finding 1 is a one-line fix, but as shipped it gives every user with up-to-date binaries (most of them) a permanent false update banner. Findings 2 and 3 are small enough to take in the same PR; 4-6 are optional polish.

Lean: -1 line (finding 4).

Not checked: the e2e suite (macOS-only, this is a Linux runner) and an actual end-to-end pinned install (it would download ~30 MB binaries and replace local state on the runner); Windows behavior was read from code, not run.

Model: ollama_cloud/glm-5.3 · Action: v0.59.5 · CLI: v0.246.0 · Gateway: v0.63.1 · Exit Code: 0 · Duration: 7m 14s

Tokens: 2,388,594 in · 43,212 out · 2,431,806 total (25 requests)

Tool calls: 49 total · 100% success rate

Traces
Session: 1794183486-50aabc4a

session (headless, success)                                                                         7m6s
├── chat ollama_cloud/glm-5.3                                                                       7.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.2s
│           ╰── POST [inference-gateway, server]                                                    5.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.2s
├── execute_tool Skill call_tch8zp28                                                                86µs
├── execute_tool Skill call_n89rgt0v                                                                62µs
├── execute_tool Skill call_ktnk3dk1                                                                52µs
├── execute_tool Skill call_beehpyur                                                                49µs
├── execute_tool Skill call_ih9oiwqa                                                                60µs
├── execute_tool Skill call_1ih7ovro                                                                54µs
├── execute_tool Skill call_a2omj9a8                                                                46µs
├── execute_tool Bash call_2xy0wrz1                                                                 10ms
├── chat ollama_cloud/glm-5.3                                                                       3.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
│           ╰── POST [inference-gateway, server]                                                    3.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
├── execute_tool TodoWrite call_ahgtlzwd                                                            49µs
├── chat ollama_cloud/glm-5.3                                                                       1.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      989ms
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    984ms
│           ╰── POST [inference-gateway, server]                                                   984ms
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                984ms
├── execute_tool Bash call_ej6bm6a6                                                                  6ms
├── execute_tool Bash call_x80u04cb                                                                  5ms
├── chat ollama_cloud/glm-5.3                                                                       1.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
├── execute_tool Bash call_5inzraze                                                                  7ms
├── chat ollama_cloud/glm-5.3                                                                       1.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
│           ╰── POST [inference-gateway, server]                                                    1.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
├── execute_tool Bash call_tx16t1wj                                                                  9ms
├── chat ollama_cloud/glm-5.3                                                                      30.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      30.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    30.3s
│           ╰── POST [inference-gateway, server]                                                   30.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                30.3s
├── execute_tool TodoWrite call_6r3h1d9f                                                            52µs
├── execute_tool Read call_jbz9ga8y                                                                571µs
├── chat ollama_cloud/glm-5.3                                                                      14.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.5s
│           ╰── POST [inference-gateway, server]                                                   14.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.5s
├── execute_tool Read call_v9hdgrll                                                                536µs
├── execute_tool Read call_s7ew5p9o                                                                647µs
├── chat ollama_cloud/glm-5.3                                                                       1.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
│           ╰── POST [inference-gateway, server]                                                    1.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
├── execute_tool Read call_2v7rr8m5                                                                782µs
├── execute_tool Read call_m3n13p6l                                                                622µs
├── chat ollama_cloud/glm-5.3                                                                       3.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.4s
│           ╰── POST [inference-gateway, server]                                                    3.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.4s
├── execute_tool Read call_cl9624fo                                                                488µs
├── execute_tool Bash call_hl5ey77b                                                                 4.8s
├── chat ollama_cloud/glm-5.3                                                                       5.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.4s
│           ╰── POST [inference-gateway, server]                                                    5.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.4s
├── execute_tool Bash call_8i1kmf9h                                                                  8ms
├── execute_tool Grep call_5eh9yzxv                                                                  7ms
├── chat ollama_cloud/glm-5.3                                                                       2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
│           ╰── POST [inference-gateway, server]                                                    2.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
├── execute_tool Grep call_4bhnsmlc                                                                  7ms
├── execute_tool Grep call_2eys0kdo                                                                  3ms
├── chat ollama_cloud/glm-5.3                                                                      21.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      21.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    21.9s
│           ╰── POST [inference-gateway, server]                                                   21.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                21.9s
├── execute_tool TodoWrite call_ij4j86xz                                                            50µs
├── execute_tool Read call_jvu0pgw6                                                                629µs
├── chat ollama_cloud/glm-5.3                                                                       2.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
│           ╰── POST [inference-gateway, server]                                                    2.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
├── execute_tool Grep call_8dlta50g                                                                 35ms
├── execute_tool Read call_rvibkgeh                                                                766µs
├── chat ollama_cloud/glm-5.3                                                                       3.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.7s
│           ╰── POST [inference-gateway, server]                                                    3.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.7s
├── execute_tool Bash call_7tnhlnwn                                                                  3ms [error: tool_error]
├── execute_tool Bash call_l0ipfixr                                                                618ms
├── execute_tool Bash call_kx73sg44                                                                331ms
├── execute_tool Bash call_kol44ncj                                                                229ms
├── chat ollama_cloud/glm-5.3                                                                      14.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.6s
│           ╰── POST [inference-gateway, server]                                                   14.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.6s
├── execute_tool Bash call_dk7p8gqt                                                                  2ms
├── execute_tool Grep call_f16zi7fs                                                                11.0s
├── chat ollama_cloud/glm-5.3                                                                       6.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        6.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.2s
├── execute_tool Bash call_aosco5v2                                                                  1ms
├── execute_tool Bash call_nn0dzaxc                                                                187ms
├── chat ollama_cloud/glm-5.3                                                                       3.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
│           ╰── POST [inference-gateway, server]                                                    3.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
├── execute_tool Bash call_e1cpx3l7                                                                721ms
├── execute_tool Grep call_slk1nd6x                                                                 47ms
├── chat ollama_cloud/glm-5.3                                                                      21.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      21.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    20.9s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       20.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                20.9s
├── execute_tool Bash call_rjf10vqu                                                                455ms
├── execute_tool Grep call_d264sidl                                                                  4ms
├── chat ollama_cloud/glm-5.3                                                                       4.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
├── execute_tool Read call_a2i3s5cc                                                                904µs
├── execute_tool Grep call_npl64ovi                                                                121ms
├── chat ollama_cloud/glm-5.3                                                                       2.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
├── execute_tool TodoWrite call_vm40gmmf                                                           100µs
├── execute_tool Wait call_zh89ez2n                                                                 1m6s
├── chat ollama_cloud/glm-5.3                                                                       2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
│           ╰── POST [inference-gateway, server]                                                    1.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
├── execute_tool Bash call_mwrjueqp                                                                  1ms
├── chat ollama_cloud/glm-5.3                                                                      15.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.2s
│           ╰── POST [inference-gateway, server]                                                   15.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.2s
├── execute_tool Bash call_3z7sqz1u                                                                435ms
├── chat ollama_cloud/glm-5.3                                                                       7.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        7.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.3s
├── execute_tool Wait call_9mvq6lu2                                                                1m54s
├── chat ollama_cloud/glm-5.3                                                                      31.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      30.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    30.8s
│           ╰── POST [inference-gateway, server]                                                   30.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                30.8s
├── execute_tool TodoWrite call_zb6wth56                                                            52µs
╰── chat ollama_cloud/glm-5.3                                                                      15.3s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.3s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.2s
            ╰── POST [inference-gateway, server]                                                   15.2s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.2s
Stats
Tool Calls

╭───────────┬───────┬───────┬─────────╮
│ Tool      │ Calls │ Fail% │ Avg     │
├───────────┼───────┼───────┼─────────┤
│ Bash      │ 18    │ 6%    │ 433ms   │
│ Read      │ 9     │ 0%    │ 661µs   │
│ Grep      │ 8     │ 0%    │ 1400ms  │
│ Skill     │ 7     │ 0%    │ 60µs    │
│ TodoWrite │ 5     │ 0%    │ 59µs    │
│ Wait      │ 2     │ 0%    │ 89751ms │
╰───────────┴───────┴───────┴─────────╯

Token Usage

╭──────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
│ Model                │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
├──────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3 │ 2388594 │ 2168256 │ 43212      │ 2431806 │ -    │
╰──────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ headless │ 1        │
╰───────────┴──────────┴──────────╯

Triggered by edenreich · Infer Action · OSS

@edenreich

Copy link
Copy Markdown
Contributor

@infer can you apply the must-fix from the review?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.5 · CLI: v0.246.0 · Gateway: v0.63.1 · View Job

Todos

  • Fix check_updates: normalize latest from raw tags (must-fix 1)
  • Add derivation test pinning normalized latest
  • Run repo checks (bun build, fmt, clippy, cargo test)
  • Commit and push

Pull Request

#481

✅ Infer Result: Success

Done. The must-fix from the review is applied and pushed to PR #481.

What was wrong

In check_updates (backend/src/updates.rs), latest was taken raw from the release-tag list (v0.249.0) while current is normalized by parse_version (0.249.0). is_outdated compares the two as plain strings, so every up-to-date CLI or Gateway install was flagged outdated - a permanent false update banner and the one-click flow re-installing the same version endlessly.

What I changed (commit 7a4b918, one file: backend/src/updates.rs)

  • Added latest_from_tags(&[String]) -> String: derives latest from the newest tag through parse_version, stripping the v exactly the way current is derived. The one-line fix the review prescribed, extracted as a named helper so it can be tested.
  • check_updates now uses let latest = latest_from_tags(&versions); - the raw tags in versions still keep their v prefix for the releases/download/<tag>/ URLs.
  • Added test_latest_from_tags: pins that a raw v-prefixed tag list yields a normalized latest (so an up-to-date pair compares equal and a stale pair still reports outdated), plus the empty-list case. This test fails on the old code.

The Desktop row is untouched: its latest already comes normalized from the release's own latest.json.

Verification

bun run build, cargo fmt --all -- --check, cargo clippy --all-targets -- -D warnings, and cargo test all pass (268 tests, including the new one); the pre-commit hook re-ran the full suite on commit. Working tree is clean and in sync with origin/fix/issue-465.

The review's should-fix items 2 (pinned gateway install silently no-ops on Windows) and 3 (failed CLI install leaves the composer disabled) are not in this ask - say the word and I'll take them in a follow-up commit. Not checked: the e2e suite (macOS-only runner) and a live pinned install.

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.5 · CLI: v0.246.0 · Gateway: v0.63.1 · Exit Code: 0 · Duration: 5m 50s

Tokens: 840,100 in · 8,702 out · 848,802 total (18 requests)

Tool calls: 21 total · 100% success rate

Traces
Session: 1794229069-f7b2d054

session (headless, success)                                                                        5m43s
├── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST [inference-gateway, server]                                                    1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Skill call_7jjjdrvg                                                               111µs
├── execute_tool Bash call_9028x1lb                                                                436ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.9s
│           ╰── POST [inference-gateway, server]                                                    2.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
├── execute_tool Read call_n7fb1zs3                                                                603µs
├── chat ollama_cloud/glm-5.3-flash                                                                17.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      17.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    17.2s
│           ╰── POST [inference-gateway, server]                                                   17.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                17.2s
├── execute_tool TodoWrite call_hot8lew3                                                            83µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
│           ╰── POST [inference-gateway, server]                                                    2.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
├── execute_tool MultiEdit call_h40z1g0b                                                             1ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST [inference-gateway, server]                                                    1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Bash call_0osckgnc                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
│           ╰── POST [inference-gateway, server]                                                    3.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
├── execute_tool TodoWrite call_d2fsnxd4                                                            54µs
├── execute_tool Bash call_sfdp6kh4                                                                 9.7s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
├── execute_tool Bash call_xiq1or93                                                                479ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 3.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.5s
│           ╰── POST [inference-gateway, server]                                                    3.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
├── execute_tool Bash call_8ufa5zfj                                                                271ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.0s
│           ╰── POST [inference-gateway, server]                                                    1.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.0s
├── execute_tool Bash call_cvyooup1                                                                272ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
│           ╰── POST [inference-gateway, server]                                                    1.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
├── execute_tool Bash call_ydw0tmhw                                                                  2ms
├── chat ollama_cloud/glm-5.3-flash                                                                929ms
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      911ms
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    903ms
│           ╰── POST [inference-gateway, server]                                                   903ms
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                903ms
├── execute_tool Wait call_1tsy5ne7                                                                1m36s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
│           ╰── POST [inference-gateway, server]                                                    1.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
├── execute_tool Bash call_6c7f1auh                                                                  1ms
├── chat ollama_cloud/glm-5.3-flash                                                                980ms
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      939ms
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    930ms
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       930ms
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                929ms
├── execute_tool Wait call_e18ldyh1                                                                2m15s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
│           ╰── POST [inference-gateway, server]                                                    1.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
├── execute_tool TodoWrite call_u9q8pqnv                                                            67µs
├── execute_tool Bash call_ar02hl5k                                                                  6ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
│           ╰── POST [inference-gateway, server]                                                    1.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
├── execute_tool Bash call_mwznfo95                                                                43.9s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
│           ╰── POST [inference-gateway, server]                                                    1.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
├── execute_tool Bash call_5vyyj6z0                                                                 1.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
│           ╰── POST [inference-gateway, server]                                                    1.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
├── execute_tool TodoWrite call_7ksdjl02                                                            63µs
├── execute_tool Bash call_wu0q0spa                                                                  7ms
╰── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.3s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.3s
            ╰── POST [inference-gateway, server]                                                    4.3s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.3s
Stats
Tool Calls

╭───────────┬───────┬───────┬──────────╮
│ Tool      │ Calls │ Fail% │ Avg      │
├───────────┼───────┼───────┼──────────┤
│ Bash      │ 12    │ 8%    │ 4696ms   │
│ TodoWrite │ 4     │ 0%    │ 61µs     │
│ Wait      │ 2     │ 0%    │ 115251ms │
│ Read      │ 1     │ 0%    │ 606µs    │
│ MultiEdit │ 1     │ 0%    │ 1ms      │
│ Skill     │ 1     │ 0%    │ 99µs     │
╰───────────┴───────┴───────┴──────────╯

Token Usage

╭────────────────────────────┬────────┬────────┬────────────┬────────┬──────╮
│ Model                      │ Prompt │ Cached │ Completion │ Total  │ Cost │
├────────────────────────────┼────────┼────────┼────────────┼────────┼──────┤
│ ollama_cloud/glm-5.3-flash │ 840100 │ 564480 │ 8702       │ 848802 │ -    │
╰────────────────────────────┴────────┴────────┴────────────┴────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ headless │ 1        │
╰───────────┴──────────┴──────────╯

Triggered by edenreich · Infer Action · OSS

@edenreich
edenreich merged commit 7bf60e0 into main Nov 9, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-465 branch November 9, 2026 13:35
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 0.60.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Ability to go back a version on all the 3 different components individually

1 participant