Skip to content

fix(scheduler): finish the run without a window app on the computer - #1789

Merged
edenreich merged 1 commit into
mainfrom
fix/window-app-holds-run
Nov 9, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/window-app-holds-run

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

On a computer, a window app the agent launched with a detached Bash call kept the run open after the final answer, until the app exited or a2a.task.agent_mode_max_wait_seconds passed. A background shell whose process shows a window on the computer's display no longer holds the run. Every other background shell - a build, a server, a long script - holds it exactly as before.

Fixes #1785

Changes

  • internal/scheduler/domain - a WindowApps port (does this process show a window, itself or through one it started) and an optional JobSessionYielder job extension, next to JobIdleReporter.
  • internal/scheduler/jobs - the shell job yields the session while its process shows a window. Supervisor.HasPending copies the running session-holding jobs out and asks them outside its lock, because the answer is a D-Bus call.
  • internal/computer/infrastructure/accessibility - the GNOME Wayland implementation, on the shell Eval path the window listing already uses. Other platforms answer false.
  • internal/platform/process - StartedBy, the walk up a process's parent chain.
  • internal/container - wires WindowApps in only when computer_use.enabled is set.
  • Docs - "Window apps and the run" in docs/computer-use.md, and a line in the scheduler README.

The check is live. A shell whose window has not appeared yet keeps holding the run and is asked again each second, and one whose window closed while the process runs on holds the run again. An error asking the shell counts as no window, so the previous behaviour is the fallback.

Testing

  • task precommit:run and task test pass, with new tests for the supervisor, the shell job and the parent-chain walk.
  • The window query was run read-only against a live ghcr.io/inference-gateway/computer:0.252.0 pod and answered as expected.
  • Not verified end to end: a run with a window app open on a real computer still needs a manual check before merge.

GNOME Wayland only - on other desktops a window app still holds the run.

A background shell whose process shows a window on the computer's display no longer holds the run at the completion boundary. Every other background shell holds it as before.

Fixes #1785
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 9, 2026
@edenreich
edenreich marked this pull request as ready for review November 9, 2026 23:36
@edenreich
edenreich requested a review from a team as a code owner November 9, 2026 23:36
@edenreich

Copy link
Copy Markdown
Contributor Author

@infer /model ollama_cloud/glm-5.3 can you review this PR? is it ready for merge? use /ponytail:ponytail /ponytail:ponytail-review /go /go-concurrency /clean-architecture /domain-driven-design

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Model: ollama_cloud/glm-5.3 · Action: v0.59.5 · CLI: v0.246.0 · Gateway: v0.63.3 · View Job

Todos

  • Read the full PR diff and commit history
  • Trace the scheduler flow: supervisor, shell job, domain ports
  • Review the WindowApps implementations (GNOME Wayland + fallbacks)
  • Review process.StartedBy and container wiring
  • Check tests, READMEs, and run the checks
  • Write the final review verdict

Pull Request

#1789

✅ Infer Result: Success

The linux/other file pairing matches the package's established convention (implicit _linux.go build tag plus an explicit //go:build !linux stub, like the pre-existing atspi_linux.go/native_darwin.go pair). My review is complete - marking the last todos and writing up the findings.

What this change does: a background shell whose process shows a window on the computer's display no longer holds the run at its completion boundary, so the run finishes while the person keeps the app open. Every other background shell - a build, a server, a long script - holds the run exactly as before. The scheduler asks the display through a new WindowApps port in scheduler/domain, wired in only when computer_use.enabled is on, and every failure path answers "no window", which is the old behavior.

Is it ready for merge? The code is. I found no must-fix issue. The gates left are the ones the PR body already names: the three pending CI checks (postgres, test, e2e) and the manual end-to-end check on a live computer.

What I verified on this runner:

  • go build ./... passes, the tests for internal/scheduler/..., internal/platform/process/... and internal/computer/... pass, and go test -race over the scheduler and process packages passes. gofmt -l and markdownlint on the changed files are clean. golangci-lint was not run here (known runner/toolchain mismatch, pre-existing and unrelated to this PR).
  • Concurrency: HasPending now copies the running session holders out under the read lock and asks each job outside it, so the D-Bus call never happens under the lock. Each question is bounded by the 2-second windowCheckTimeout, the 1-second completion ticker drops ticks so calls cannot pile up, and YieldsSession only reads immutable fields (shell.Cmd.Process, proc.Pid). The race detector passes with the job running and HasPending called concurrently, which is the risky case.
  • The setup assumption holds: computer/entrypoint.sh starts the desktop and then exec infer, and the image pins XDG_CURRENT_DESKTOP=ubuntu:GNOME and WAYLAND_DISPLAY=wayland-0, so the check is live exactly where windows exist. The mock laptop demo (Xvfb) and any non-GNOME host self-guard to false, the safe fallback.
  • Platform pairing is right: window_apps_linux.go carries the implicit linux build constraint from its filename and window_apps_other.go the explicit //go:build !linux, matching the package's existing atspi_linux.go / native_darwin.go convention.
  • Architecture (dependency rule): WindowApps is a port declared by the consuming context in scheduler/domain, implemented in computer/infrastructure/accessibility without importing the scheduler (structural typing), wired at the container and nil when computer use is off. JobSessionYielder follows the existing JobIdleReporter optional-extension pattern, StartedBy sits in platform/process next to KillTreeOnCancel, and the names read as the domain speaks ("shows a window", "yields the session", "started by"). 7/7 on the dependency-rule diagnostic for this change.
  • Tests: the parent-chain walk gets a table test, a loop guard test and a real-process check; the shell job test covers the nil-computer, no-window and window cases plus the pid argument; the supervisor test covers the yield toggling while the job still reads as running in the task view. Both counterfeiter fakes are genuine generated output and the Taskfile carries their generation lines.
  • The PR body's claims match the code: "asked again each second" is the 1-second ticker in waitForBackgroundTasks, "an error counts as no window" is the return false on every error path, and "window closed while the process runs on holds the run again" follows from the live check.

Findings - nothing must fix, nothing should fix. Nice to have:

  1. HasPending can pay for every window shell even when a job that cannot yield already holds (internal/scheduler/jobs/supervisor.go:517-546, timeout at internal/scheduler/jobs/shell_job.go:27)

    • What this is: the run's completion check, polled once a second. Every running shell implements JobSessionYielder, so each one gets its D-Bus question before slices.ContainsFunc can answer from a different holder.
    • Problem: a running A2A task or busy subagent pane holds the session by definition and costs nothing to ask, but map iteration may ask N window shells first. With a healthy display each ask is milliseconds. With a hung display each ask blocks up to the 2-second timeout, so N shells can add up to N x 2 seconds to a poll that could have answered from the definite holder right away.
    • Fix: two passes - first return true on any running holder that is not idle and does not implement JobSessionYielder (a type assert, no D-Bus), only then ask the yielders. Around five lines.
    • If we skip it: a wedged display delays completion detection by bounded seconds. The run still ends at the same moment it would have. Rare and safe.
  2. A window app that daemonizes is not detected (internal/platform/process/process.go:78-97 used by internal/computer/infrastructure/accessibility/window_apps_linux.go:18-28)

    • What this is: detection walks the window owner's parent chain up to the shell's pid, so the app must be the shell's own child.
    • Problem: an app that double-forks (the launcher exits and the real app is reparented to init) breaks the chain, so it answers false and the run is held to agent_mode_max_wait_seconds - the exact old behavior this PR removes for ordinary apps.
    • Fix: none worth the code. One docs line in the "Window apps and the run" section of docs/computer-use.md: an app that daemonizes is not detected and still holds the run.
    • If we skip it: rare apps keep the old, safe behavior.

Verdict: Ship - after the manual end-to-end check on a live computer that the PR body already calls for, plus the three pending CI checks. Nothing in the code blocks merge.

Not checked: the live GNOME behavior. This runner has no display and both web tools were blocked this run, so I could not independently confirm that the shell's Eval answer for windowOwnersScript (a plain JS number array) decodes as JSON into []int. The evidence is good - the shipped windowsScript from 0.252.0 returns an array of objects through the same evalShell path and decodes it as JSON, and the PR author ran the new query read-only against a live 0.252.0 pod - but the pending manual check is the real gate. I also did not run a darwin or windows build from this linux runner or the full e2e suite. Risk to know: if the Eval answer did not decode, the failure is silent - every shell answers "no window" and runs fall back to the old hold behavior, so the bug from issue #1785 would simply persist until the manual check catches it.

Model: ollama_cloud/glm-5.3 · Action: v0.59.5 · CLI: v0.246.0 · Gateway: v0.63.3 · Exit Code: 0 · Duration: 8m 59s

Tokens: 2,567,232 in · 45,681 out · 2,612,913 total (35 requests)

Tool calls: 50 total · 100% success rate

Traces
Session: 1794267714-c909a623

session (headless, success)                                                                        8m51s
├── chat ollama_cloud/glm-5.3                                                                       6.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 Skill call_jv0qk7sj                                                               208µs
├── execute_tool Skill call_s2i2jhku                                                               201µs
├── execute_tool Skill call_9vct43ws                                                               129µs
├── chat ollama_cloud/glm-5.3                                                                       1.7s
│   ╰── 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 Skill call_qu48rso7                                                               187µs
├── execute_tool Skill call_9ujrhl3b                                                               176µs
├── execute_tool Skill call_axhchyxh                                                               127µs
├── chat ollama_cloud/glm-5.3                                                                       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 TodoWrite call_w4u013yr                                                           132µs
├── chat ollama_cloud/glm-5.3                                                                       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_ewctii5q                                                                  8ms
├── execute_tool Bash call_zs7sagih                                                                  4ms
├── chat ollama_cloud/glm-5.3                                                                       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 [inference-gateway, server]                                                    1.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
├── execute_tool Bash call_cvn88cv6                                                                  7ms
├── chat ollama_cloud/glm-5.3                                                                       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 [inference-gateway, server]                                                    1.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
├── execute_tool Bash call_0ezuqjj9                                                                  6ms
├── chat ollama_cloud/glm-5.3                                                                      25.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      25.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    25.3s
│           ╰── POST [inference-gateway, server]                                                   25.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                25.3s
├── execute_tool Read call_9urleemn                                                                393µs
├── chat ollama_cloud/glm-5.3                                                                      11.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.5s
│       ╰── 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 Grep call_jkr9rjxj                                                                837ms
├── execute_tool Read call_aig6fkc3                                                                539µs
├── chat ollama_cloud/glm-5.3                                                                       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 [inference-gateway, server]                                                    2.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
├── execute_tool Bash call_t2etd696                                                                  9ms
├── execute_tool Read call_m3jixuq4                                                                416µs
├── chat ollama_cloud/glm-5.3                                                                       3.2s
│   ╰── 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 TodoWrite call_gnl2w617                                                            67µs
├── chat ollama_cloud/glm-5.3                                                                       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 Grep call_aea2dksx                                                                551ms
├── chat ollama_cloud/glm-5.3                                                                       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 Grep call_7ohsx39e                                                                592ms
├── chat ollama_cloud/glm-5.3                                                                       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 [inference-gateway, server]                                                    1.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
├── execute_tool Grep call_l4w1ha7x                                                                607ms
├── chat ollama_cloud/glm-5.3                                                                       2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
├── execute_tool Bash call_27uj8l0u                                                                  8ms
├── chat ollama_cloud/glm-5.3                                                                       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_kg3ql1tn                                                                393µs
├── chat ollama_cloud/glm-5.3                                                                       8.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.0s
│           ╰── POST [inference-gateway, server]                                                    8.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.0s
├── execute_tool Read call_7mpikc5t                                                                482µs
├── execute_tool Read call_ds3lvjie                                                                385µs
├── chat ollama_cloud/glm-5.3                                                                      13.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.7s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       13.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.7s
├── execute_tool Read call_59da7y08                                                                334µs
├── chat ollama_cloud/glm-5.3                                                                       8.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.1s
│           ╰── POST [inference-gateway, server]                                                    8.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.1s
├── execute_tool Grep call_fofis14x                                                                 34ms
├── chat ollama_cloud/glm-5.3                                                                      15.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.7s
│           ╰── POST [inference-gateway, server]                                                   15.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.7s
├── execute_tool Read call_bwzxz4rn                                                                352µs
├── execute_tool Read call_o3ydyrr8                                                                327µs
├── chat ollama_cloud/glm-5.3                                                                       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 Read call_h41a24ru                                                                362µs
├── execute_tool Read call_lrobbpx6                                                                399µs
├── chat ollama_cloud/glm-5.3                                                                      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 /proxy/{provider}/{path...} [inference-gateway, server]                       12.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.3s
├── execute_tool Read call_06yuki7g                                                                578µs
├── execute_tool Read call_0u2byxos                                                                627µs
├── chat ollama_cloud/glm-5.3                                                                      15.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.5s
│           ╰── POST [inference-gateway, server]                                                   15.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.5s
├── execute_tool Grep call_2bltdvfh                                                                594ms
├── execute_tool Read call_7tw1xunn                                                                381µs
├── chat ollama_cloud/glm-5.3                                                                       7.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.3s
│           ╰── POST [inference-gateway, server]                                                    7.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.3s
├── execute_tool Bash call_r69uk7kz                                                                  1ms
├── chat ollama_cloud/glm-5.3                                                                       2.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
├── execute_tool Bash call_efzxt6wi                                                                 11ms
├── chat ollama_cloud/glm-5.3                                                                       2.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.8s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
├── execute_tool Read call_h7sf336y                                                                589µs
├── chat ollama_cloud/glm-5.3                                                                       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_tiblhm7s                                                                2m34s
├── chat ollama_cloud/glm-5.3                                                                      11.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.2s
│           ╰── POST [inference-gateway, server]                                                   11.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.2s
├── execute_tool Bash call_wd6a43wt                                                                  1ms
├── execute_tool Grep call_2crq1l4k                                                                  1ms
├── chat ollama_cloud/glm-5.3                                                                       3.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.7s
│           ╰── POST [inference-gateway, server]                                                    3.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.7s
├── execute_tool Read call_62sli8yh                                                                409µs
├── chat ollama_cloud/glm-5.3                                                                       2.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
├── execute_tool Wait call_yzi1qwvj                                                                59.5s
├── chat ollama_cloud/glm-5.3                                                                      51.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      51.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    51.0s
│           ╰── POST [inference-gateway, server]                                                   51.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                51.0s
├── execute_tool TodoWrite call_r3yra15w                                                            70µs
├── chat ollama_cloud/glm-5.3                                                                       3.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.5s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
├── execute_tool Bash call_8kbnz80u                                                                 79ms
├── execute_tool Bash call_1pwl8gf9                                                                240ms
├── chat ollama_cloud/glm-5.3                                                                      26.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      26.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    26.6s
│           ╰── POST [inference-gateway, server]                                                   26.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                26.6s
├── execute_tool Grep call_1f07x09s                                                                924ms
├── chat ollama_cloud/glm-5.3                                                                      31.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      31.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    31.2s
│           ╰── POST [inference-gateway, server]                                                   31.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                31.2s
├── execute_tool Bash call_qi49kfno                                                                  3ms
├── chat ollama_cloud/glm-5.3                                                                      12.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      12.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    12.4s
│           ╰── POST [inference-gateway, server]                                                   12.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                12.4s
├── execute_tool TodoWrite call_g8rz8csr                                                            80µs
╰── chat ollama_cloud/glm-5.3                                                                       6.6s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.5s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.5s
            ╰── POST [inference-gateway, server]                                                    6.5s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.5s
Stats
Tool Calls

╭───────────┬───────┬───────┬──────────╮
│ Tool      │ Calls │ Fail% │ Avg      │
├───────────┼───────┼───────┼──────────┤
│ Read      │ 16    │ 0%    │ 426µs    │
│ Bash      │ 12    │ 0%    │ 32ms     │
│ Grep      │ 8     │ 0%    │ 518ms    │
│ Skill     │ 6     │ 0%    │ 104µs    │
│ TodoWrite │ 4     │ 0%    │ 79µs     │
│ Wait      │ 2     │ 0%    │ 106751ms │
╰───────────┴───────┴───────┴──────────╯

Token Usage

╭──────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
│ Model                │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
├──────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3 │ 2567232 │ 2187136 │ 45681      │ 2612913 │ -    │
╰──────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯

Sessions

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

Triggered by edenreich · Infer Action · OSS

@edenreich edenreich moved this from Todo to QA in 2026 Nov 9, 2026
@edenreich
edenreich merged commit 34700bf into main Nov 9, 2026
1 check passed
@edenreich
edenreich deleted the fix/window-app-holds-run branch November 9, 2026 23:53
@edenreich edenreich moved this from QA to Done in 2026 Nov 9, 2026
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.253.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] A window app launched as a background shell on a computer holds the run open

1 participant