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
- Have Codex output a long URL (e.g., a GitHub file permalink with a line range, or any URL longer than ~200 characters)
- Cmd+click the link in the terminal
- 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.
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
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
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.