codex - 💡(How to fix) Fix OAuth login URLs from CLI auth commands can be hidden in collapsed tool output

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When Codex runs an interactive CLI authentication flow in the desktop harness, the command may print an OAuth URL inside collapsed shell/tool output. If the assistant does not manually copy that URL into the chat, the user has to expand the hidden command output, locate the login URL, and copy it themselves. This is a poor failure mode for non-technical users and makes authentication look blocked even though the CLI is waiting for user action.

Root Cause

This affects CLI auth flows launched from Codex Desktop, especially OAuth flows for tools such as Google Workspace CLIs, GitHub device/browser login, cloud CLIs, and similar integrations. It is particularly harmful because the assistant may continue reasoning or retry commands while the user action needed to unblock the flow is hidden.

RAW_BUFFERClick to expand / collapse

Summary

When Codex runs an interactive CLI authentication flow in the desktop harness, the command may print an OAuth URL inside collapsed shell/tool output. If the assistant does not manually copy that URL into the chat, the user has to expand the hidden command output, locate the login URL, and copy it themselves. This is a poor failure mode for non-technical users and makes authentication look blocked even though the CLI is waiting for user action.

What happened

A CLI auth command was started from Codex Desktop for a Google Workspace-style OAuth flow. The tool output contained:

  • Open this URL in your browser to authenticate:
  • A long https://accounts.google.com/o/oauth2/auth?... URL

But that output was hidden behind the expandable running-command UI. The assistant only said it was forcing explicit scopes, and did not surface the URL in the chat. The user had to manually expand the shell output, horizontally scroll/copy the URL, open it, and authenticate.

Expected behavior

Codex should make interactive authentication URLs obvious and actionable. Any of these would avoid the failure mode:

  • Detect common OAuth/auth URLs in tool output and surface them in the conversation while the command is running.
  • Render auth URLs from shell output as prominent clickable links outside the collapsed tool panel.
  • Add harness guidance or a system reminder that agents must immediately echo login URLs to the user when a CLI prints one.
  • Consider pausing or marking the command as requiring user action when an auth URL appears.

Actual behavior

The auth URL was available only inside collapsed shell output. A technical user could expand the command and retrieve it. A non-technical user likely would not know where to look, and the session would appear stuck or waste time.

Impact

This affects CLI auth flows launched from Codex Desktop, especially OAuth flows for tools such as Google Workspace CLIs, GitHub device/browser login, cloud CLIs, and similar integrations. It is particularly harmful because the assistant may continue reasoning or retry commands while the user action needed to unblock the flow is hidden.

Environment

  • Codex Desktop on Windows
  • Shell tool running PowerShell
  • Observed after a harness update on 2026-05-21

Privacy note

This report intentionally omits the original project name, workspace path, account details, document URL, and OAuth URL values.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Codex should make interactive authentication URLs obvious and actionable. Any of these would avoid the failure mode:

  • Detect common OAuth/auth URLs in tool output and surface them in the conversation while the command is running.
  • Render auth URLs from shell output as prominent clickable links outside the collapsed tool panel.
  • Add harness guidance or a system reminder that agents must immediately echo login URLs to the user when a CLI prints one.
  • Consider pausing or marking the command as requiring user action when an auth URL appears.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix OAuth login URLs from CLI auth commands can be hidden in collapsed tool output