[PR #2037] [CLOSED] fix: pasting slash commands #57464

Closed
opened 2026-04-29 12:05:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2037
Author: @mxyng
Created: 1/18/2024
Status: Closed

Base: mainHead: mxyng/fix-cli-paste


📝 Commits (1)

  • 50b9aff fix pasting slash commands

📊 Changes

1 file changed (+34 additions, -27 deletions)

View changed files

📝 cmd/interactive.go (+34 -27)

📄 Description

there is a bug in paste where the pasted content is written directly to the prompt buffer instead of being processed. for most content, this is fine but slash commands are processed line-by-line.

aggregate status updates, e.g. "Set 'verbose' mode.", "Set system message.", to the end for aesthetics. the status message shouldn't display while in paste mode


🔄 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/2037 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 1/18/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `mxyng/fix-cli-paste` --- ### 📝 Commits (1) - [`50b9aff`](https://github.com/ollama/ollama/commit/50b9aff713f16dfaccd4c56071e9ef9f79451f24) fix pasting slash commands ### 📊 Changes **1 file changed** (+34 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+34 -27) </details> ### 📄 Description there is a bug in paste where the pasted content is written directly to the prompt buffer instead of being processed. for most content, this is fine but slash commands are processed line-by-line. aggregate status updates, e.g. "Set 'verbose' mode.", "Set system message.", to the end for aesthetics. the status message shouldn't display while in paste mode --- <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-29 12:05:41 -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#57464