Skip to content

[BUG] Pasting an image from the clipboard results in duplicate #1603

Closed

Description

@edenreich

Summary

Image

Pasting one image from the clipboard and sending the message shows the user message as [Image 1] [Image 1] even though only one image was attached and sent.

Steps to Reproduce

  1. On macOS take a screenshot to the clipboard (cmd+ctrl+shift+4 and select an area).
  2. In the chat input press cmd+v (or ctrl+v) once. The input shows [Image 1].
  3. Press Enter to send.
  4. The user message in the conversation reads [Image 1] [Image 1].

Expected Behavior

The sent message is rendered once as [Image 1] (or [Image 1] <text> when text was typed next to it), matching the single attachment.

Actual Behavior

The message is rendered as [Image 1] [Image 1]. Only one image is actually attached and sent, so this is a display duplicate, not a double paste.

Root cause

Two independent places produce the same [Image N] placeholder:

  • InputView.AddImageAttachment (internal/presentation/tui/components/input_view.go) inserts a literal [Image 1] token into the textarea text when the clipboard image is attached. That text is then sent verbatim as the text content part in ChatMessageProcessor.buildUserMessage (internal/presentation/tui/handlers/chat_message_processor.go), followed by the image content part.
  • formatting.ExtractTextFromContent (internal/platform/formatting/formatting.go) renders multimodal content by joining the text parts with and appending a generated [Image N] for every image part. For the message above it yields the text part [Image 1] plus the generated [Image 1].

So the second token is not a second paste: GetImageAttachments() holds one attachment, the key handler ran once, and the request carries one image part. The paste key path (handlePaste in internal/presentation/tui/keybinding/actions.go) is not involved beyond the single AddImageAttachment call.

Side effect of the same design: the literal [Image 1] text token is also sent to the model as prose and saved to the prompt history, and the conversation view, headless run encoder, queue box and judge all go through ExtractTextFromContent, so they all show the duplicate.

Reproduction (unit test, fails on main)

func TestRepro1603_PastedImageRendersTwice(t *testing.T) {
	textPart, _ := sdk.NewTextContentPart("[Image 1]")
	imagePart, _ := sdk.NewImageContentPart("data:image/png;base64,AAAA", nil)
	content := sdk.NewMessageContent([]sdk.ContentPart{textPart, imagePart})

	got := formatting.ExtractTextFromContent(content, nil)
	if got != "[Image 1]" {
		t.Fatalf("expected one placeholder, got %q", got)
	}
}
--- FAIL: TestRepro1603_PastedImageRendersTwice (0.00s)
    repro_issue_1603_test.go:19: expected one placeholder, got "[Image 1] [Image 1]"

Proposed fix

Make one of the two sources own the placeholder. The smallest change is in ExtractTextFromContent: when a text part already contains the [Image N] token for image part N, do not append the generated one. That fixes every renderer at once and keeps the in-input token (which is what tells the user where the image sits in the text). Alternatively strip the [Image N] tokens from the text part in buildUserMessage before sending, but then an image-only message has an empty text part and renders with a leading space, so that path needs a trim too.

Either way add the test above (adjusted to the chosen behaviour) next to TestInputView_AddImageAttachment in input_view_test.go and the ExtractTextFromContent tests in formatting_extra_test.go.

Activity

  1. added
    bug
    on Oct 26, 2026
  2. added theissue type on Oct 26, 2026
  3. inference-gateway-maintainer commented on Oct 26, 2026

    @inference-gateway-maintainer
    Contributor

    Reproduced and refined the description above.

    It is not a double paste: one key press, one attachment, one image part in the request. The duplicate comes from two places both emitting the [Image N] placeholder: InputView.AddImageAttachment inserts a literal [Image 1] into the input text, and formatting.ExtractTextFromContent appends a generated [Image 1] for the image part when rendering the sent message. A failing unit test against ExtractTextFromContent is in the body, along with the suggested fix (skip the generated placeholder when the text part already carries the token).

  4. edenreich commented on Oct 26, 2026

    @edenreich
    ContributorAuthor

    @infer can you fix this? use /ponytail:ponytail /go

  5. inference-gateway-maintainer commented on Oct 26, 2026

    @inference-gateway-maintainer
    Contributor

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.0 · CLI: v0.235.0 · Gateway: v0.60.1 · View Job

    Todos

    • Add issue to Roadmap board, Status = In progress
    • Create and push branch fix/issue-1603
    • Read the affected files (formatting, input_view, chat_message_processor)
    • Fix ExtractTextFromContent to not duplicate [Image N] tokens
    • Add regression tests (formatting + input_view area)
    • Validate: fmt, vet, lint, tests; then commit and push
    • Open draft PR, set board Status = QA
    • Wait for full task test suite; mark PR ready when green

    Pull Request

    #1604

    ✅ Infer Result: Success

    All done. Since my last tree check nothing in the repo changed (only PR/issue metadata), and earlier git status -sb showed a clean, synced branch. Work summary:

    Fixed: pasted image renders as duplicate [Image 1] [Image 1]

    PR: #1604 (ready for review, branch fix/issue-1603, resolves #1603)

    Root cause: Two independent sources produced the placeholder for the same image - the chat paste inserts a literal [Image N] token into the user's input text (InputView.AddImageAttachment), which is sent verbatim as the text content part, and formatting.ExtractTextFromContent appended its own generated [Image N] for the image part. Every renderer (conversation view, headless run encoder, queue box, judge) goes through the extractor, so all showed the duplicate.

    Fix (one place, all renderers): ExtractTextFromContent in internal/platform/formatting/formatting.go now skips the generated placeholder when the accumulated text already carries that exact [Image N] token. This is the option the issue proposed as smallest and most complete: the in-input token (which tells the user where the image sits in the text) stays, image-only and token-plus-prose forms still render correctly, and multi-image messages keep unique numbering ([Image 1] in text + two image parts still yields ​[Image 1] [Image 2]).

    Tests:

    • formatting_extra_test.go: three new table cases for TestExtractTextFromContent (repro renders once, token beside prose stays as typed, one token suppresses only its own image).
    • input_view_test.go: TestInputView_AddImageAttachmentRendersOnce reproduces the user flow end to end (one paste, message built the way buildUserMessage builds it, single render) - it fails on main and passes with the fix.

    Validation: full task test suite, task vet, and task precommit:run (mod tidy, mocks, fmt, lint:imports, golangci-lint 0 issues, markdownlint) all pass; branch is pushed and synced.

    Board/docs: issue added to Roadmap 2026 (In progress, then QA), and a best-effort [DOCS] tracking issue filed as inference-gateway/docs#1029 since this is a user-facing rendering change no docs page currently describes (checked configuration-reference, directory-structure and shortcuts-guide).

    I did not rerun mock-gateway TUI e2e scenarios or verify against a live model; the dedupe is a whole-string token check, so a user typing the literal text [Image 1] alongside a real paste now gets one placeholder where the extractor path is used (the in-input display is unaffected).

    ponytail: 6-line diff + 2 tests, everything else left alone - the remaining risk is the literal-token heuristic above.

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.0 · CLI: v0.235.0 · Gateway: v0.60.1 · Exit Code: 0 · Duration: 11m 34s

    Tokens: 2,970,521 in · 21,055 out · 2,991,576 total (49 requests)

    Tool calls: 53 total · 100% success rate

    Traces
    Session: 1793049285-f484dc34
    
    session (headless, success)                                                                       11m26s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.4s
    │           ╰── POST [inference-gateway, server]                                                    3.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.4s
    ├── execute_tool Skill call_oa0rsa8f                                                               110µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST [inference-gateway, server]                                                    1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Skill call_jde5h9bf                                                               125µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.4s
    │           ╰── POST [inference-gateway, server]                                                    3.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.4s
    ├── execute_tool TodoWrite call_spht8r1k                                                            67µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST [inference-gateway, server]                                                    1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_xshhva06                                                                379ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
    ├── execute_tool Bash call_ujbwx8gv                                                                 1.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
    │           ╰── POST [inference-gateway, server]                                                    1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Bash call_i5b8bcuv                                                                 1.1s
    ├── 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 [inference-gateway, server]                                                    2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool TodoWrite call_rk04tuvs                                                            77µs
    ├── 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.2s
    │           ╰── POST [inference-gateway, server]                                                    1.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
    ├── execute_tool Bash call_dnezb8f2                                                                 10ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
    │           ╰── POST [inference-gateway, server]                                                    1.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
    ├── execute_tool Bash call_2agd1vmw                                                                 1.6s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
    │           ╰── POST [inference-gateway, server]                                                    2.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
    ├── execute_tool Read call_mcja0jud                                                                605µs
    ├── execute_tool Read call_hu19wtrt                                                                639µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                27.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      27.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    27.4s
    │           ╰── POST [inference-gateway, server]                                                   27.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                27.4s
    ├── execute_tool Grep call_hlgtvqp8                                                                  3ms
    ├── execute_tool Grep call_c3gu8o5h                                                                893ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
    │           ╰── POST [inference-gateway, server]                                                    2.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
    ├── execute_tool Read call_bt93rati                                                                846µs
    ├── execute_tool Read call_c2pspg67                                                                749µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                17.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      17.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    17.5s
    │           ╰── POST [inference-gateway, server]                                                   17.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                17.5s
    ├── execute_tool Grep call_2r05x80n                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.9s
    │           ╰── POST [inference-gateway, server]                                                    2.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
    ├── execute_tool Grep call_p9f8w48c                                                                 37ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                17.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      17.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    17.4s
    │           ╰── POST [inference-gateway, server]                                                   17.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                17.4s
    ├── execute_tool Read call_k20yvwes                                                                529µs
    ├── execute_tool Read call_1s5voffw                                                                599µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
    │           ╰── POST [inference-gateway, server]                                                    4.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
    ├── execute_tool TodoWrite call_ix4uj5az                                                            74µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
    │           ╰── POST [inference-gateway, server]                                                    3.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
    ├── execute_tool MultiEdit call_2xvyemrk                                                           928µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                17.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      17.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    17.8s
    │           ╰── POST [inference-gateway, server]                                                   17.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                17.8s
    ├── execute_tool MultiEdit call_jmg5g1nh                                                           919µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.4s
    │           ╰── POST [inference-gateway, server]                                                   13.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.4s
    ├── execute_tool MultiEdit call_fgilwl8z                                                             2ms
    ├── 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.9s
    │           ╰── POST [inference-gateway, server]                                                    1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Bash call_lam4hkth                                                                18.7s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST [inference-gateway, server]                                                    1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Bash call_tyq0nodj                                                                46.6s
    ├── 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 [inference-gateway, server]                                                    2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Memory call_gcikf089                                                              170µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST [inference-gateway, server]                                                    1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Bash call_8jllhygz                                                                 2.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.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_qt9lu40r                                                                 11ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
    │           ╰── POST [inference-gateway, server]                                                    3.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.1s
    ├── execute_tool Bash call_c9ar59ui                                                                 2m0s [error: tool_error]
    ├── 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 [inference-gateway, server]                                                    2.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
    ├── execute_tool Bash call_npzpk2ao                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
    │           ╰── POST [inference-gateway, server]                                                    2.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
    ├── execute_tool Wait call_aftegp8f                                                                 2m3s
    ├── 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 [inference-gateway, server]                                                    2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.8s
    │           ╰── POST [inference-gateway, server]                                                    3.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.8s
    ├── execute_tool Bash call_e6g7w7fx                                                                 10ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.6s
    │           ╰── POST [inference-gateway, server]                                                    4.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.6s
    ├── execute_tool Bash call_oywvu2u8                                                                 7.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
    │           ╰── POST [inference-gateway, server]                                                    2.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
    ├── execute_tool Bash call_hvjjemh8                                                                 1.7s
    ├── 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 [inference-gateway, server]                                                    6.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.1s
    ├── execute_tool Write call_dbnetfom                                                                 1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
    │           ╰── POST [inference-gateway, server]                                                    2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool Bash call_pp8z3yt6                                                                 2.1s
    ├── execute_tool Bash call_93ohwk97                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
    │           ╰── POST [inference-gateway, server]                                                    2.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
    ├── execute_tool TodoWrite call_vpn4z72l                                                           128µ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 Bash call_t0njzm71                                                                 1.4s
    ├── 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.0s
    │           ╰── POST [inference-gateway, server]                                                    2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Wait call_dhu0h1ac                                                                1m25s
    ├── 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 [inference-gateway, server]                                                    5.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.5s
    ├── execute_tool Bash call_fktrhzf7                                                                20.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST [inference-gateway, server]                                                    1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Bash call_qzvwui6f                                                                 10ms
    ├── 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 [inference-gateway, server]                                                    3.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
    ├── execute_tool Grep call_twa6soxd                                                                 63ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.9s
    │           ╰── POST [inference-gateway, server]                                                    4.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.9s
    ├── execute_tool Grep call_1rrck89c                                                                 62ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.4s
    │           ╰── POST [inference-gateway, server]                                                    5.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.4s
    ├── execute_tool Bash call_yjwrogug                                                                 1.6s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 9.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.8s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        9.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.8s
    ├── execute_tool Write call_w0xo7ctj                                                                 1ms
    ├── 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 [inference-gateway, server]                                                    2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Bash call_9cmn4nfe                                                                 1.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.8s
    │           ╰── POST [inference-gateway, server]                                                    2.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
    ├── execute_tool Edit call_2vh0pnb9                                                                839µ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 [inference-gateway, server]                                                    2.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
    ├── execute_tool Bash call_k4a4vk9k                                                                 2.1s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.8s
    │           ╰── POST [inference-gateway, server]                                                    3.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.8s
    ├── execute_tool Bash call_evwdetv7                                                                 1.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 9.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.4s
    │           ╰── POST [inference-gateway, server]                                                    9.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.4s
    ├── execute_tool Bash call_8vpqbqxk                                                                490ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
    │           ╰── POST [inference-gateway, server]                                                    4.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
    ├── execute_tool TodoWrite call_3z8ok25v                                                            92µs
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 6.6s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.6s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.6s
                ╰── POST [inference-gateway, server]                                                    6.6s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.6s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬──────────╮
    │ Tool      │ Calls │ Fail% │ Avg      │
    ├───────────┼───────┼───────┼──────────┤
    │ Bash      │ 24    │ 4%    │ 9723ms   │
    │ Read      │ 6     │ 0%    │ 620µs    │
    │ Grep      │ 6     │ 0%    │ 177ms    │
    │ TodoWrite │ 5     │ 0%    │ 96µs     │
    │ MultiEdit │ 3     │ 0%    │ 1ms      │
    │ Wait      │ 2     │ 0%    │ 103751ms │
    │ Write     │ 2     │ 0%    │ 1ms      │
    │ Skill     │ 2     │ 0%    │ 126µs    │
    │ Memory    │ 1     │ 0%    │ 162µs    │
    │ Edit      │ 1     │ 0%    │ 832µs    │
    ╰───────────┴───────┴───────┴──────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 2970521 │ 2329600 │ 21055      │ 2991576 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  6. moved this from Todo to In progress in 2026on Oct 26, 2026
  7. moved this from In progress to QA in 2026on Oct 26, 2026
  8. added a commit that references this issue on Oct 26, 2026
    ad0de80
  9. moved this from QA to Done in 2026on Oct 26, 2026
  10. inference-gateway-releaser commented on Oct 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.236.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions