Skip to content

Handle quoted authentication URLs - #179

Merged
mldangelo-oai merged 1 commit into
openai:mainfrom
dipeshbabu:agent/handle-quoted-auth-urls
Jul 31, 2026
Merged

Handle quoted authentication URLs#179
mldangelo-oai merged 1 commit into
openai:mainfrom
dipeshbabu:agent/handle-quoted-auth-urls

Conversation

@dipeshbabu

Copy link
Copy Markdown
Contributor

Summary

  • stop authentication URL discovery at single- and double-quote delimiters
  • cover quoted, ANSI-decorated device-login output with a regression test

Root cause

The terminal URL matcher allowed quote characters inside a matched token. When Codex printed a verification URL in quotes, the closing quote was retained and became part of the returned URL path.

Impact

Interactive login callers now receive the exact verification URL when terminal output wraps it in quotes.

Overlap check

Searched open issues and pull requests for quoted authentication URLs, device-auth URL quoting, and the affected helper name; no overlapping work was found.

Validation

  • pnpm dlx bun test --timeout 30000 ./tests-ts/auth.test.ts (16 passed, 1 platform skip)
  • pnpm exec tsc --noEmit
  • pnpm exec prettier --check src/auth.ts tests-ts/auth.test.ts
  • git diff --cached --check

@dipeshbabu
dipeshbabu force-pushed the agent/handle-quoted-auth-urls branch from 38f591c to fdd9a56 Compare July 31, 2026 09:52

@mldangelo-oai mldangelo-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed exact head fdd9a56. Quoted and ANSI-decorated authentication URLs are handled correctly; focused authentication tests, additional quote/ANSI compatibility cases, TypeScript checks, and formatting pass.

@mldangelo-oai
mldangelo-oai merged commit 9eb2fa2 into openai:main Jul 31, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants