Skip to content

feat(tui): queue indicator in status bar and source markers for queued messages - #1355

Merged
edenreich merged 2 commits into
mainfrom
fix/issue-1347
Sep 27, 2026
Merged

edenreich merged 2 commits into
mainfrom
fix/issue-1347

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1347

Summary

Queued messages (messages waiting while the agent is busy) now carry their
origin with them, and the UI surfaces it: a queue indicator appears in the
status bar below the input while the queue has entries, and each line in the
queue box above the input is prefixed with a source marker so a typed message
is distinguishable from a background job result.

Changes

  • QueuedMessage gains a Source field (composer, stdin, a2a, shell,
    subagent, job), set at enqueue time - never guessed from message text
  • MessageQueue.Enqueue takes the source; all three enqueue sites set it:
    composer (ChatMessageProcessor.processChatMessage), background job results
    and notes (Supervisor.enqueue maps the job kind to a source), and host UI
    over stdin (headless control.go)
  • Enqueue also sets QueuedAt (was always the zero time)
  • Status bar shows ☰ N queued in the theme accent color while the queue is
    non-empty; it disappears when the queue drains. New
    chat.status_bar.indicators.queue toggle (default true), documented in
    docs/configuration-reference.md
  • Queue box lines carry a source marker ([You], [A2A], [Shell],
    [Subagent], [Stdin]), oldest first, and every job result collapses to its
    one-line [<Kind> Completed/Failed: <label>] header (previously only A2A did)
  • New ☰ glyph in internal/presentation/tui/styles/icons/icons.go - plain
    Unicode, no new dependency or Nerd Font requirement
  • Unit tests for the status bar indicator and the queue box markers

…d messages

Add a highlighted queue segment to the input status bar (icon + count, theme accent color, only while the queue has entries), wired via SetMessageQueue and the new chat.status_bar.indicators.queue toggle. Tag every queue box line with its source marker ([You], [Stdin], [A2A], [Shell], [Subagent], [Job]) and collapse every job result to its one-line header, not just A2A.
@edenreich

Copy link
Copy Markdown
Contributor

@infer please finalise this PR and record a demo of the queue indicator.

  1. Finish the remaining todos: set the board item to QA, mark the PR ready for review, and check that the tree is clean. The code is done, so don't re-run the full check suite unless you change code.
  2. Record the demo. Build the PR binary with your Bash tool (go build -o /tmp/infer ./cmd/infer), then launch it in the demo terminal the same way tests/e2e/tmux_tui_test.go does: env INFER_GATEWAY_MOCK=true INFER_STORAGE_ENABLED=false /tmp/infer chat. Press Enter at "Select a Model". To keep the agent busy long enough to queue a message, copy tests/e2e/scenarios.yaml to /tmp/demo-scenarios.yaml, raise the delay_ms of a streaming scenario to a few hundred ms, and add INFER_GATEWAY_MOCK_SCENARIOS=/tmp/demo-scenarios.yaml. Send a message that matches that scenario, and send a second message while the reply is still streaming, so the ☰ queue indicator and the queue-box source markers are visible.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Todos

  • Set the project board item for PR 1355 to QA
  • Mark PR 1355 ready for review
  • Verify tree clean (no code changes needed)
  • Build PR binary to /tmp/infer
  • Prep /tmp/demo-scenarios.yaml with raised delay_ms
  • [~] Launch demo TUI in tmux and queue a second message mid-stream
  • Record the demo showing queue indicator + source markers
  • Final status check

Pull Request

#1355

⚠️ Infer Result: Stopped early

The agent stopped before finishing its plan, so some work may be incomplete. Its committed changes were pushed; the draft pull request is linked above - review what is missing before merging.

Unused imports broke the compile - removing them and rerunning.

Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 12m 54s

Tokens: 2,788,423 in · 52,449 out · 2,840,872 total (29 requests)

Tool calls: 63 total · 100% success rate

Artifacts

demo-20260927-030448.417.gif

Download all artifacts

Traces
Session: 1790477824-5c8f3b3c

session (in progress)                                                                             12m46s
├── chat ollama_cloud/glm-5.3-flash                                                                 5.2s
│   ╰── 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 /proxy/:provider/*path [inference-gateway, server]                             5.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.2s
├── execute_tool Memory call_tvklz7wd                                                              127µs
├── execute_tool Memory call_ivo0gmjn                                                               63µs
├── execute_tool Bash call_rtyimuqd                                                                  8ms
├── chat ollama_cloud/glm-5.3-flash                                                                 8.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.5s
├── execute_tool TodoWrite call_655nlm2f                                                            50µs
├── chat ollama_cloud/glm-5.3-flash                                                                 6.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.7s
├── execute_tool Bash call_36ub2bzo                                                                624ms
├── execute_tool Bash call_kjk3ht7s                                                                  1ms
├── execute_tool Read call_zqq4rgma                                                                309µs
├── execute_tool Read call_385063mb                                                                225µs
├── chat ollama_cloud/glm-5.3-flash                                                                19.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      19.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    19.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            19.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                19.4s
├── execute_tool Bash call_x0m1fqha                                                                922ms
├── execute_tool Grep call_vblb7hjy                                                                 1.4s
├── execute_tool Bash call_xp9z5dhd                                                                 23ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                23.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      23.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    23.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            23.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                23.3s
├── execute_tool Bash call_467lsq4a                                                                 1.5s
├── execute_tool Read call_kf3o8qhv                                                                236µs
├── execute_tool Bash call_xitlv2e6                                                                 13ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                1m15s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m15s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m15s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m15s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m15s
├── execute_tool Bash call_4inhajn2                                                                 2.6s
├── execute_tool Read call_nvuw6diz                                                                504µs
├── execute_tool Read call_r7cmjbhu                                                                265µs
├── execute_tool Grep call_cnysxrns                                                                268ms
├── chat ollama_cloud/glm-5.3-flash                                                                56.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      56.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    56.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            56.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                56.6s
├── execute_tool Bash call_13yvlgqo                                                                 1.8s
├── execute_tool Bash call_c2jj53ai                                                                 2.9s
├── execute_tool Read call_95xoaa80                                                                156µs
├── chat ollama_cloud/glm-5.3-flash                                                                27.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      27.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    27.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            27.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                27.8s
├── execute_tool Bash call_vl1kvxpj                                                                 1.8s
├── execute_tool Bash call_logtqw75                                                                 2.7s
├── execute_tool Write call_u2wb1a57                                                               812µs
├── chat ollama_cloud/glm-5.3-flash                                                                 4.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.8s
├── execute_tool Bash call_as3smgu2                                                                 64ms [error: tool_error]
├── execute_tool Bash call_axolofbl                                                                166ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1m1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1m1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1m1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1m1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1m1s
├── execute_tool Bash call_fuvmv35v                                                                 2.2s
├── execute_tool Bash call_hmbee6aj                                                                  5ms
├── execute_tool Bash call_z5a07vso                                                                  4ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1m3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1m3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1m3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1m3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1m3s
├── execute_tool Bash call_l1xd0qer                                                                869ms
├── execute_tool Bash call_7oa40a8t                                                                  3ms
├── execute_tool Write call_1q3c1hnz                                                               777µs
├── execute_tool Write call_vpbanzbq                                                               732µs
├── execute_tool Write call_je6rq97z                                                               808µs
├── chat ollama_cloud/glm-5.3-flash                                                                 4.0s
│   ╰── 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 TodoWrite call_8au74nna                                                           133µs
├── execute_tool Bash call_bu4dylax                                                                 2.5s
├── chat ollama_cloud/glm-5.3-flash                                                                15.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            15.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.2s
├── execute_tool Bash call_s71bqt9k                                                                  1ms
├── execute_tool RecordStart call_z0rjmimx                                                           2ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                35.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      35.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    35.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            35.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                35.2s
├── execute_tool Write call_yzze9ulc                                                               709µs
├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Bash call_9fbsnai3                                                                132ms
├── chat ollama_cloud/glm-5.3-flash                                                                19.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      19.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    19.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            19.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                19.7s
├── execute_tool RecordStart call_rzhd6b7d                                                         546µs [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 7.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.0s
├── execute_tool RecordStart call_ph35jpjm                                                          1.5s
├── chat ollama_cloud/glm-5.3-flash                                                                 3.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
├── execute_tool Write call_eyu4h8rl                                                               639µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
├── execute_tool Wait call_w1sfdu8x                                                                2m30s [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                28.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      28.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    28.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            28.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                28.0s
├── execute_tool Bash call_2zzibdv9                                                                  3ms [error: tool_error]
├── execute_tool Bash call_vhk0odbn                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                13.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            13.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.7s
├── execute_tool Read call_owloiwsb                                                                141µs [error: tool_error]
├── execute_tool Grep call_5y4858sp                                                                118ms
├── chat ollama_cloud/glm-5.3-flash                                                                14.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            14.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.9s
├── execute_tool Read call_sblpgy4q                                                                437µs
├── chat ollama_cloud/glm-5.3-flash                                                                15.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            15.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.3s
├── execute_tool Grep call_yor50837                                                                 27ms
├── execute_tool Grep call_7bon8by9                                                                319µs
├── execute_tool Grep call_26yjn4r5                                                                 26ms
├── chat ollama_cloud/glm-5.3-flash                                                                10.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      10.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    10.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            10.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                10.4s
├── execute_tool Read call_qv0y0pil                                                                237µs
├── execute_tool Grep call_hdgtvgb1                                                                350ms
├── chat ollama_cloud/glm-5.3-flash                                                                12.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            12.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.8s
├── execute_tool Read call_shoq0xid                                                                265µs
├── chat ollama_cloud/glm-5.3-flash                                                                42.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      42.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    42.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            42.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                42.3s
├── execute_tool Write call_s2kdbqc8                                                               726µ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.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_najja0do                                                                 51ms [error: tool_error]
├── 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 Edit call_tk49dnxt                                                                349µs
├── execute_tool Edit call_r1rc8v85                                                                313µs
╰── 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
Stats
Tool Calls

╭─────────────┬───────┬───────┬──────────╮
│ Tool        │ Calls │ Fail% │ Avg      │
├─────────────┼───────┼───────┼──────────┤
│ Bash        │ 25    │ 20%   │ 830ms    │
│ Read        │ 10    │ 10%   │ 273µs    │
│ Grep        │ 7     │ 0%    │ 317ms    │
│ Write       │ 7     │ 0%    │ 746µs    │
│ RecordStart │ 3     │ 67%   │ 502ms    │
│ Memory      │ 2     │ 0%    │ 111µs    │
│ TodoWrite   │ 2     │ 0%    │ 103µs    │
│ Edit        │ 2     │ 0%    │ 319µs    │
│ Wait        │ 1     │ 100%  │ 150000ms │
╰─────────────┴───────┴───────┴──────────╯

Token Usage

╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
│ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3-flash │ 2788423 │ 2284800 │ 52449      │ 2840872 │ -    │
╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯

Triggered by edenreich · Infer Action · OSS

@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review September 27, 2026 03:01
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner September 27, 2026 03:01
@edenreich

Copy link
Copy Markdown
Contributor

@infer the demo GIF from the last run doesn't show the feature, please record it again. The mock reply never streamed, so the queue indicator never appeared.

What went wrong last time, and how to avoid it:

  • Your demo launch set HOME=/tmp/demo-home. The demo shell inherits this job's memory settings, so the chat tried to sync the memory repo without credentials. git's Username for 'https://github.com' prompt then took over the TUI and the reply hung on "Reconnecting". Keep the real HOME and turn memory off: env INFER_MEMORY_ENABLED=false GIT_TERMINAL_PROMPT=0 INFER_GATEWAY_MOCK=true INFER_STORAGE_ENABLED=false INFER_GATEWAY_MOCK_SCENARIOS=/tmp/demo-scenarios.yaml /tmp/infer chat.
  • Never use pkill or killall. This request is part of your own command line, so pkill -f matched your own process and ended the run. Stop the TUI with tmux send-keys -t demo C-c.
  • Before calling RecordStart, send one test message and check with tmux capture-pane -p -t demo that the mock reply streams in. Then restart the TUI, start recording, and drive it with plain tmux send-keys calls: send the first message, then the second one while the first reply is still streaming. The recording stops on its own after 60 seconds, so start it only once everything is ready.

The PR is already ready and on the board, so this run only needs the demo.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Todos

  • Understand previous demo delivery + recording mechanics on this runner
  • Build PR binary to /tmp/infer
  • Create /tmp/demo-scenarios.yaml with slow streaming scenario
  • Launch TUI in tmux demo session, verify mock reply streams (dry run incl. queue check)
  • [~] Restart TUI, record demo: 2nd message queued while 1st streams
  • Verify recorded demo shows queue indicator + markers

Pull Request

#1355

❌ Infer Result: Failed

The GIF is in place and the tree is clean. Final sanity checks: the GIF itself opens correctly, no stray recordings left, then record the durable CI demo recipe.

Model: ollama_cloud/glm-5.3-flash · Exit Code: 1 · Duration: 16m 30s

Tokens: 7,956,207 in · 52,609 out · 8,008,816 total (48 requests)

Tool calls: 77 total · 100% success rate

Artifacts

demo-queue-indicator.gif

Download all artifacts

Traces
Session: 1790478897-b6c8e730

session (headless, failed)                                                                        16m22s [error: failed]
├── chat ollama_cloud/glm-5.3-flash                                                                24.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      24.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    24.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            24.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                24.1s
├── chat ollama_cloud/glm-5.3-flash                                                                 8.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.3s
├── execute_tool Memory call_3ae6c6sn                                                              155µs
├── execute_tool Memory call_9fe1ppem                                                              167µs
├── execute_tool Bash call_kaxior95                                                                  8ms
├── execute_tool Read call_das7npua                                                                270µs
├── chat ollama_cloud/glm-5.3-flash                                                                26.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      26.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    26.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            26.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                26.4s
├── execute_tool TodoWrite call_brrucypl                                                            61µs
├── execute_tool Read call_wmoz9ihi                                                                189µs
├── chat ollama_cloud/glm-5.3-flash                                                                10.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      10.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    10.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            10.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                10.1s
├── execute_tool Read call_alsglnet                                                                361µs
├── execute_tool Bash call_5mwuwxq8                                                                561ms
├── chat ollama_cloud/glm-5.3-flash                                                                29.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      29.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    29.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            29.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                29.5s
├── execute_tool Grep call_loh6qc2e                                                                 22ms
├── execute_tool Read call_p1hkz4lp                                                                233µs
├── execute_tool Tree call_a75ko8ah                                                                  1ms
├── chat ollama_cloud/glm-5.3-flash                                                                12.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            11.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.9s
├── execute_tool Read call_ktzfirh3                                                                139µs
├── execute_tool Bash call_3mseuqii                                                                356ms
├── chat ollama_cloud/glm-5.3-flash                                                                1m13s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m13s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m13s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m13s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m13s
├── execute_tool Grep call_fhi62fje                                                                372ms
├── execute_tool Grep call_4ppvzmx4                                                                  1ms
├── chat ollama_cloud/glm-5.3-flash                                                                 7.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.8s
├── execute_tool Grep call_t11wkt2k                                                                 11ms
├── execute_tool Read call_r7ojmnj7                                                                182µs
├── chat ollama_cloud/glm-5.3-flash                                                                 6.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.8s
├── execute_tool Grep call_26rfdfug                                                                384ms
├── chat ollama_cloud/glm-5.3-flash                                                                10.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      10.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    10.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            10.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                10.3s
├── execute_tool Grep call_i8yh163o                                                                 91ms
├── execute_tool Grep call_3zh6jmcx                                                                  3ms
├── chat ollama_cloud/glm-5.3-flash                                                                 4.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.1s
├── execute_tool Grep call_l07xu6ea                                                                 90ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
│   ╰── 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_igp6ybfb                                                                135ms
├── chat ollama_cloud/glm-5.3-flash                                                                 5.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.9s
├── execute_tool Grep call_pv3bb8mt                                                                  1ms
├── 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 Grep call_bnts7ro1                                                                111ms
├── execute_tool Grep call_nd9kly94                                                                479µs
├── chat ollama_cloud/glm-5.3-flash                                                                23.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      23.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    23.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            23.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                23.4s
├── execute_tool Read call_un0ma09a                                                                319µs
├── execute_tool Read call_usdidxke                                                                181µs
├── chat ollama_cloud/glm-5.3-flash                                                                48.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      48.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    48.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            48.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                48.4s
├── execute_tool Bash call_0lvbh1n5                                                                1m10s
├── execute_tool Bash call_c5ndyrs4                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 6.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.9s
├── execute_tool TodoWrite call_1cdlno2n                                                            67µs
├── execute_tool Write call_fz17308o                                                               715µs
├── chat ollama_cloud/glm-5.3-flash                                                                45.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      45.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    45.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            45.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                45.7s
├── execute_tool Write call_374r4u4g                                                               757µs
├── execute_tool Edit call_1imznkko                                                                426µs
├── chat ollama_cloud/glm-5.3-flash                                                                 6.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.1s
├── execute_tool Bash call_wn5cgwnw                                                                160ms
├── 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_9ztwfqkn                                                                 51ms
├── 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.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_88fz2moy                                                                 52ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
├── execute_tool Bash call_gzh5joj3                                                                 53ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.4s
├── execute_tool Bash call_enriuf7w                                                                25.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 4.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.4s
├── execute_tool Bash call_eiq3hx13                                                                  5ms
├── 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.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.5s
├── execute_tool Bash call_lnn2kdx9                                                                 56ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.7s
│   ╰── 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 Bash call_l4tvunmo                                                                 56ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
├── execute_tool Bash call_ttvjzhr5                                                                 53ms
├── 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_q1yvehq2                                                                 55ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Bash call_2veorgqc                                                                 55ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
│       ╰── 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 TodoWrite call_fwye071p                                                            66µs
├── execute_tool RecordStart call_yjbj79lk                                                           1ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                24.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      24.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    24.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            24.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                24.6s
├── execute_tool RecordStart call_2smsiad1                                                          1.5s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.0s
├── execute_tool Bash call_f5sblkcs                                                                 3.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
│   ╰── 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 /proxy/:provider/*path [inference-gateway, server]                             2.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
├── execute_tool RecordStop call_ibl8aot7                                                          499ms
├── chat ollama_cloud/glm-5.3-flash                                                                 5.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.9s
├── execute_tool Bash call_n6spgcjk                                                                128ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
├── execute_tool ImageDecode call_cx4ketke                                                          5.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.1s
│       ╰── POST 127.0.0.1:8080/proxy/anthropic/chat/completions [inference-gateway, client]        5.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.1s
│               ╰── POST api.anthropic.com/v1/chat/completions [inference-gateway, client]          5.1s
├── chat ollama_cloud/glm-5.3-flash                                                                1m28s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m28s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m28s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m28s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m28s
├── execute_tool Edit call_gtq5vmpp                                                                349µs
├── chat ollama_cloud/glm-5.3-flash                                                                14.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            13.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.9s
├── execute_tool Bash call_j3of0uk4                                                                150ms
├── chat ollama_cloud/glm-5.3-flash                                                                 7.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.6s
├── execute_tool RecordStart call_rp4gbdu1                                                          1.5s
├── chat ollama_cloud/glm-5.3-flash                                                                 8.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.4s
├── execute_tool Bash call_ylhrzr27                                                                25.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 8.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.3s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.3s
├── execute_tool RecordStop call_ziwyxkvp                                                          356ms
├── chat ollama_cloud/glm-5.3-flash                                                                40.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      40.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    40.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            40.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                40.8s
├── execute_tool Bash call_ms4z9sbt                                                                122ms
├── execute_tool Bash call_4d77rm68                                                                170ms
├── execute_tool Bash call_dzb7nh2z                                                                134ms
├── chat ollama_cloud/glm-5.3-flash                                                                20.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      20.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    20.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            20.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                20.6s
├── execute_tool ImageDecode call_c9ko7dbz                                                          4.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.8s
│       ╰── POST 127.0.0.1:8080/proxy/anthropic/chat/completions [inference-gateway, client]        4.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.8s
│               ╰── POST api.anthropic.com/v1/chat/completions [inference-gateway, client]          4.8s
├── execute_tool ImageDecode call_zhgeeabl                                                          5.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.1s
│       ╰── POST 127.0.0.1:8080/proxy/anthropic/chat/completions [inference-gateway, client]        5.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.1s
│               ╰── POST api.anthropic.com/v1/chat/completions [inference-gateway, client]          5.1s
├── execute_tool ImageDecode call_wn2fq6zn                                                          3.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.4s
│       ╰── POST 127.0.0.1:8080/proxy/anthropic/chat/completions [inference-gateway, client]        3.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.4s
│               ╰── POST api.anthropic.com/v1/chat/completions [inference-gateway, client]          3.4s
├── chat ollama_cloud/glm-5.3-flash                                                                38.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      38.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    38.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            38.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                38.4s
├── execute_tool Bash call_x3vuhbez                                                                225ms
├── execute_tool Bash call_a19dcn5s                                                                176ms
├── chat ollama_cloud/glm-5.3-flash                                                                15.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            15.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.4s
├── execute_tool ImageDecode call_cb4bqejd                                                          4.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.5s
│       ╰── POST 127.0.0.1:8080/proxy/anthropic/chat/completions [inference-gateway, client]        4.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.5s
│               ╰── POST api.anthropic.com/v1/chat/completions [inference-gateway, client]          4.5s
├── execute_tool ImageDecode call_io8uy0iz                                                          7.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.4s
│       ╰── POST 127.0.0.1:8080/proxy/anthropic/chat/completions [inference-gateway, client]        7.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.4s
│               ╰── POST api.anthropic.com/v1/chat/completions [inference-gateway, client]          7.4s
├── chat ollama_cloud/glm-5.3-flash                                                                41.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      41.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    41.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            41.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                41.6s
├── execute_tool MultiEdit call_b70lgi72                                                           398µs
├── chat ollama_cloud/glm-5.3-flash                                                                11.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            11.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.2s
├── execute_tool Bash call_ysn9ut2m                                                                 6.3s
├── chat ollama_cloud/glm-5.3-flash                                                                39.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      38.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    38.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            38.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                38.8s
├── execute_tool Bash call_o6exzaqj                                                                 51ms
├── execute_tool Bash call_onw00h4b                                                                  3ms
├── execute_tool Bash call_pnnny7h6                                                                  9ms
├── chat ollama_cloud/glm-5.3-flash                                                                38.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      38.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    38.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            38.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                38.1s
├── execute_tool ImageDecode call_2z0c12lh                                                          3.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.7s
│       ╰── POST 127.0.0.1:8080/proxy/anthropic/chat/completions [inference-gateway, client]        3.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.7s
│               ╰── POST api.anthropic.com/v1/chat/completions [inference-gateway, client]          3.7s
├── execute_tool Bash call_4jrgal83                                                                  3ms
╰── chat ollama_cloud/glm-5.3-flash                                                                599ms [error: _OTHER - API stream error:...]
    ╰── POST /v1/chat/completions [inference-gateway, server]                                      559ms [error: 400]
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    447ms [error: 400]
            ╰── POST /proxy/:provider/*path [inference-gateway, server]                            446ms
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                446ms [error: 400]
Stats
Tool Calls

╭─────────────┬───────┬───────┬────────╮
│ Tool        │ Calls │ Fail% │ Avg    │
├─────────────┼───────┼───────┼────────┤
│ Bash        │ 30    │ 0%    │ 4415ms │
│ Grep        │ 12    │ 0%    │ 102ms  │
│ Read        │ 8     │ 0%    │ 216µs  │
│ ImageDecode │ 7     │ 0%    │ 4886ms │
│ RecordStart │ 3     │ 33%   │ 1002ms │
│ TodoWrite   │ 3     │ 0%    │ 61µs   │
│ Memory      │ 2     │ 0%    │ 164µs  │
│ RecordStop  │ 2     │ 0%    │ 428ms  │
│ Write       │ 2     │ 0%    │ 733µs  │
│ Edit        │ 2     │ 0%    │ 382µs  │
│ Tree        │ 1     │ 0%    │ 1ms    │
│ MultiEdit   │ 1     │ 0%    │ 405µs  │
╰─────────────┴───────┴───────┴────────╯

Token Usage

╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬─────────╮
│ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost    │
├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼─────────┤
│ ollama_cloud/glm-5.3-flash │ 7956207 │ 7074368 │ 52609      │ 8008816 │ -       │
│ openai/gpt-4o              │ 40      │ 0       │ 20         │ 60      │ $0.0003 │
╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴─────────╯

Sessions

╭─────────────┬──────────┬──────────╮
│ Execution   │ Mode     │ Sessions │
├─────────────┼──────────┼──────────┤
│ headless    │ headless │ 1        │
│ interactive │ standard │ 1        │
╰─────────────┴──────────┴──────────╯
⚠️ 1 log(s)
  • agent:
    …5BAUKAP8ALL8DDwIBAAEAAAgEAP8FBAAh+QQFCgD/ACy/Aw8CAQABAAAIBAD/BQQAIfkEBQoA/wAsvwMPAgEAAQAACAQA/wUEACH5BAUKAP8ALL8DDwIBAAEAAAgEAP8FBAAh+QQFCgD/ACy/Aw8CAQABAAAIBAD/BQQAIfkEBQoA/wAsvwMPAgEAAQAACAQA/wUEACH5BAUKAP8ALL8DDwIBAAEAAAgEAP8FBAAh+QQFCgD/ACy/Aw8CAQABAAAIBAD/BQQAIfkEBQoA/wAsvwMPAgEAAQAACAQA/wUEACH5BAUKAP8ALL8DDwIBAAEAAAgEAP8FBAAh+QQFCgD/ACy/Aw8CAQABAAAIBAD/BQQAOw==\",\"mime_type\":\"image/gif\",\"filename\":\"/home/runner/.infer/artifacts/demo-queue-indicator.gif\",\"display_name\":\"demo-queue-indicator.gif\"}]}",
    "failed": false,
    "role": "tool",
    "timestamp": "2026-09-27T03:31:20.669702213Z",
    "tool_call_id": "call_2z0c12lh",
    "tool_execution": {
    "duration": "3.789481378s",
    "error": "",
    "rejected": false,
    "success": true,
    "tool_name": "ImageDecode"
    }
    }
    "content": "{\"tool_name\":\"Bash\",\"tool_call_id\":\"call_4jrgal83\",\"arguments\":{\"command\":\"ls /home/runner/.infer/tmp/recordings\"},\"success\":true,\"duration\":44451325,\"data\":{\"command\":\"ls /home/runner/.infer/tmp/recordings\",\"output\":\"\",\"exit_code\":0,\"duration\":\"3.609843ms\"}}",
    "failed": false,
    "role": "tool",
    "timestamp": "2026-09-27T03:31:20.677463343Z",
    "tool_call_id": "call_4jrgal83",
    "tool_execution": {
    "duration": "44.451325ms",
    "error": "",
    "rejected": false,
    "success": true,
    "tool_name": "Bash"
    }
    }
    "type": "agent_error",
    "message": "API stream error: {\"error\":{\"message\":\"invalid image input (ref: 986854ab-8894-447e-b708-def2ea27dbe4)\",\"type\":\"invalid_request_error\",\"param\":null,\"code\":null}}\n (status code: 400)"
    }
    "completion_tokens": 52609,
    "cost": {
    "currency": "USD",
    "input": 0,
    "output": 0,
    "total": 0
    },
    "message": "Session complete",
    "model": "ollama_cloud/glm-5.3-flash",
    "prompt_tokens": 7956207,
    "requests": 48,
    "total_tokens": 8008816,
    "type": "session_stats"
    }
    ERROR
    Agent error: API stream error: {"error":{"message":"invalid image input (ref: 986854ab-8894-447e-b708-
    def2ea27dbe4)","type":"invalid_request_error","param":null,"code":null}}
    (status code: 400).
    

Triggered by edenreich · Infer Action · OSS

@edenreich

Copy link
Copy Markdown
Contributor

@infer One last demo, I want to see at least 2 queued messages.

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Todos

  • Study e2e launch recipe (tmux_tui_test.go, scenarios.yaml, mock gateway delay semantics)
  • Build PR binary to /tmp/infer
  • Create /tmp/demo-scenarios.yaml with slow-streaming scenarios
  • Write driver program that queues 2 messages mid-stream
  • Dry run: launch TUI in demo pane, verify streaming + queueing
  • Record demo: RecordStart, driver take, RecordStop
  • Save memory + final report

Pull Request

#1355

✅ Infer Result: Success

Done. The final demo is recorded with two messages queued at the same time.

What the recording shows (40.2s, /home/runner/.infer/tmp/recordings/20260927-034413.354.mp4, auto-converted and embedded below):

  1. The PR binary (go build -o /tmp/infer ./cmd/infer) launched in the demo tmux pane with the mock gateway and a demo scenarios file under /tmp (chunk_size: 6, delay_ms: 400-500, so each reply streams ~9-19s).
  2. First message ("What does the queue indicator do?") is typed naturally and its reply starts streaming.
  3. While still streaming, a second message is typed and submitted - the queue box appears above the input with a [You] How does the queue box mark lines? line and the status bar shows ☰ 1 queued.
  4. A third message is submitted while the reply is still streaming - the queue box now shows two [You] lines and the status bar shows ☰ 2 queued in the accent color (held on screen ~7s, driver-verified at t+14.6s).
  5. When the first reply completes, the queue drains - both queued messages are batched into the conversation and the counter steps down to zero, with the final reply streaming to completion by t+27.2s.

Verification: I ran an unrecorded dry run first (all state markers matched via tmux capture-pane: reply streaming, 1 queued, 2 queued, drain), then restarted the TUI, started RecordStart, and drove the take with a small Go driver that types char-by-char and polls the pane - driver log: 1 queued t+11.0s, 2 queued t+14.6s, queue drained t+27.2s, TAKE PASS.

One behavior note visible in the video: draining is batched by design (CheckingQueueState.BatchDrainQueue pulls all queued messages into the conversation in one step), so the count steps 2→0 rather than 2→1→0; the two-queued moment itself is fully shown. No code changes were made - the working tree is clean and the PR branch is unchanged.

Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 10m 4s

Tokens: 3,295,420 in · 44,961 out · 3,340,381 total (42 requests)

Tool calls: 58 total · 100% success rate

Artifacts

demo-20260927-034413.354.gif

Download all artifacts

Traces
Session: 1790480146-9589061a

session (headless, success)                                                                        9m57s
├── chat ollama_cloud/glm-5.3-flash                                                                 8.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
├── execute_tool Memory call_pc2e44tc                                                               84µs
├── execute_tool Memory call_ly0jbueu                                                               50µs
├── chat ollama_cloud/glm-5.3-flash                                                                31.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      31.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    31.2s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            31.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                31.2s
├── execute_tool TodoWrite call_3q3oevlz                                                            52µs
├── execute_tool Bash call_2z83vflk                                                                  8ms
├── execute_tool Read call_r39mpbse                                                                162µs
├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
│   ╰── 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 Grep call_zs7elang                                                                486ms
├── execute_tool Grep call_1ockd3fs                                                                126ms
├── chat ollama_cloud/glm-5.3-flash                                                                 5.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.1s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.1s
├── execute_tool Grep call_anweguoq                                                                821µs
├── execute_tool Read call_gf7bkpvy                                                                226µs
├── chat ollama_cloud/glm-5.3-flash                                                                 5.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.7s
├── execute_tool Grep call_gty49qc4                                                                347ms
├── execute_tool Read call_5i1m8ci1                                                                138µs
├── chat ollama_cloud/glm-5.3-flash                                                                22.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      22.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    22.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            22.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                22.8s
├── execute_tool Bash call_t7xqixyy                                                                  5ms
├── execute_tool Grep call_a1g2yjor                                                                348ms
├── execute_tool Read call_6l0qpgvs                                                                163µs
├── chat ollama_cloud/glm-5.3-flash                                                                 5.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.5s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.5s
├── execute_tool Grep call_bbx8s7cm                                                                385µs
├── 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 Read call_wnm8863x                                                                139µs
├── 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 /proxy/:provider/*path [inference-gateway, server]                             2.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
├── execute_tool Grep call_icjvaoex                                                                281µ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 /proxy/:provider/*path [inference-gateway, server]                             1.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
├── execute_tool Grep call_rezu78g5                                                                  9ms
├── chat ollama_cloud/glm-5.3-flash                                                                1m21s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m21s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m21s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m21s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m21s
├── chat ollama_cloud/glm-5.3-flash                                                                45.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      45.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    45.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            45.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                45.6s
├── execute_tool TodoWrite call_5m9xxyrq                                                            61µs
├── execute_tool Read call_b4hn5e0n                                                                402µs
├── execute_tool Read call_rkn3vhi0                                                                201µs
├── chat ollama_cloud/glm-5.3-flash                                                                47.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      47.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    47.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            47.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                47.6s
├── execute_tool Bash call_uyty1lv7                                                                 1m8s
├── execute_tool Write call_hog676qp                                                                 5ms
├── execute_tool Write call_v3a1d80v                                                               775µs
├── chat ollama_cloud/glm-5.3-flash                                                                 5.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.7s
├── execute_tool TodoWrite call_1svfs4rs                                                            80µs
├── execute_tool Bash call_hcvfclgp                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
├── execute_tool Bash call_x0lexf0n                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Bash call_b04jjbo4                                                                 3.0s
├── 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_mydaq4l5                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
├── execute_tool Bash call_x1q4gful                                                                  5ms
├── 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.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
├── execute_tool Bash call_nhfiv7id                                                                 2.0s
├── 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_mvziewdq                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
├── execute_tool Bash call_x6qe6svu                                                                15.9s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.2s
│   ╰── 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 /proxy/:provider/*path [inference-gateway, server]                             7.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.1s
├── execute_tool Bash call_a7iud88w                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                10.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      10.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    10.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            10.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                10.4s
├── execute_tool Bash call_d6lh0bnv                                                                  5ms
├── 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_oernaxy3                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                1m11s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      1m11s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    1m11s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            1m11s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                1m11s
├── execute_tool Read call_a2pu7afu                                                                150µs
├── chat ollama_cloud/glm-5.3-flash                                                                16.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      16.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    16.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            16.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                16.7s
├── execute_tool Edit call_torrjd36                                                                461µs
├── execute_tool Bash call_hg8kpnxj                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
├── execute_tool Bash call_pwhpz92u                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
├── execute_tool Bash call_6ddn9tak                                                                 3.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
│   ╰── 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_op0hwdm7                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Bash call_d9xcjeia                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
├── execute_tool Bash call_u8ai8rr7                                                                 2.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.4s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
├── execute_tool Bash call_k5yy88d6                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
│       ╰── 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 TodoWrite call_z7glt9vv                                                            57µs
├── execute_tool RecordStart call_wkks1d9n                                                          1.5s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
│   ╰── 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_0356qm0o                                                                29.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 7.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.9s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.9s
├── execute_tool RecordStop call_9pbq9h7p                                                          364ms
├── 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.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.8s
├── execute_tool Bash call_bymu61gc                                                                  5ms
├── chat ollama_cloud/glm-5.3-flash                                                                19.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      19.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    19.0s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            19.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                19.0s
├── execute_tool TodoWrite call_4o90j5cm                                                            81µs
├── execute_tool Memory call_zhqn31ps                                                              142µs [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 /proxy/:provider/*path [inference-gateway, server]                             8.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.6s
├── execute_tool Memory call_j8jeazyi                                                              133µs [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 5.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.8s
│           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.8s
├── execute_tool Memory call_1jhxslts                                                               1.1s
├── 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_lza1yka3                                                            59µs
├── execute_tool Bash call_4s045dy1                                                                  8ms
╰── chat ollama_cloud/glm-5.3-flash                                                                 8.7s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.7s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.7s
            ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.7s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.7s
Stats
Tool Calls

╭─────────────┬───────┬───────┬────────╮
│ Tool        │ Calls │ Fail% │ Avg    │
├─────────────┼───────┼───────┼────────┤
│ Bash        │ 24    │ 0%    │ 5138ms │
│ Read        │ 8     │ 0%    │ 196µs  │
│ Grep        │ 8     │ 0%    │ 165ms  │
│ TodoWrite   │ 6     │ 0%    │ 61µs   │
│ Memory      │ 5     │ 40%   │ 225ms  │
│ Write       │ 2     │ 0%    │ 3ms    │
│ RecordStart │ 1     │ 0%    │ 1502ms │
│ RecordStop  │ 1     │ 0%    │ 364ms  │
│ Edit        │ 1     │ 0%    │ 453µs  │
╰─────────────┴───────┴───────┴────────╯

Token Usage

╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬─────────╮
│ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost    │
├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼─────────┤
│ ollama_cloud/glm-5.3-flash │ 3295420 │ 2714880 │ 44961      │ 3340381 │ -       │
│ openai/gpt-4o              │ 40      │ 0       │ 20         │ 60      │ $0.0003 │
╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴─────────╯

Sessions

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

Triggered by edenreich · Infer Action · OSS

@edenreich
edenreich merged commit ffcb235 into main Sep 27, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1347 branch September 27, 2026 03:47
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.213.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Sep 27, 2026
edenreich added a commit that referenced this pull request Sep 27, 2026
## Summary

`@infer /demo` on a PR (or `/demo` in chat) now has a procedure to
follow: a new built-in `demo` skill, seeded into `~/.infer/skills` by
`infer init` like `bug` and `tmux`. It records a short demo GIF of any
project - CLI, TUI or GUI app - so it works in every org repo that runs
infer-action with `record-demo`, desktop included.

It replaces the demo procedure hardcoded in infer-action's
`infer-action-record-demo` reminder (follow-up PR there shrinks it to a
pointer to this skill).

## Why this shape

Every rule comes from the 8 demo runs so far (#1355, #1348, #1359):

| Observed | Skill rule |
|---|---|
| Procedure arrived at turn 28, after 3 takes and a committed `.mp4`
(#1348) | "Record the demo" is the last todo, planned up front;
recording after the work is pushed |
| 4 GIFs in one comment - every probe take became a GIF (#1348, #1359) |
Rehearse with `capture-pane` / Screenshot, record one take, convert only
it to a fixed `~/.infer/artifacts/demo.gif` |
| Take capped at 60 s before the interesting frame - one model turn per
keystroke (#1359) | Whole take as one response of tool calls
(`CallOrder` keeps them in order) |
| Run died on `ImageDecode` of a GIF (API 400) (#1355, #1359) | Check a
take via one PNG frame pulled with ffmpeg |
| `pkill -f "infer chat"` matched the agent's own command line (#1355) |
Quit with the app's own keys; no `pkill -f` / `killall` |
| Own tmux sessions / xterms, not on the recorded display (#1348, #1359)
| CI: only the `demo` session; GUI apps start there with `DISPLAY=:99` |
| MP4 hard-linked into the repo and pushed (#1348) |
`~/.infer/artifacts` is the delivery channel; recordings never enter the
repo |
| Wrong conclusions saved to memory in a run without recording (#1359) |
No memories about demo mechanics - the skill is the source of truth |

## Changes

- `internal/skills/builtins/demo/SKILL.md` - the skill
- `internal/skills/builtins_test.go` - seeds and validates `demo`;
description must route `/demo`
- `docs/skills.md` - listed under built-in skills

## Verification

- `go test ./internal/skills` green; pre-commit hook (mod:tidy, fmt,
lint, markdownlint) passed on the commit
- End-to-end check is `@infer /demo` on #1363 once this ships and
infer-action/`.github` bump their CLI version

## Rollout

1. This PR, released (expected v0.215.0)
2. infer-action: reminder points at the skill, drops its own MP4->GIF
conversion, allows `ffmpeg`, bumps default CLI version
3. `inference-gateway/.github`: bump `cli-version` and the infer-action
tag

Docs: follow-up `[DOCS]` issue for `inference-gateway/docs` still to be
filed.
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

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] Show a queue indicator below the input and mark queued messages by source

1 participant