Skip to content

TUI markdown hyperlinks are not clickable in OSC 8-capable terminals on 0.136.0 #25934

@radislabus-star

Description

@radislabus-star

Summary

In Codex CLI 0.136.0, the release notes say that markdown links are preserved as terminal hyperlinks in the TUI, but links are not clickable in the interactive TUI on my machine even though the terminal supports OSC 8 hyperlinks.

This reproduces across multiple terminal emulators. A direct shell OSC 8 test works, but links rendered by Codex TUI are not clickable.

Environment

  • Codex CLI: codex-cli 0.136.0
  • Install: npm package @openai/codex@0.136.0
  • OS: Ubuntu Linux
  • Shell: bash
  • Terminals tested:
    • WezTerm (TERM=xterm-256color, COLORTERM=truecolor)
    • kitty-compatible terminal session (TERM=xterm-kitty, COLORTERM=truecolor)
    • User also reproduced in a third OSC-8-capable terminal

Expected Behavior

When the assistant outputs a markdown web link like:

[Codex release](https://github.com/openai/codex/releases/tag/rust-v0.136.0)

the visible label Codex release should be clickable in the Codex TUI.

Actual Behavior

The rendered link label is not clickable in the Codex TUI.

The same terminals support OSC 8 hyperlinks outside Codex. For example, this direct shell test produces clickable links:

printf '\033]8;;https://github.com/openai/codex/releases/tag/rust-v0.136.0\033\\Codex 0.136.0 release\033]8;;\033\\\n'

Reproduction

  1. Install / run Codex CLI 0.136.0.
  2. Start the interactive TUI in an OSC-8-capable terminal.
  3. Ask Codex:
Print a markdown link to https://github.com/openai/codex/releases/tag/rust-v0.136.0
  1. Try to click the rendered link label in the TUI.

Result: the label is not clickable.

Additional Note: local file links

Local file:// links also do not work. After checking the 0.136.0 source, this part appears to be by design because tui/src/terminal_hyperlinks.rs only allows http and https in web_destination().

That is understandable, but the web-link behavior above still appears broken because https links do not become clickable in the interactive TUI despite terminal OSC-8 support.

Source checked:

https://raw.githubusercontent.com/openai/codex/rust-v0.136.0/codex-rs/tui/src/terminal_hyperlinks.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues 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