Skip to content

[FEATURE] Make compaction a bit more loose behind a feature flag #1627

Description

@edenreich

Summary

Compaction today summarizes the whole tail of the session with an extra LLM call and starts a new session seeded with that summary (rollover). This is expensive and sometimes loses what mattered: the summarizer decides up front what to keep.

Add an opt-in alternative behind a feature flag: on compaction (manual /compact, the auto_at token trigger, or the idle trigger) do not summarize at all. Start the new session as today, but seed it with a single short user message that says the full context lives in the previous session and gives its id, so the model can pull only what it needs from there. The model chooses what is important instead of the summarizer choosing for it.

Current behavior

  • internal/conversation/session_rollover.go - performRollover calls optimizer.OptimizeMessages(messages, model, force), then StartNewConversation and re-adds the optimized messages. It keeps the session when a gated run returns no checkpoint (errNoCheckpoint).
  • internal/conversation/conversation_optimizer.go - smartOptimize keeps the first compact.keep_first_messages messages, sends the rest (truncated per message) to GenerateLLMSummary with a 60s timeout, and emits one user-role message opening with --- Context Summary --- (contextSummaryMarker). hasCheckpoint looks for that marker. The optional restore hook re-emits loaded skills after the checkpoint.
  • config/config.go - CompactConfig has enabled, auto_at, keep_first_messages, rollover_on_idle_minutes, summary_max_tokens (defaults true, 80, 2, 30, 1024).
  • The previous session stays on disk and is readable with infer conversations show <session-id> (cmd/conversations/conversations.go, supports --include-hidden and --format json), and the session group index already records the previous id in History (updateGroupIndex), so a pointer back to it is enough for the model to read it.

Proposed behavior

  • New flag in CompactConfig, e.g. compact.strategy: summary | pointer (default summary, current behavior unchanged), with the matching INFER_COMPACT_STRATEGY env var.
  • With pointer: skip GenerateLLMSummary. Keep the same keep_first_messages head and the restore hook output, then add one user message along the lines of: "The earlier part of this conversation is stored in session <previous-id>. Run infer conversations show <previous-id> if you need details from it." Open it with contextSummaryMarker so hasCheckpoint and the gate in performRollover keep working.
  • No LLM call, no backoff state, no summary_max_tokens involvement in this mode.

Acceptance Criteria

  • compact.strategy (or equivalent flag) is added to CompactConfig, defaults to the current summary behavior, and is documented in docs/configuration-reference.md under Compact Settings and the env var list.
  • With the flag set to the pointer mode, /compact, the auto_at trigger and the idle trigger each roll over into a new session without calling GenerateLLMSummary, and the new session contains the kept head, one pointer message naming the previous session id, and the restore hook messages.
  • The pointer message starts with contextSummaryMarker so hasCheckpoint still detects the rollover and the gated token-trigger path does not return errNoCheckpoint.
  • The previous session id in the pointer message is the one the session group History records, and infer conversations show <id> on it returns the full earlier conversation.
  • Unit tests in internal/conversation/session_rollover_test.go and conversation_optimizer_test.go cover the pointer mode (no client call, message shape, marker present).

Related

Activity

  1. added
    enhancement
    on Oct 28, 2026
  2. edenreich commented on Oct 28, 2026

    @edenreich
    ContributorAuthor

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

  3. inference-gateway-maintainer commented on Oct 28, 2026

    @inference-gateway-maintainer
    Contributor

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

    Todos

    • Create branch fix/issue-1627 and push
    • Add issue [FEATURE] Make compaction a bit more loose behind a feature flag #1627 to Roadmap board, set In progress
    • Read conversation context README and relevant files
    • Add compact.strategy to CompactConfig + env var + docs
    • Implement pointer mode in conversation optimizer
    • Wire pointer strategy into session rollover (container)
    • Add tests for pointer mode (optimizer + rollover)
    • Validate: task precommit:run + go test ./...
    • Open draft PR, set QA status on board
    • Check downstream docs repo for a [DOCS] ticket need
    • Final verification + mark PR ready

    Pull Request

    #1629

    ✅ Infer Result: Success

    All done. Issue #1627 is implemented and PR #1629 (ready for review) carries the change.

    What changed

    PR: #1629 (fix/issue-1627, commit 1bd60657, Conventional Commit feat(conversation) so semantic-release picks it up)

    • config/config.go - CompactConfig gains Strategy (summary | pointer, default summary) with constants, so INFER_COMPACT_STRATEGY works via the existing viper env mapping.
    • internal/conversation/conversation_optimizer.go - the checkpoint is now built through a strategy switch: summaryCheckpoint is the moved, unchanged LLM summary path; pointerCheckpoint skips GenerateLLMSummary entirely (no client call, no backoff, no summary_max_tokens) and seeds one user message opening with contextSummaryMarker that names the previous session id and says to pull details via infer conversations show <id>. The id is read from the repo at compaction time - inside performRollover that is before StartNewConversation repoints the repo, so it is exactly the id the session group History records. Unknown/empty strategy values fall back to summary with a warn. The restore (skill) hook runs in both strategies.
    • internal/container/container.go - passes the strategy through at the single wiring point.
    • docs/configuration-reference.md - compact.strategy documented under Compact Settings (plus a pointer-mode note in the checkpoint paragraph) and in the Compact Configuration env-var list.
    • Tests - conversation_optimizer_test.go: pointer produces marker + id + infer conversations show wording with 0 summarizer calls, head stays verbatim, restore hook output lands after the pointer, a missing session id keeps the full history, unknown strategy falls back to summary. session_rollover_test.go: the real optimizer in pointer mode rolls over with a nil client for all three triggers (manual force, auto_at gated force=false - so hasCheckpoint/errNoCheckpoint from [BUG] Session rollover bypasses compaction backoff and rolls over on a failed summary #1592 still holds - and idle), asserting the pointer names the id the group History records and the pointed-at session still holds the full conversation.

    Validation

    One risk to know: pointer-mode edge case unverified by tests - the agent loop's mid-turn auto-compaction (no rollover) also seeds a pointer, naming the current session id whose file keeps the full history, so it stays valid, but no test pins that exact path.

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.1 · CLI: v0.237.0 · Gateway: v0.60.1 · Exit Code: 0 · Duration: 13m 33s

    Tokens: 6,329,950 in · 48,213 out · 6,378,163 total (57 requests)

    Tool calls: 85 total · 100% success rate

    Traces
    Session: 1793205344-5c77e817
    
    session (headless, success)                                                                       13m26s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.6s
    │           ╰── POST [inference-gateway, server]                                                    5.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.6s
    ├── execute_tool Skill call_72bl0r45                                                               256µs
    ├── execute_tool Skill call_z1717q92                                                               235µs
    ├── execute_tool Skill call_lt8xhnzy                                                               101µs
    ├── execute_tool Skill call_38oilfw9                                                                72µs
    ├── execute_tool Skill call_ru03nype                                                                54µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
    ├── execute_tool TodoWrite call_lqke67mk                                                            85µs
    ├── execute_tool Bash call_pxgkkjrg                                                                  9ms
    ├── 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 [inference-gateway, server]                                                    2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_nasmnayp                                                                 1.8s
    ├── execute_tool Bash call_p02741wl                                                                347ms
    ├── 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 [inference-gateway, server]                                                    1.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
    ├── execute_tool Bash call_dicyg5xs                                                                 1.4s
    ├── 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_7o0z5xys                                                                 1.1s
    ├── execute_tool Read call_fvd165a2                                                                479µ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 Read call_3t2v6tci                                                                742µs
    ├── execute_tool Read call_vpcs48dd                                                                775µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── 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 Grep call_ez5aiz33                                                                789ms
    ├── execute_tool Grep call_a4sypoua                                                                  2ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
    ├── execute_tool Read call_liqce8rm                                                                526µs
    ├── execute_tool Read call_p5z3o9rh                                                                592µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                15.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.1s
    │           ╰── POST [inference-gateway, server]                                                   15.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.1s
    ├── execute_tool Grep call_kyx7yxwj                                                                975ms
    ├── 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 Grep call_nslyl1nw                                                                974ms
    ├── execute_tool Read call_gboh6bi7                                                                520µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.2s
    │           ╰── POST [inference-gateway, server]                                                    8.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.2s
    ├── execute_tool Grep call_nl1s3ijb                                                                765ms
    ├── execute_tool Read call_vkvq9vbs                                                                479µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
    │           ╰── POST [inference-gateway, server]                                                    2.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
    ├── execute_tool Grep call_oktskv8w                                                                781ms
    ├── execute_tool Grep call_hp0mr9jd                                                                835ms
    ├── 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_4sog6b3g                                                                671µs
    ├── execute_tool Read call_p581py13                                                                663µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.6s
    │           ╰── POST [inference-gateway, server]                                                    5.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.6s
    ├── execute_tool Grep call_9jxlsnpl                                                                 46ms
    ├── execute_tool Grep call_fso24yme                                                                 59ms
    ├── 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 Grep call_cpvt30nr                                                                421ms
    ├── 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 Bash call_ftuakxfy                                                                  8ms
    ├── 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 Grep call_42cozbgt                                                                  1ms
    ├── execute_tool Read call_nmtwguug                                                                490µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                11.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.5s
    │           ╰── POST [inference-gateway, server]                                                   11.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.5s
    ├── execute_tool Read call_aargihnf                                                                710µs
    ├── execute_tool Read call_vqgch15p                                                                645µs
    ├── 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 [inference-gateway, server]                                                    7.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.0s
    ├── execute_tool Grep call_ywtrgcea                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                16.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      16.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    16.5s
    │           ╰── POST [inference-gateway, server]                                                   16.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                16.5s
    ├── execute_tool Read call_s8r38qo1                                                                570µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.9s
    │   ╰── 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 [inference-gateway, server]                                                    6.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.8s
    ├── execute_tool Read call_0cdnygly                                                                462µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                23.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      23.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    23.9s
    │           ╰── POST [inference-gateway, server]                                                   23.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                23.9s
    ├── execute_tool Read call_oomc4g0g                                                                598µs
    ├── 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 Read call_kkww09j9                                                                710µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                12.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.3s
    │           ╰── POST [inference-gateway, server]                                                   12.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.3s
    ├── execute_tool Grep call_sxphywcn                                                                 28ms
    ├── execute_tool Grep call_suqn18p9                                                                 25ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── 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 Grep call_m0o9879u                                                                  1ms
    ├── 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 Read call_ly42r8zf                                                                651µs
    ├── execute_tool Read call_fjbhs0u1                                                                579µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                30.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      30.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    30.1s
    │           ╰── POST [inference-gateway, server]                                                   30.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                30.1s
    ├── execute_tool Grep call_vmagi7iy                                                                 28ms
    ├── execute_tool Read call_juj0irjg                                                                408µ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 [inference-gateway, server]                                                    2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Read call_jy3j6ftw                                                                512µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                52.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      52.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    52.1s
    │           ╰── POST [inference-gateway, server]                                                   52.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                52.1s
    ├── execute_tool Grep call_wintk8zl                                                                 17ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.3s
    │           ╰── POST [inference-gateway, server]                                                    5.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.3s
    ├── execute_tool TodoWrite call_ypkhv8dd                                                            65µs
    ├── execute_tool Grep call_xd98ikaq                                                                 32ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.5s
    │           ╰── POST [inference-gateway, server]                                                    4.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.5s
    ├── execute_tool MultiEdit call_0zbh5jc4                                                             1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.5s
    │   ╰── 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_qlwaf1ut                                                             1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.1s
    │   ╰── 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 Read call_sqzz4yao                                                                520µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.9s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
    ├── execute_tool Edit call_ydm3wcnc                                                                  1ms
    ├── 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 [inference-gateway, server]                                                    8.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.5s
    ├── execute_tool MultiEdit call_1amb1m4d                                                             1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                30.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      30.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    30.3s
    │           ╰── POST [inference-gateway, server]                                                   30.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                30.3s
    ├── execute_tool Grep call_711gq77c                                                                  4ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                31.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      31.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    31.2s
    │           ╰── POST [inference-gateway, server]                                                   31.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                31.2s
    ├── execute_tool MultiEdit call_hs96mtyd                                                             1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.1s
    │           ╰── POST [inference-gateway, server]                                                   13.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.1s
    ├── execute_tool Edit call_ghaslln5                                                                956µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
    │       ╰── 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_882g16mg                                                                1m45s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
    │   ╰── 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_cjyw2lzg                                                                10.9s [error: tool_error]
    ├── 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 [inference-gateway, server]                                                    8.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.4s
    ├── execute_tool Edit call_3uznno49                                                                  1ms
    ├── 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 [inference-gateway, server]                                                    1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Bash call_7ns55ca2                                                                 1.7s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.3s
    │           ╰── POST [inference-gateway, server]                                                    6.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.3s
    ├── execute_tool Bash call_e2f5339m                                                                12.5s
    ├── execute_tool Bash call_5p06vtwk                                                                 2.6s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.4s
    │           ╰── POST [inference-gateway, server]                                                    6.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.4s
    ├── execute_tool Bash call_naqmbqih                                                                 15ms
    ├── 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.2s
    │           ╰── POST [inference-gateway, server]                                                    2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool Bash call_y6fojrjn                                                                  1ms
    ├── execute_tool Bash call_sqdnb0kp                                                                  2ms
    ├── 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.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Wait call_zpci3rrw                                                                3m16s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
    │           ╰── POST [inference-gateway, server]                                                    3.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
    ├── execute_tool Bash call_4grvo5x3                                                                  9ms
    ├── 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 [inference-gateway, server]                                                    2.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
    ├── execute_tool Bash call_h57ch5cd                                                                 7.0s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.4s
    │           ╰── POST [inference-gateway, server]                                                    6.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.4s
    ├── execute_tool Bash call_u6w7ogfj                                                                 1.9s
    ├── execute_tool Write call_lx9e0cqx                                                                 1ms
    ├── 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 [inference-gateway, server]                                                    1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Bash call_4rtx41qi                                                                 2.1s
    ├── 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 [inference-gateway, server]                                                    9.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.8s
    ├── execute_tool Bash call_tzkhwc2s                                                                 1.2s
    ├── execute_tool Bash call_zbs1quw5                                                                263ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.9s
    │   ╰── 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 [inference-gateway, server]                                                    6.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.8s
    ├── execute_tool Write call_2y4ypmrj                                                                 1ms
    ├── 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.6s
    │           ╰── POST [inference-gateway, server]                                                    3.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
    ├── execute_tool Edit call_9idlzx4l                                                                693µs
    ├── 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 [inference-gateway, server]                                                    2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_omk5saji                                                                 1.3s
    ├── 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.8s
    │           ╰── POST [inference-gateway, server]                                                    4.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.8s
    ├── execute_tool Bash call_gnctvqhr                                                                  9ms
    ├── execute_tool Bash call_5og19mvq                                                                445ms
    ├── 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_r8n7tzou                                                                 1.1s
    ├── execute_tool TodoWrite call_mw1vf1t6                                                            80µs
    ╰── chat ollama_cloud/glm-5.3-flash                                                                10.3s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                      10.2s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    10.2s
                ╰── POST [inference-gateway, server]                                                   10.2s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                10.2s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬──────────╮
    │ Tool      │ Calls │ Fail% │ Avg      │
    ├───────────┼───────┼───────┼──────────┤
    │ Bash      │ 24    │ 4%    │ 6375ms   │
    │ Read      │ 21    │ 0%    │ 578µs    │
    │ Grep      │ 19    │ 0%    │ 305ms    │
    │ Skill     │ 5     │ 0%    │ 76µs     │
    │ Edit      │ 4     │ 0%    │ 1ms      │
    │ MultiEdit │ 4     │ 0%    │ 1ms      │
    │ TodoWrite │ 3     │ 0%    │ 72µs     │
    │ Write     │ 2     │ 0%    │ 1ms      │
    │ Wait      │ 1     │ 0%    │ 195501ms │
    ╰───────────┴───────┴───────┴──────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 6329950 │ 5452160 │ 48213      │ 6378163 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  4. moved this from Todo to In progress in 2026on Oct 28, 2026
  5. moved this from In progress to QA in 2026on Oct 28, 2026
  6. inference-gateway-releaser commented on Oct 28, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.239.0-rc.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  7. moved this from QA to Done in 2026on Oct 29, 2026
  8. added
    rc
    on Oct 31, 2026
  9. inference-gateway-releaser commented on Oct 31, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.239.0 🎉

    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

    enhancementrcreleased

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions