[PR #15682] llm: report runner status when Wait returns nil #77553

Open
opened 2026-05-05 10:13:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/15682
Author: @mverrilli
Created: 4/18/2026
Status: 🔄 Open

Base: mainHead: fix/issue-15143-runner-nil-error-format


📝 Commits (1)

  • b9d3056 llm: report runner status when Wait returns nil

📊 Changes

1 file changed (+8 additions, -1 deletions)

View changed files

📝 llm/server.go (+8 -1)

📄 Description

Noticed in #15143: on the runner-has-exited path, WaitUntilRunning wraps s.doneErr with %w. When cmd.Wait returns nil the reaper stores nil there, so users see %!w(<nil>) in place of any real diagnostic.

Fall back to status.LastErrMsg using the same pattern used elsewhere in this file when a runner has exited. The non-nil path is unchanged so errors.Is / errors.As still work.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/15682 **Author:** [@mverrilli](https://github.com/mverrilli) **Created:** 4/18/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/issue-15143-runner-nil-error-format` --- ### 📝 Commits (1) - [`b9d3056`](https://github.com/ollama/ollama/commit/b9d30561b6d573dd379d0dbcb3279d66eb0505b3) llm: report runner status when Wait returns nil ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `llm/server.go` (+8 -1) </details> ### 📄 Description Noticed in #15143: on the runner-has-exited path, `WaitUntilRunning` wraps `s.doneErr` with `%w`. When `cmd.Wait` returns nil the reaper stores nil there, so users see `%!w(<nil>)` in place of any real diagnostic. Fall back to `status.LastErrMsg` using the same pattern used elsewhere in this file when a runner has exited. The non-nil path is unchanged so `errors.Is` / `errors.As` still work. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 10:13:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#77553