Skip to content

[TASK] Refactor hand-written test stubs onto the committed counterfeiter fakes #1920

Closed

Description

Summary

AGENTS.md (Testing) says never to hand-write fake or mock structs in _test.go, because every test double is counterfeiter output committed to tests/mocks/. Two test files still hand-roll doubles for interfaces whose generated fakes are already committed and kept current by task mocks:generate:

  • internal/presentation/tui/components/application_view_test.go declares stubModeState (for agentdomain.AgentModeState, passed to ModeIndicator.SetStateManager), stubStatusView (tui.StatusComponent), stubInputView (tui.InputComponent) and stubHelpBar (tui.HelpBarComponent). The fakes agentdomainmocks.FakeAgentModeState, tuimocks.FakeStatusComponent, tuimocks.FakeInputComponent and tuimocks.FakeHelpBarComponent already exist, and the file already imports tuimocks. Three of the stubs satisfy their interface by embedding a nil interface value, so a call to any method they do not override panics with a nil dereference instead of returning a zero value.
  • internal/presentation/shortcuts/model_test.go declares mockModelService with hand-written ListModels, SelectModel, GetCurrentModel, IsModelAvailable and ValidateModel for convdomain.ModelService, which conversationmocks.FakeModelService already covers.

Why it is a win: the hand-written copies duplicate code the repo already generates, and they drift silently when an interface grows (the embedded-interface stubs still compile but panic at runtime). Principle: clean-code "duplication" and "unit test quality" (tests speak the project's own testing language), plus the repo's counterfeiter-only rule. The fix is local to two test files, with no production change and no new mock generation.

Left out on purpose: stubShortcut in internal/presentation/shortcuts/noninteractive_test.go duplicates shortcutsmocks.FakeShortcut, but that test lives in package shortcuts and the fake imports that package, so swapping it needs an external test package first.

Acceptance Criteria

  • Before: application_view_test.go declares stubModeState, stubStatusView, stubInputView and stubHelpBar. After: those types are gone and the tests configure agentdomainmocks.FakeAgentModeState (GetAgentModeReturns), tuimocks.FakeStatusComponent (RenderReturns), tuimocks.FakeInputComponent and tuimocks.FakeHelpBarComponent instead.
  • Before: model_test.go declares mockModelService and its five methods. After: the tests use conversationmocks.FakeModelService through its Returns and Stub fields, and assert SelectModelArgsForCall where they used to read the stub's currentModel.
  • No new counterfeiter line is added to Taskfile.yml, since all five fakes are already generated.
  • Imports keep the six-group layout with the canonical agentdomainmocks, tuimocks and conversationmocks aliases.
  • Existing tests still pass.

Activity

  1. edenreich commented on Nov 20, 2026

    @edenreich
    Contributor

    @infer can you work on this? use /ponytail:ponytail /domain-driven-design /go /go-concurrency

  2. inference-gateway-maintainer commented on Nov 20, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.11 · CLI: v0.263.0 · Gateway: v0.68.0 · View Job

    Todos

    • Add issue to Roadmap board and set In progress
    • Create and push working branch fix/issue-1920
    • Read both test files and the committed fakes
    • Swap stubs for fakes in application_view_test.go
    • Swap mockModelService for conversationmocks.FakeModelService (model/core/effort tests)
    • Run repo checks and tests
    • Commit, push, open draft PR, set board QA

    Pull Request

    #1924

    ✅ Infer Result: Success

    Done. Issue #1920 is resolved by PR inference-gateway/cli#1924 (branch fix/issue-1920, marked ready for review, board item moved to QA).

    What changed

    Test-only refactor, +43/-97 across four test files, no production code:

    • internal/presentation/tui/components/application_view_test.go - deleted stubModeState, stubStatusView, stubInputView and stubHelpBar. modeIndicatorFor now wires agentdomainmocks.FakeAgentModeState with GetAgentModeReturns; the row test passes a tuimocks.FakeStatusComponent with RenderReturns; the subagent-row test passes bare tuimocks.FakeStatusComponent / FakeInputComponent / FakeHelpBarComponent. This also removes the embedded-nil-interface stubs that would have panicked on any un-overridden method call.
    • internal/presentation/shortcuts/model_test.go - deleted mockModelService and its five methods. Tests use conversationmocks.FakeModelService: GetCurrentModelReturns / ValidateModelReturns in the table test, and the permanent-switch test now asserts SelectModelCallCount + SelectModelArgsForCall(0) where it used to read the stub's currentModel field.
    • internal/presentation/shortcuts/core_test.go and effort_test.go - not named in the issue, but the same package compiles them together and they consumed the shared mockModelService, so they were swapped to the fakes (GetCurrentModelReturns) too. Without this the package would not compile.
    • No Taskfile.yml change - all fakes were already generated (mocks:generate stayed "up to date" during pre-commit).

    Verification

    • task precommit:run passes end to end (mod tidy, mocks up to date, fmt, import-alias lint, golangci-lint 0 issues, markdownlint) - it ran as the commit gate and again detached before push.
    • go vet and go test pass on both affected packages; working tree clean, branch pushed, Resolves #1920 in the PR body.

    Kept out on purpose (as the issue scoped): stubTokenEstimator and stubShortcut have no committed counterpart fake, so removing them would require new mock generation or an external test package.

    Skipped or unchecked: I did not convert stubTokenEstimator/stubShortcut and did not run the full go test ./... suite (only the affected packages plus the full lint gate) - CI will cover the rest. Risk: net test-only change, so the only real exposure is if CI surfaces an unrelated flaky test.

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.11 · CLI: v0.263.0 · Gateway: v0.68.0 · Exit Code: 0 · Duration: 8m 34s

    Tokens: 4,044,037 in · 51,710 out · 4,095,747 total (45 requests)

    Tool calls: 78 total · 100% success rate

    Traces
    Session: 1795186258-7ef1cfae
    
    session (headless, success)                                                                        8m26s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.4s
    │   ╰── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
    ├── execute_tool Skill call_l755anol                                                               122µs
    ├── execute_tool Skill call_qdnpz935                                                                39µs
    ├── execute_tool Skill call_30b5bz9n                                                                78µs
    ├── execute_tool Skill call_zziyepzg                                                                69µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
    ├── execute_tool TodoWrite call_vmp1pn3a                                                            61µs
    ├── execute_tool Bash call_y544foh5                                                                286ms
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Bash call_1jr8by6x                                                                 1.5s
    ├── 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_lmlede1d                                                                827ms
    ├── execute_tool Bash call_228rivp6                                                                178ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                902ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      895ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    892ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       892ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                891ms
    ├── execute_tool Bash call_lhcafwdj                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool Bash call_lwfmxq99                                                                 1.4s
    ├── execute_tool Read call_eu1wyzal                                                                330µs
    ├── execute_tool Read call_z0bkh6yx                                                                371µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                17.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      17.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    17.4s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       17.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                17.4s
    ├── execute_tool Read call_ai7q2axr                                                                  2ms [error: tool_error]
    ├── 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 Bash call_7dkff9y6                                                                  3ms
    ├── execute_tool Bash call_d3e2fx3y                                                                  3ms
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_0s7fuib8                                                                  5ms
    ├── execute_tool Grep call_ek6zndvn                                                                 10ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool Grep call_q4pg6kze                                                                  7ms
    ├── execute_tool Read call_mhdpi0fk                                                                384µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool Grep call_ejd9k1g1                                                                906µs
    ├── execute_tool Read call_ey0yi57m                                                                312µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                11.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       11.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.1s
    ├── execute_tool Grep call_w0eu2c9x                                                                796µs
    ├── execute_tool Grep call_5tc39qs5                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        6.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.6s
    ├── execute_tool Grep call_ytyecj3i                                                                 10ms
    ├── execute_tool Grep call_ul2phuxm                                                                220ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                12.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       12.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.3s
    ├── execute_tool Grep call_daluzgf8                                                                768ms
    ├── execute_tool Grep call_75nt6xya                                                                 20ms
    ├── 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.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.7s
    ├── execute_tool Read call_wp2h8hai                                                                286µs
    ├── execute_tool Read call_coauy8ov                                                                368µs
    ├── execute_tool Read call_u6be1zi4                                                                368µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                27.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      27.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    27.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       27.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                27.6s
    ├── execute_tool Read call_8lur3lw0                                                                293µs
    ├── execute_tool Read call_wrdy5vrj                                                                301µs
    ├── execute_tool Read call_uq5tdcpm                                                                301µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                23.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      23.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    23.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       23.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                23.7s
    ├── execute_tool MultiEdit call_dz3pv5rh                                                           559µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       13.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.1s
    ├── execute_tool Grep call_f9a6let9                                                                752µs
    ├── execute_tool Grep call_5jmyf1bx                                                                826µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                17.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      17.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    17.0s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       17.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                17.0s
    ├── execute_tool MultiEdit call_ptu66sqg                                                           633µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                19.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      19.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    19.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       19.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                19.3s
    ├── execute_tool Grep call_9pyqpwft                                                                736µs
    ├── execute_tool Grep call_g3zqsg33                                                                930µs
    ├── execute_tool Grep call_cfcwzeae                                                                930µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                20.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      20.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    20.5s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       20.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                20.5s
    ├── execute_tool MultiEdit call_7oup7yat                                                             1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Bash call_xg1n1lad                                                                  3ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
    ├── execute_tool Grep call_el3ajmvq                                                                727µs
    ├── execute_tool Grep call_ecw0c7lx                                                                684µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.1s
    │   ╰── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        3.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
    ├── execute_tool Grep call_3xle6r59                                                                813µs
    ├── execute_tool Grep call_elm4q3fg                                                                737µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.0s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       13.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.0s
    ├── execute_tool Write call_tf3y67sc                                                               644µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                970ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      959ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    951ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       951ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                951ms
    ├── execute_tool Bash call_kbekyt42                                                                  7ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.6s
    ├── execute_tool Write call_tlvdkkd5                                                               736µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                957ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      946ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    938ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       938ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                938ms
    ├── execute_tool Bash call_xawsafjr                                                                 3.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                28.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      28.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    28.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       28.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                28.2s
    ├── execute_tool TodoWrite call_tirhtvtb                                                            57µs
    ├── 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.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.7s
    ├── execute_tool MultiEdit call_avfy8ct6                                                           531µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       13.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.2s
    ├── execute_tool Grep call_di7p01mj                                                                 11ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                16.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      16.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    16.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       16.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                16.6s
    ├── execute_tool MultiEdit call_r4jpi29s                                                           422µs
    ├── execute_tool Edit call_i2mbgfxh                                                                428µs
    ├── execute_tool MultiEdit call_8e35nxws                                                           316µs
    ├── 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.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.7s
    ├── execute_tool TodoWrite call_1q0wxvru                                                            55µs
    ├── execute_tool Bash call_tc4ksqtc                                                                  7ms
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_zv47x7po                                                                37.2s
    ├── execute_tool Bash call_z4fuiz9x                                                                13.2s
    ├── 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.7s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
    ├── execute_tool Bash call_gi36qdc1                                                                  8ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                936ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      922ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    913ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       912ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                912ms
    ├── execute_tool Bash call_5euetqg0                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      974ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    964ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       964ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                963ms
    ├── execute_tool Wait call_qu4rbgbz                                                                1m52s
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_rozquqkb                                                                  6ms
    ├── execute_tool Bash call_jjfkltdq                                                                  3ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.5s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.5s
    ├── execute_tool Bash call_724rz487                                                                 5.5s
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        3.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
    ├── execute_tool Bash call_imxryyi0                                                                 1.5s
    ├── execute_tool Write call_qvz8so5v                                                               666µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
    │   ╰── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
    ├── execute_tool Bash call_zqxexeyq                                                                 1.8s
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
    ├── execute_tool Bash call_4un7kg48                                                                 1.0s
    ├── execute_tool Memory call_m3p21tis                                                               1.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_i3ep0zh8                                                                  6ms
    ├── execute_tool Bash call_dpie50yb                                                                  6ms
    ├── execute_tool Bash call_79esntz3                                                                209ms
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        3.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.9s
    ├── execute_tool Bash call_knulekk6                                                                 1.1s
    ├── execute_tool TodoWrite call_xzvor3ir                                                            51µs
    ╰── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        3.8s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.8s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬──────────╮
    │ Tool      │ Calls │ Fail% │ Avg      │
    ├───────────┼───────┼───────┼──────────┤
    │ Bash      │ 27    │ 4%    │ 2552ms   │
    │ Grep      │ 19    │ 0%    │ 56ms     │
    │ Read      │ 11    │ 9%    │ 525µs    │
    │ MultiEdit │ 6     │ 33%   │ 625µs    │
    │ TodoWrite │ 4     │ 0%    │ 55µs     │
    │ Skill     │ 4     │ 0%    │ 84µs     │
    │ Write     │ 3     │ 0%    │ 677µs    │
    │ Edit      │ 1     │ 0%    │ 427µs    │
    │ Wait      │ 1     │ 0%    │ 112000ms │
    │ Memory    │ 1     │ 0%    │ 1770ms   │
    ╰───────────┴───────┴───────┴──────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 4044037 │ 3382400 │ 51710      │ 4095747 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  3. moved this from Todo to In progress in 2026on Nov 20, 2026
  4. moved this from In progress to QA in 2026on Nov 20, 2026
  5. inference-gateway-releaser commented on Nov 20, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.265.4 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  6. moved this from QA to Done in 2026on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions