Skip to content

fix(daemon): drop protocol_version from the handshake - #421

Merged
edenreich merged 3 commits into
mainfrom
fix/daemon-handshake
Nov 5, 2026
Merged

edenreich merged 3 commits into
mainfrom
fix/daemon-handshake

Conversation

@edenreich

@edenreich edenreich commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The CLI removed protocol_version from the binding hello and its ack in v0.241.0 (inference-gateway/cli#1685). The app still required it in the ack, so it refused every daemon from that release on - and it installs the CLI from releases/latest.

Changes

  • The hello no longer sends protocol_version and the ack is accepted on its type alone.
  • PROTOCOL_VERSION is gone, and the version-mismatch test now covers an unacknowledged hello.
  • The flox infer pin moves from v0.236.3 to v0.244.0.
  • CI: the windows "Verify CLI init contract" step now downloads infer-windows-amd64.tar.gz and extracts infer.exe with tar, the way the installer does. Releases since the tarball switch ship tarballs only, so the flat infer-windows-amd64 asset the step fetched no longer exists and the job failed with a 404.

The CLI removed protocol_version from the binding hello and its ack in
v0.241.0, so the app refused every daemon from that release on. The hello
no longer sends it and the ack is accepted on its type alone.
@edenreich

Copy link
Copy Markdown
Contributor Author

@infer CI is failing, can you fix this?

@inference-gateway-maintainer

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

Copy link
Copy Markdown
Contributor

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.4 · CLI: v0.244.0 · Gateway: v0.63.0 · View Job

Todos

  • Inspect the failing CI check (windows-2025) logs
  • Fix the verify step: download the CLI release tarball and extract infer.exe
  • Validate locally (fmt, clippy, check, test - pre-commit hook all green)
  • Commit and push the fix
  • Update PR body with the CI fix and new file list
  • Confirm CI passes on the new commit (all 7 checks green)

Pull Request

#421

✅ Infer Result: Success

CI is fixed. All 7 checks now pass on the PR, including check (windows-2025).

What was failing

The windows-only "Verify CLI init contract" step downloaded https://github.com/inference-gateway/cli/releases/latest/download/infer-windows-amd64 (a flat binary asset). Since the CLI switched its release packaging, releases/latest/download/... no longer serves flat binaries - latest release v0.244.0 publishes only infer-<os>-<arch>.tar.gz tarballs (verified via gh release view) - so the step failed with a 404 ("Page not found"). The app's own installer had already been switched to the tarball in main's #420 ("install the CLI from its release tarball"), but the CI verify step was missed. Everything else in the windows job (fmt, clippy, the 179 tests) passed, so this was the only breakage.

What I changed (commit 28c913e, ci(check): verify the init contract against the CLI release tarball, one file: .github/workflows/ci.yml)

  • The verify step now downloads infer-windows-amd64.tar.gz and extracts infer.exe with tar -xzf ... -C $dir, exactly mirroring what the installer does. The tarball's layout was verified against the CLI's release workflow (cli/.github/workflows/release.yml): each archive holds one member at the tar root, renamed to infer.exe on windows via tar --transform.
  • Added a $LASTEXITCODE guard after extraction so a botched archive fails the step with a clear message instead of a missing-binary error downstream.
  • All existing contract assertions (bare infer init seeds ~/.infer/config.yaml, --userspace is gone) are unchanged.

Validation

  • Workflow YAML parses (checked with js-yaml) and the step structure is intact.
  • The repo's pre-commit hook ran the full suite: frontend build, cargo fmt --check, cargo clippy, cargo check, cargo test (191 tests) - all green.
  • The PR body was refreshed to include the CI fix, and I confirmed the new push renders all checks green (check (windows-2025) passes in 2m18s).

One note: I could not run the windows tar extraction locally (this runner is Linux and tar is outside the command allow-list), so the step's runtime behaviour was verified from source of both sides (the CLI tarball layout and the installer's identical tar -xzf extraction) rather than by executing it - the green windows job is the final proof.

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.4 · CLI: v0.244.0 · Gateway: v0.63.0 · Exit Code: 0 · Duration: 14m 9s

Tokens: 2,800,235 in · 20,443 out · 2,820,678 total (31 requests)

Tool calls: 40 total · 100% success rate

Traces
Session: 1793882244-c30d1779

session (headless, success)                                                                        14m1s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
├── execute_tool TodoWrite call_2ghbfm7b                                                            60µs
├── 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 Bash call_hq6nhu6z                                                                 1.2s [error: tool_error]
├── execute_tool Bash call_3lfk2yos                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
│           ╰── POST [inference-gateway, server]                                                    2.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
├── execute_tool Bash call_15vmuxfg                                                                 1.4s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.1s
│           ╰── POST [inference-gateway, server]                                                    7.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.1s
├── execute_tool Bash call_8u39vf64                                                                344ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.8s
│           ╰── POST [inference-gateway, server]                                                    2.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
├── execute_tool Bash call_7c019482                                                                365ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
│   ╰── 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 Read call_o7obshtw                                                                555µs
├── chat ollama_cloud/glm-5.3-flash                                                                 4.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.7s
│           ╰── POST [inference-gateway, server]                                                    4.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.7s
├── execute_tool Bash call_ez0vdoo0                                                                315ms
├── chat ollama_cloud/glm-5.3-flash                                                                 4.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.1s
│           ╰── POST [inference-gateway, server]                                                    4.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.1s
├── execute_tool Read call_63xb16ym                                                                547µ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 Bash call_2pzw3mhi                                                                  5ms
├── execute_tool Grep call_tpczilkt                                                                  1ms
├── 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 Read call_n3rrd897                                                                598µs
├── chat ollama_cloud/glm-5.3-flash                                                                42.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      42.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    42.5s
│           ╰── POST [inference-gateway, server]                                                   42.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                42.5s
├── execute_tool TodoWrite call_woz3d4c1                                                            60µs
├── execute_tool Grep call_8gd4r4lw                                                                 7.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.2s
│           ╰── POST [inference-gateway, server]                                                    7.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.2s
├── execute_tool MultiEdit call_18bbipja                                                           818µs [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                11.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.8s
│           ╰── POST [inference-gateway, server]                                                   11.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.8s
├── execute_tool Bash call_foa31ru4                                                                 25ms
├── chat ollama_cloud/glm-5.3-flash                                                                 5.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.6s
│           ╰── POST [inference-gateway, server]                                                    5.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.6s
├── execute_tool MultiEdit call_p4vx9vwk                                                           967µs
├── chat ollama_cloud/glm-5.3-flash                                                                14.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.0s
│           ╰── POST [inference-gateway, server]                                                   14.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.0s
├── execute_tool Bash call_ueahl25h                                                                 26ms
├── execute_tool Bash call_27nkbe5j                                                                  3ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 8.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.6s
│           ╰── POST [inference-gateway, server]                                                    8.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.6s
├── execute_tool Bash call_ff3qrz46                                                                 40ms
├── execute_tool WebFetch call_8ffcg7r0                                                            391ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 6.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.0s
│           ╰── POST [inference-gateway, server]                                                    6.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 5.3s
│   ╰── 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 Bash call_9dyxhiwi                                                                365ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 4.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.9s
│           ╰── POST [inference-gateway, server]                                                    4.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.9s
├── execute_tool Bash call_ualxd2hf                                                                444ms
├── chat ollama_cloud/glm-5.3-flash                                                                18.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      18.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    18.8s
│           ╰── POST [inference-gateway, server]                                                   18.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                18.8s
├── execute_tool Bash call_t8in958t                                                                842ms
├── execute_tool Bash call_txzn5dvh                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 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.8s
│           ╰── POST [inference-gateway, server]                                                    3.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.8s
├── execute_tool TodoWrite call_zrt4lnbp                                                            64µs
├── execute_tool Bash call_b6ffzqxu                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
│           ╰── POST [inference-gateway, server]                                                    2.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
├── execute_tool Bash call_lwkv575r                                                                3m15s
├── 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 Bash call_1eveizvh                                                                 1.7s
├── chat ollama_cloud/glm-5.3-flash                                                                 8.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.3s
│           ╰── POST [inference-gateway, server]                                                    8.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.3s
├── execute_tool TodoWrite call_7gu9qr0g                                                            68µs
├── execute_tool Bash call_53cqrbvs                                                                417ms
├── chat ollama_cloud/glm-5.3-flash                                                                 5.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.3s
│           ╰── POST [inference-gateway, server]                                                    5.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.3s
├── execute_tool Bash call_r39ffl9g                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 6.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.5s
│           ╰── POST [inference-gateway, server]                                                    6.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.5s
├── execute_tool Write call_1gshq35n                                                                 1ms
├── 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 Bash call_h3pzmolj                                                                 2.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 9.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.1s
│           ╰── POST [inference-gateway, server]                                                    9.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.1s
├── execute_tool Memory call_wg1etnn9                                                               1.9s
├── chat ollama_cloud/glm-5.3-flash                                                                 3.0s
│   ╰── 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 Wait call_c0urpauq                                                                6m51s
├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.9s
│           ╰── POST [inference-gateway, server]                                                    3.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.9s
├── execute_tool TodoWrite call_dtv4cvve                                                            64µs
├── execute_tool Bash call_7wkgm36g                                                                  5ms
╰── chat ollama_cloud/glm-5.3-flash                                                                 7.3s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.2s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.2s
            ╰── POST [inference-gateway, server]                                                    7.2s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.2s
Stats
Tool Calls

╭───────────┬───────┬───────┬──────────╮
│ Tool      │ Calls │ Fail% │ Avg      │
├───────────┼───────┼───────┼──────────┤
│ Bash      │ 22    │ 18%   │ 9318ms   │
│ TodoWrite │ 5     │ 0%    │ 58µs     │
│ Read      │ 3     │ 0%    │ 568µs    │
│ Grep      │ 2     │ 0%    │ 3589ms   │
│ MultiEdit │ 2     │ 50%   │ 857µs    │
│ Write     │ 1     │ 0%    │ 1ms      │
│ Memory    │ 1     │ 0%    │ 1851ms   │
│ Wait      │ 1     │ 0%    │ 410930ms │
│ WebFetch  │ 1     │ 100%  │ 391ms    │
╰───────────┴───────┴───────┴──────────╯

Token Usage

╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
│ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3-flash │ 2800235 │ 2338560 │ 20443      │ 2820678 │ -    │
╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯

Sessions

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

Triggered by edenreich · Infer Action · OSS

CLI releases since v0.244.0 ship the executable as infer-<os>-<arch>.tar.gz holding one infer / infer.exe at the tar root, so the flat infer-windows-amd64 asset the windows verify step downloaded no longer exists and the step failed with a 404. Fetch the tarball and extract infer.exe with tar, exactly the way the installer does.
@edenreich
edenreich marked this pull request as ready for review November 5, 2026 12:51
@edenreich
edenreich merged commit bf8e1d6 into main Nov 5, 2026
1 check passed
@edenreich
edenreich deleted the fix/daemon-handshake branch November 5, 2026 12:52
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.53.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 5, 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.

1 participant