Skip to content

[TASK] Refactor duplicated Mermaid chunk regex in .vitepress/config.ts into one constant #1236

Closed

Description

Summary

.vitepress/config.ts defines the list of lazy Mermaid chunk names twice, as two hand-copied regex alternations: once inside transformHtml (strips the <link rel="modulepreload"> tags from the built HTML) and once inside vite.build.modulePreload.resolveDependencies (filters the same chunks out of the JS preload list). Both copies carry the identical alternation [A-Za-z0-9]*Diagram-|diagram-|classDiagram|stateDiagram|wardley(?:Diagram)?-|dagre-|cose-bilkent-|cytoscape\.esm|katex|sankey|kanban-definition|timeline-definition|mindmap-definition|virtual_mermaid.

The two filters only work as a pair - a chunk name added to one and not the other silently reintroduces an eager preload - so every Mermaid upgrade that renames or adds a diagram chunk needs the same edit in two 300-character lines that sit almost 300 lines apart. Nothing in the file says the two lists are related.

Principle applied - clean-code: duplication (the same constant defined in several places) and magic values that hide intent. The fix is local to one file: name the list once next to the other top-level constants (HOSTNAME, SITEMAP_*) and build both regexes from it.

Acceptance Criteria

  • Before: the Mermaid chunk alternation is written out inline in both transformHtml and vite.build.modulePreload.resolveDependencies. After: one top-level constant in .vitepress/config.ts (for example LAZY_MERMAID_CHUNK_NAMES, holding the alternation source) is the only place the chunk names appear.
  • Before: transformHtml holds a 300-character regex literal. After: it uses a regex built from the shared constant (a second top-level constant such as LAZY_MERMAID_PRELOAD_LINK is fine), with the same <link ... rel="modulepreload" ... /assets/chunks/...> wrapper and the g flag.
  • Before: resolveDependencies holds its own copy of the alternation behind (?:^|\/). After: it tests against a regex built from the same shared constant.
  • bun run build output is unchanged: the built index.html contains no modulepreload link for the Mermaid, dagre, cytoscape or katex chunks, same as before.
  • Existing tests still pass (bun test, bun run format:check, bun run lint:md).

Activity

  1. edenreich commented on Nov 16, 2026

    @edenreich
    Contributor

    @infer can you work on this? use /ponytail:ponytail

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

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.9 · CLI: v0.262.0 · Gateway: v0.67.1 · View Job

    Todos

    Pull Request

    #1243

    ✅ Infer Result: Success

    Done. Issue #1236 is resolved in PR #1243 (ready for review, all CI checks green).

    What changed

    .vitepress/config.ts (the only file touched, +9/-10):

    • Added one top-level constant LAZY_MERMAID_CHUNK_NAMES next to HOSTNAME/SITEMAP_*, holding the chunk alternation. The chunk names now appear in exactly one place.
    • transformHtml uses LAZY_MERMAID_PRELOAD_LINK (a new RegExp built from the shared constant, g flag, same <link ... rel="modulepreload" ... /assets/chunks/...> wrapper), replacing the ~300-character inline literal.
    • resolveDependencies tests against LAZY_MERMAID_CHUNK_PATH ((?:^|/) wrapper) built from the same constant, replacing its second inline copy.

    The two filters can no longer drift apart on Mermaid upgrades - add the name once, both regexes follow.

    Verification

    • Regex parity is proven, not eyeballed: a script extracted the constructed patterns and compared them against the pre-change inline literals - byte-identical pattern source and flags (pathSourceMatch=true, linkSourceMatch=true).
    • bun run build exit 0; scanned all 42 built pages: zero modulepreload links for Mermaid, dagre, cytoscape or katex chunks, same as before.
    • Both old and new path filters agree on all 453 chunk-path tokens in the shipped JS/CSS assets.
    • bun run format:check, bun run lint:md, bun test (12/12) all pass; PR CI (Build, Lint, Docs drift, CodeQL, preview) green.

    Roadmap board: issue moved to QA (goes to Done at merge). No docs ticket needed (no docs ticket: internal-only refactor in the PR body) and no downstream repo ripple effects - it is a behavior-preserving config refactor.

    Skipped nothing functional; the one risk to know: I did not diff the full dist directory against a main build, I relied on the byte-identical-pattern proof plus the zero-lazy-preload scan across the freshly built output.

    Model: ollama_cloud/glm-5.3-flash · Action: v0.59.9 · CLI: v0.262.0 · Gateway: v0.67.1 · Exit Code: 0 · Duration: 5m 35s

    Tokens: 1,822,513 in · 29,012 out · 1,851,525 total (36 requests)

    Tool calls: 47 total · 100% success rate

    Traces
    Session: 1794842770-b837ddde
    
    session (headless, success)                                                                        5m28s
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Skill call_h6yrzxcc                                                               123µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.9s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.9s
    ├── execute_tool TodoWrite call_sqarhn62                                                            73µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
    ├── execute_tool Bash call_tzl3joir                                                                222ms
    ├── execute_tool Bash call_gn7gy5hj                                                                 23ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                958ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      950ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    946ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       946ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                946ms
    ├── execute_tool Bash call_9dp9nciu                                                                 1.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_arm0nedh                                                                 1.1s
    ├── execute_tool Bash call_g0p4af0u                                                                  7ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
    ├── execute_tool Bash call_yxui4v1n                                                                 1.3s
    ├── execute_tool Grep call_f2oxlcqg                                                                 8.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Read call_6543avjs                                                                710µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                39.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      39.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    39.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       39.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                39.1s
    ├── execute_tool Grep call_eyg7dsut                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                16.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      16.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    16.8s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       16.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                16.8s
    ├── execute_tool MultiEdit call_bodjt2q6                                                             1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.8s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        8.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.8s
    ├── execute_tool TodoWrite call_ermgvrqr                                                           106µs
    ├── execute_tool Read call_gjsgaszx                                                                561µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.9s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        7.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.9s
    ├── execute_tool Bash call_o8bcd2u8                                                                 5.0s
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       13.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.6s
    ├── execute_tool Bash call_w2ethbi7                                                                  3ms
    ├── execute_tool Bash call_a3khkgig                                                                 6.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_4ly43moz                                                                 3.3s
    ├── execute_tool Bash call_5fm1slac                                                                 94ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Wait call_qx2rter4                                                                23.5s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Grep call_eni6rodu                                                                  1ms [error: tool_error]
    ├── execute_tool Grep call_35mskk7i                                                                  1ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                19.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      19.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    19.5s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       19.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                19.5s
    ├── execute_tool Bash call_r8iyrqe0                                                                  5ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                15.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.5s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       15.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.5s
    ├── execute_tool Write call_a26g7528                                                                 1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.3s
    ├── execute_tool Bash call_93gqs3n2                                                                 34ms [error: tool_error]
    ├── 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.6s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       11.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.6s
    ├── execute_tool MultiEdit call_ovygblvi                                                           900µ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.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_9spczvle                                                                 35ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        5.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.3s
    ├── execute_tool Edit call_l8sd7jxl                                                                930µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                985ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      975ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    969ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       968ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                968ms
    ├── execute_tool Bash call_5bx8qjy8                                                                 36ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        6.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.1s
    ├── execute_tool MultiEdit call_pdcddlqj                                                           762µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        6.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.2s
    ├── execute_tool MultiEdit call_n6p05i0t                                                           898µs
    ├── 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.3s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_e5t7qz52                                                                 1.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        5.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.1s
    ├── execute_tool TodoWrite call_8orbz71q                                                            69µs
    ├── execute_tool Bash call_jyf8pqi1                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
    ├── execute_tool Bash call_7svvs53f                                                                  7ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.9s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.9s
    ├── execute_tool Bash call_ijw9pnet                                                                 2.5s
    ├── execute_tool Write call_vzhxi3vp                                                                 1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      992ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    984ms
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       984ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                984ms
    ├── execute_tool Bash call_hgfshi7g                                                                 2.1s
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
    ├── execute_tool Bash call_rqh1yz83                                                                 1.3s
    ├── execute_tool Edit call_xoxwpmry                                                                928µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
    ├── execute_tool Bash call_x867ipjd                                                                 2.0s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
    ├── execute_tool Wait call_5ihl4k49                                                                 1m3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
    ├── execute_tool Bash call_02pzm6iy                                                                 1.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
    │           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
    ├── execute_tool Bash call_o8no3dp2                                                                  5ms
    ├── execute_tool Bash call_vi8hbtkj                                                                  5ms
    ├── execute_tool Bash call_l6377itm                                                                711ms
    ├── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool TodoWrite call_gfdhsn86                                                            68µs
    ╰── 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 /proxy/{provider}/{path...} [inference-gateway, server]                        2.8s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬─────────╮
    │ Tool      │ Calls │ Fail% │ Avg     │
    ├───────────┼───────┼───────┼─────────┤
    │ Bash      │ 26    │ 12%   │ 1153ms  │
    │ TodoWrite │ 4     │ 0%    │ 64µs    │
    │ Grep      │ 4     │ 50%   │ 2049ms  │
    │ MultiEdit │ 4     │ 25%   │ 945µs   │
    │ Wait      │ 2     │ 0%    │ 43100ms │
    │ Edit      │ 2     │ 0%    │ 925µs   │
    │ Read      │ 2     │ 0%    │ 635µs   │
    │ Write     │ 2     │ 0%    │ 1ms     │
    │ Skill     │ 1     │ 0%    │ 125µs   │
    ╰───────────┴───────┴───────┴─────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 1822513 │ 1411200 │ 29012      │ 1851525 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    The release is available on GitHub release

    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

    refactorreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions