Skip to content

[FEATURE] Include session token stats in the AG-UI RUN_FINISHED event #1186

Closed

Description

@edenreich

Summary

docs/ag-ui-output.md says RUN_FINISHED "carries the session stats (tokens, cost)" in result, but emitRunFinished in internal/platform/render/agui.go emits only WithSuccessOutcome(). RenderAGUI is not handed the session repository, so the counts that RenderJSON already reports in its session_stats line (repo.GetSessionTokens(), repo.GetSessionCostStats()) are dropped on the AG-UI path.

The desktop (inference-gateway/desktop#213, PR inference-gateway/desktop#216) parses RUN_FINISHED for token usage and currently always reads zero.

Proposed change

Pass the conversation repository into RenderAGUI and emit the stats on the terminal event, for example:

{"type":"RUN_FINISHED","threadId":"...","runId":"...","result":{"inputTokens":4821,"outputTokens":310,"cacheReadTokens":3100,"totalToolCalls":3,"cost":0.042,"lastInputTokens":4821,"contextWindow":200000}}

The four token fields are what the desktop parser already expects (inputTokens, outputTokens, cacheReadTokens, totalToolCalls, read from either result or stats). cost, lastInputTokens and contextWindow unblock the desktop's context-percentage and cost indicators (inference-gateway/desktop#217, inference-gateway/desktop#218).

Acceptance

  • RUN_FINISHED carries the per-session totals after a successful run.
  • render_test.go asserts the fields are present and non-zero for a run with at least one request.
  • docs/ag-ui-output.md documents the exact key names.

Activity

  1. added
    enhancement
    on Sep 12, 2026
  2. moved this to Todo in 2026on Sep 12, 2026
  3. edenreich commented on Sep 12, 2026

    @edenreich
    ContributorAuthor

    @infer Can you work on this? use /ponytail:ponytail /go /go-concurrency

  4. inference-gateway-maintainer commented on Sep 12, 2026

    @inference-gateway-maintainer
    Contributor

    Model: ollama_cloud/glm-5.3-flash · View Job

    Todos

    • Read skills (ponytail, go, go-concurrency)
    • Check existing work for issue 1186 (none in this repo)
    • Read agui.go, render.go, docs, tests, repo contracts, SDK options, callers
    • Add issue to Roadmap board, set In progress
    • Create branch fix/issue-1186
    • Implement: pass repo into RenderAGUI, emit stats in RUN_FINISHED
    • Update render_test.go + docs/ag-ui-output.md
    • Validate (build, vet, tests) and commit+push
    • Open draft PR, set board to QA, follow-up issues, mark ready
    • Final verification (status, PR view)

    Pull Request

    #1187

    ✅ Infer Result: Success

    Done. Issue #1186 is resolved by PR #1187 (ready for review, all CI checks pass).

    What changed

    RUN_FINISHED on the AG-UI headless path now carries the per-session stats in result, matching what docs/ag-ui-output.md already claimed:

    • internal/platform/render/render.go - RenderAGUI takes the conversation repository; after a successful run it builds sessionResult from the same repo calls RenderJSON uses (GetSessionTokens / GetSessionCostStats), plus totalToolCalls counted from the session's assistant messages and contextWindow from models.LookupContextWindow (omitted when unknown). Gated exactly like RenderJSON: no model requests means no result (e.g. shortcut answers).
    • internal/platform/render/agui.go - emitRunFinished attaches the stats via the AG-UI SDK's WithResult option on the terminal event.
    • Callers - headless renderStream and the browser extension bridge now pass their repos (the bridge's repo may be nil; the nil-guard keeps that path event-identical to before).
    • render_test.go - new TestRenderAGUI_RunFinishedCarriesSessionStats parses the RUN_FINISHED line and asserts inputTokens 4821, outputTokens 310, cacheReadTokens 3100, totalToolCalls 1, cost 0.042, lastInputTokens 4821, contextWindow 200000, plus the zero-request no-result case; all existing AG-UI tests pass a repo.
    • docs/ag-ui-output.md - documents the exact key names in a RUN_FINISHED result table.

    Validation: render + browser-infrastructure tests pass, task fmt and task lint (purego type-check gate) clean, full pre-commit gate passed, and all PR CI checks pass (build, test, e2e, lint, vet, CodeQL, postgres).

    Follow-ups filed: [DOCS] issue in inference-gateway/docs (#672) and a downstream tracking issue for the desktop parser in inference-gateway/desktop (#220). Board item moved to QA. PR: #1187

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 15m 21s

    Tokens: 4,129,366 in · 33,424 out · 4,162,790 total (45 requests)

    Tool calls: 81 total · 100% success rate

    Traces
    Session: 1789230633-2eaa3004
    
    session (headless, success)                                                 15m13s
    ├── chat ollama_cloud/glm-5.3-flash                                           7.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         7.5s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     7.5s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               7.5s
    │               ╰── POST /v1/chat/completions [inference-gateway]             7.5s [error: *errors.errorString]
    ├── execute_tool Read call_v7qv2rfz                                          251µs
    ├── execute_tool Read call_tn4xs2ky                                          232µs
    ├── execute_tool TodoWrite call_no8kyxiq                                      87µs
    ├── chat ollama_cloud/glm-5.3-flash                                           3.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.0s [error: *errors.errorString]
    ├── execute_tool Read call_sotgbezw                                          283µs
    ├── execute_tool Read call_f264mgao                                          164µs
    ├── chat ollama_cloud/glm-5.3-flash                                           6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         6.5s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     6.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               6.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             6.4s
    ├── execute_tool Grep call_7ddud37c                                          106ms
    ├── execute_tool Read call_vh7omq9i                                          175µs
    ├── execute_tool Bash call_0e68vaff                                          247ms
    ├── chat ollama_cloud/glm-5.3-flash                                           4.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.9s [error: *errors.errorString]
    ├── execute_tool Read call_xaxanmhj                                          295µs
    ├── execute_tool Read call_737gevpw                                          185µs
    ├── execute_tool Bash call_d8e43cez                                            4ms
    ├── chat ollama_cloud/glm-5.3-flash                                          11.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        10.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    10.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              10.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]            10.9s [error: *errors.errorString]
    ├── execute_tool Read call_nqoo50yc                                          192µs
    ├── execute_tool Read call_ouoe77bz                                          197µs
    ├── execute_tool TodoWrite call_8mc7xdkw                                      71µs
    ├── chat ollama_cloud/glm-5.3-flash                                          12.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        12.5s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    12.5s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              12.5s
    │               ╰── POST /v1/chat/completions [inference-gateway]            12.5s [error: *errors.errorString]
    ├── execute_tool Read call_lguzzlab                                          205µs
    ├── execute_tool Read call_ezzie9aw                                          256µs
    ├── execute_tool Bash call_xdeyd30z                                            6ms
    ├── chat ollama_cloud/glm-5.3-flash                                           6.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         6.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     6.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               6.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             6.0s [error: *errors.errorString]
    ├── execute_tool Grep call_t7wcncd9                                           23ms
    ├── execute_tool Grep call_3vuoxj0v                                          101ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.4s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.4s [error: *errors.errorString]
    ├── execute_tool Read call_z0wnvtgt                                          116µs [error: tool_error]
    ├── execute_tool Read call_25u6ndum                                          175µs
    ├── chat ollama_cloud/glm-5.3-flash                                           5.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         5.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     5.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               5.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             5.0s [error: *errors.errorString]
    ├── execute_tool Grep call_66aj4wiy                                          728µs
    ├── execute_tool Grep call_v93u4q4b                                           64ms
    ├── execute_tool Bash call_iiipkwbc                                            4ms
    ├── chat ollama_cloud/glm-5.3-flash                                           5.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         5.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     5.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               5.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             5.0s [error: *errors.errorString]
    ├── execute_tool Memory call_vsn0ul7y                                        127µs
    ├── execute_tool Read call_uwriy2lp                                          212µs
    ├── execute_tool Read call_18v3j9rn                                          207µs
    ├── execute_tool Bash call_kerg15oo                                            3ms
    ├── chat ollama_cloud/glm-5.3-flash                                           2.6s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.6s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.5s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.5s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.5s [error: *errors.errorString]
    ├── execute_tool Read call_7nts7zqw                                          210µs
    ├── execute_tool Bash call_rlyd980a                                            3ms
    ├── chat ollama_cloud/glm-5.3-flash                                          20.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        20.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    20.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              20.1s
    │               ╰── POST /v1/chat/completions [inference-gateway]            20.1s
    ├── execute_tool Grep call_slnvstiw                                            7ms
    ├── execute_tool Bash call_4da7thjg                                            4ms
    ├── execute_tool Grep call_zgsncg4p                                           88ms
    ├── chat ollama_cloud/glm-5.3-flash                                          10.3s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        10.3s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    10.2s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              10.2s
    │               ╰── POST /v1/chat/completions [inference-gateway]            10.2s [error: *errors.errorString]
    ├── execute_tool Grep call_qh1z00zc                                          711µs
    ├── execute_tool Grep call_m9krppte                                           63ms
    ├── chat ollama_cloud/glm-5.3-flash                                          25.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        25.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    25.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              25.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]            25.0s [error: *errors.errorString]
    ├── execute_tool TodoWrite call_1fqotmf2                                      71µs
    ├── execute_tool Bash call_w6pqx2j0                                          260ms
    ├── chat ollama_cloud/glm-5.3-flash                                           2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.2s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.1s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.1s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.1s [error: *errors.errorString]
    ├── execute_tool Bash call_3fnq8iad                                            9ms
    ├── execute_tool Bash call_thbaoqb6                                           1.6s
    ├── chat ollama_cloud/glm-5.3-flash                                           4.3s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.3s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.3s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.3s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.3s [error: *errors.errorString]
    ├── execute_tool Bash call_ug2ba88u                                           1.5s
    ├── execute_tool Bash call_yxy61d5o                                          779ms
    ├── chat ollama_cloud/glm-5.3-flash                                          11.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        10.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    10.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              10.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]            10.9s [error: *errors.errorString]
    ├── execute_tool Read call_7fmm4dy4                                          205µs
    ├── execute_tool TodoWrite call_4c6ckmmo                                      80µs
    ├── chat ollama_cloud/glm-5.3-flash                                          20.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        20.5s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    20.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              20.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]            20.4s [error: *errors.errorString]
    ├── execute_tool Read call_aeh3b9bt                                          284µs
    ├── execute_tool Read call_ap56es5g                                          237µs
    ├── chat ollama_cloud/glm-5.3-flash                                          29.6s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        29.6s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    29.6s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              29.6s
    │               ╰── POST /v1/chat/completions [inference-gateway]            29.6s [error: *errors.errorString]
    ├── execute_tool Edit call_w3mo98bv                                          366µs
    ├── execute_tool MultiEdit call_zohcn073                                     312µs
    ├── chat ollama_cloud/glm-5.3-flash                                           2.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.4s [error: *errors.errorString]
    ├── execute_tool Edit call_cgcoawhq                                          414µs
    ├── execute_tool Edit call_kp46ovqn                                          415µs
    ├── chat ollama_cloud/glm-5.3-flash                                          13.4s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        13.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    13.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              13.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]            13.4s [error: *errors.errorString]
    ├── execute_tool MultiEdit call_p910709n                                     470µs
    ├── chat ollama_cloud/glm-5.3-flash                                           4.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.0s [error: *errors.errorString]
    ├── execute_tool MultiEdit call_t69i2ayj                                     267µs
    ├── chat ollama_cloud/glm-5.3-flash                                           4.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.4s [error: *errors.errorString]
    ├── execute_tool Bash call_xrqijtrw                                          17.0s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.9s [error: *errors.errorString]
    ├── execute_tool Bash call_951mv3ri                                          44.8s [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                           4.8s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.8s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.7s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.7s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.7s [error: *errors.errorString]
    ├── execute_tool Bash call_9qwc9ij3                                           9.4s [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                           5.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.9s [error: *errors.errorString]
    ├── execute_tool Bash call_b9iykqgv                                           2.1s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.0s [error: *errors.errorString]
    ├── execute_tool Bash call_hjqke3bd                                           1m8s
    ├── chat ollama_cloud/glm-5.3-flash                                           6.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         5.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     5.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               5.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             5.9s [error: *errors.errorString]
    ├── execute_tool Bash call_r7rq5fpa                                            9ms
    ├── chat ollama_cloud/glm-5.3-flash                                           1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         1.8s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     1.8s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               1.8s
    │               ╰── POST /v1/chat/completions [inference-gateway]             1.8s [error: *errors.errorString]
    ├── execute_tool Bash call_2wyz0it3                                           12ms
    ├── chat ollama_cloud/glm-5.3-flash                                           2.4s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.4s [error: *errors.errorString]
    ├── execute_tool Bash call_99r2ayj8                                           5.2s
    ├── chat ollama_cloud/glm-5.3-flash                                          10.7s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        10.6s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    10.6s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              10.6s
    │               ╰── POST /v1/chat/completions [inference-gateway]            10.6s [error: *errors.errorString]
    ├── execute_tool Write call_1dddkpvx                                         779µs
    ├── execute_tool Bash call_umc7apqd                                           1.3s
    ├── chat ollama_cloud/glm-5.3-flash                                           1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         1.8s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     1.8s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               1.8s
    │               ╰── POST /v1/chat/completions [inference-gateway]             1.8s [error: *errors.errorString]
    ├── execute_tool Bash call_ag8nj8rs                                           1.7s
    ├── chat ollama_cloud/glm-5.3-flash                                           6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         6.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     6.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               6.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             6.4s [error: *errors.errorString]
    ├── execute_tool Bash call_g5zqnimv                                          440ms
    ├── chat ollama_cloud/glm-5.3-flash                                           4.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.9s [error: *errors.errorString]
    ├── execute_tool WebFetch call_6w9c0t77                                       61ms
    ├── chat ollama_cloud/glm-5.3-flash                                           9.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         9.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     9.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               9.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             9.0s [error: *errors.errorString]
    ├── execute_tool Write call_o0y3xxjb                                         835µs
    ├── execute_tool WebFetch call_4ya3eau4                                       68ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.9s [error: *errors.errorString]
    ├── execute_tool Write call_ghbsiktf                                         690µs
    ├── execute_tool Bash call_xevh4nun                                           1.0s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         1.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     1.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               1.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             1.9s [error: *errors.errorString]
    ├── execute_tool Bash call_b6mrx3ar                                           1.1s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.0s [error: *errors.errorString]
    ├── execute_tool Bash call_tefyo0qf                                          846ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                           3.3s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.2s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.2s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.2s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.2s [error: *errors.errorString]
    ├── chat ollama_cloud/glm-5.3-flash                                           1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         1.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     1.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               1.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             1.9s [error: *errors.errorString]
    ├── execute_tool Wait call_x9hf4a1c                                          7m23s
    ├── chat ollama_cloud/glm-5.3-flash                                           5.4s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         5.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     5.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               5.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             5.4s [error: *errors.errorString]
    ├── execute_tool Memory call_8hwnnowu                                         1.1s
    ├── execute_tool Bash call_k5csej6d                                          974ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.4s [error: *errors.errorString]
    ├── execute_tool TodoWrite call_vtme8w2c                                      75µs
    ├── execute_tool Bash call_6wg31jzm                                            9ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.3s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.3s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.3s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.3s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.3s [error: *errors.errorString]
    ├── execute_tool Bash call_7nutbh08                                           11ms
    ├── execute_tool Bash call_5wss3sm1                                          505ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.8s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.8s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.8s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.8s [error: *errors.errorString]
    ├── execute_tool TodoWrite call_s02v1o3v                                      75µs
    ╰── chat ollama_cloud/glm-5.3-flash                                           4.6s
        ╰── POST /v1/chat/completions [inference-gateway]                         4.6s
            ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.6s [error: *errors.errorString]
                ╰── POST /proxy/:provider/*path [inference-gateway]               4.6s
                    ╰── POST /v1/chat/completions [inference-gateway]             4.6s [error: *errors.errorString]
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬──────────╮
    │ Tool      │ Calls │ Fail% │ Avg      │
    ├───────────┼───────┼───────┼──────────┤
    │ Bash      │ 30    │ 10%   │ 5299ms   │
    │ Read      │ 19    │ 5%    │ 0ms      │
    │ Grep      │ 9     │ 0%    │ 50ms     │
    │ TodoWrite │ 6     │ 0%    │ 0ms      │
    │ Edit      │ 3     │ 0%    │ 0ms      │
    │ Write     │ 3     │ 0%    │ 0ms      │
    │ MultiEdit │ 3     │ 0%    │ 0ms      │
    │ WebFetch  │ 2     │ 0%    │ 64ms     │
    │ Memory    │ 2     │ 0%    │ 570ms    │
    │ Wait      │ 1     │ 0%    │ 442652ms │
    ╰───────────┴───────┴───────┴──────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 4129366 │ 3503360 │ 33424      │ 4162790 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  5. moved this from Todo to In progress in 2026on Sep 12, 2026
  6. moved this from In progress to QA in 2026on Sep 12, 2026
  7. inference-gateway-releaser commented on Sep 12, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.190.2 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  8. moved this from QA to Done in 2026on Sep 12, 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

    enhancementreleased

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions