GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Print full PR URLs when OSC 8 hyperlinks are unsupported by skarim · Pull Request #479 · github/gh-stack

Conversation

@skarim

@skarim skarim commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator
  • Closes gh stack: print full URL to stdout when terminal doesn't support OSC8 hyperlinks #183

Prints out full PR URLs on terminals that don't support OSC 8 hyperlinks.

Supported terminals keep the existing hyperlink behavior with printing PR references. When detected terminal doesn't support, fall back to printing the full URL (#N (full URL)). This covers gh stack view --short and existing non-TUI status output. TUI and JSON output behavior remains unchanged.

Detection is conservative for tmux, screen, Apple Terminal, Konsole, non-TTY output, and unknown terminals.
A GH_STACK_HYPERLINKS env var is available to override the detection — 1 forces hyperlinks and 0 forces full URLs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@skarim
print full urls when terminal doesn't support osc 8 hyperlinks
19fb274
Copilot AI balanced review requested due to automatic review settings August 26, 2026 13:14
Copilot started reviewing on behalf of skarim August 26, 2026 13:14
View session
Copilot AI reviewed Aug 26, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds plain PR URL fallbacks when OSC 8 hyperlinks are unsupported.

Changes:

  • Detects terminal hyperlink support with an environment override.
  • Updates PR formatting and tests.
  • Documents hyperlink behavior.
Show a summary per file
File Description
README.md Documents fallback behavior.
internal/config/config.go Adds detection and URL formatting.
internal/config/hyperlink_test.go Tests detection and formatting.
cmd/view_test.go Tests short-view fallback.
docs/src/content/docs/reference/cli.md Documents CLI behavior and environment variable.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread internal/config/hyperlink_test.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@skarim skarim self-assigned this Aug 26, 2026
Lukeghenco
Lukeghenco approved these changes Aug 27, 2026
View reviewed changes
@skarim
skarim merged commit 2bd699a into main Aug 27, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@skarim
skarim deleted the skarim/print-pr-urls branch August 27, 2026 17:34
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Sep 8, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1058
Merged
1 task
chadxz added a commit to chadxz/prompts that referenced this pull request Sep 10, 2026
@chadxz
Show full PR URLs in wt-stack status
04c297a
Why?
====

Human status only shows a pull request number even though its URL is
already saved. Printing the URL makes PRs accessible in terminals,
redirected output, and logs without terminal hyperlink support.

Source: github/gh-stack#479

How?
====

Print each available URL below its branch, keeping old state without a
URL readable and leaving the JSON format unchanged. The module's mise
//apps/wt-stack:test and :lint passed. Status tests cover open and merged
PRs, missing URLs, and plain output without terminal escape sequences.

----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@Lukeghenco Lukeghenco Lukeghenco approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@skarim skarim

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

gh stack: print full URL to stdout when terminal doesn't support OSC8 hyperlinks

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@skarim @Lukeghenco
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.