[PR #14627] [MERGED] tui: fix signin on headless Linux systems #25295

Closed
opened 2026-04-19 18:08:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14627
Author: @BruceMacD
Created: 3/4/2026
Status: Merged
Merged: 3/18/2026
Merged by: @BruceMacD

Base: mainHead: brucemacd/signin-simplify


📝 Commits (1)

  • a7d87eb tui: fix signin on headless Linux systems

📊 Changes

3 files changed (+5 additions, -20 deletions)

View changed files

📝 cmd/launch/models.go (+4 -0)
📝 cmd/tui/signin.go (+1 -4)
📝 cmd/tui/signin_test.go (+0 -16)

📄 Description

Defensively handle environments without a display server to ensure signin remains usable on headless VMs and SSH sessions.

  • Skip calling xdg-open when neither DISPLAY nor WAYLAND_DISPLAY is set, preventing silent failures or unexpected browser handlers
  • Render the signin URL as plain text instead of wrapping it in OSC 8 hyperlink escape sequences, which can be garbled or hidden by terminals that don't support them

🔄 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/14627 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 3/4/2026 **Status:** ✅ Merged **Merged:** 3/18/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/signin-simplify` --- ### 📝 Commits (1) - [`a7d87eb`](https://github.com/ollama/ollama/commit/a7d87eb8281e63b08f6d8fbe682d9382875ffab6) tui: fix signin on headless Linux systems ### 📊 Changes **3 files changed** (+5 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `cmd/launch/models.go` (+4 -0) 📝 `cmd/tui/signin.go` (+1 -4) 📝 `cmd/tui/signin_test.go` (+0 -16) </details> ### 📄 Description Defensively handle environments without a display server to ensure signin remains usable on headless VMs and SSH sessions. - Skip calling xdg-open when neither DISPLAY nor WAYLAND_DISPLAY is set, preventing silent failures or unexpected browser handlers - Render the signin URL as plain text instead of wrapping it in OSC 8 hyperlink escape sequences, which can be garbled or hidden by terminals that don't support them --- <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-19 18:08:00 -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#25295