[PR #14284] [CLOSED] fix(cmd): avoid panic in ps when digest is empty #40473

Closed
opened 2026-04-23 01:22:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14284
Author: @saurabhchopade
Created: 2/16/2026
Status: Closed

Base: mainHead: fix/13754-ps-empty-digest-panic


📝 Commits (1)

  • d78af48 fix(cmd): avoid panic in ps when digest is empty

📊 Changes

2 files changed (+66 additions, -1 deletions)

View changed files

📝 cmd/cmd.go (+6 -1)
📝 cmd/cmd_test.go (+60 -0)

📄 Description

Fixes #13754

Summary

  • avoid slicing digest with [:12] when digest is empty or shorter than 12 chars in ollama ps`n- add regression test covering empty digest in ListRunningHandler

🔄 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/14284 **Author:** [@saurabhchopade](https://github.com/saurabhchopade) **Created:** 2/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/13754-ps-empty-digest-panic` --- ### 📝 Commits (1) - [`d78af48`](https://github.com/ollama/ollama/commit/d78af481283395442c3b95abcc734e14d1a30c95) fix(cmd): avoid panic in ps when digest is empty ### 📊 Changes **2 files changed** (+66 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+6 -1) 📝 `cmd/cmd_test.go` (+60 -0) </details> ### 📄 Description Fixes #13754 ## Summary - avoid slicing digest with [:12] when digest is empty or shorter than 12 chars in ollama ps`n- add regression test covering empty digest in ListRunningHandler --- <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-04-23 01:22:04 -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#40473