Skip to content

Cmd+click doesn't work on long links (URL gets truncated) #14998

@austinywang

Description

@austinywang

Summary

When Codex outputs a long URL (e.g., a GitHub permalink with a long path, or a URL with query parameters), Cmd+clicking the link in the terminal doesn't open the full URL. The link appears to get truncated at some point, so the browser opens a broken/partial URL.

Repro

  1. Have Codex output a long URL (e.g., a GitHub file permalink with a line range, or any URL longer than ~200 characters)
  2. Cmd+click the link in the terminal
  3. The browser opens a truncated version of the URL, resulting in a 404 or wrong page

Expected behavior

Cmd+clicking any URL rendered by Codex should open the full, untruncated URL in the browser, regardless of length.

Actual behavior

The URL is truncated when Cmd+clicked. Short URLs work fine. The cutoff seems to happen at a certain character length.

Environment

  • Codex CLI (latest)
  • macOS, running inside a terminal emulator
  • Model: gpt-5.4

Notes

This may be related to how Codex renders URLs in the terminal output — if the URL is being wrapped across lines or if OSC 8 hyperlink sequences are being truncated. It could also be a terminal-side issue, but the same terminal handles long links from other CLI tools correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions