[PR #940] [MERGED] Don't quit ioloop on NUL character #10394

Closed
opened 2026-04-12 22:59:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/940
Author: @jmorganca
Created: 10/28/2023
Status: Merged
Merged: 10/28/2023
Merged by: @jmorganca

Base: mainHead: fix-ioloop


📝 Commits (3)

  • ec01cc1 dont quit ioloop on 0 rune
  • 8cf65a5 check for closed channel
  • e776bbd remove unused error on Close()

📊 Changes

4 files changed (+38 additions, -37 deletions)

View changed files

📝 readline/buffer.go (+13 -13)
📝 readline/readline.go (+20 -22)
📝 readline/term.go (+4 -2)
📝 readline/types.go (+1 -0)

📄 Description

The stdin read loop would stop on receiving a NUL character, triggered by ctrl+space or other key combos.


🔄 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/940 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 10/28/2023 **Status:** ✅ Merged **Merged:** 10/28/2023 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `fix-ioloop` --- ### 📝 Commits (3) - [`ec01cc1`](https://github.com/ollama/ollama/commit/ec01cc1082fda4368d8b7d2a22fa418c00a36a0a) dont quit ioloop on 0 rune - [`8cf65a5`](https://github.com/ollama/ollama/commit/8cf65a52fcbdfaa76407825786c2685e640bf63a) check for closed channel - [`e776bbd`](https://github.com/ollama/ollama/commit/e776bbd1378defbbd36653ba510a6ac8b256a44c) remove unused error on `Close()` ### 📊 Changes **4 files changed** (+38 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `readline/buffer.go` (+13 -13) 📝 `readline/readline.go` (+20 -22) 📝 `readline/term.go` (+4 -2) 📝 `readline/types.go` (+1 -0) </details> ### 📄 Description The `stdin` read loop would stop on receiving a `NUL` character, triggered by ctrl+space or other key combos. --- <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-12 22:59:39 -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#10394