improve codex validation behavior #336728

Merged
Giuspepe opened 2:51am on September 18, 2026 wanted to merge 46 Ξ” into microsoft/vscode main from
agents/issue-reproduction-and-fix-process

Pull Request Overview

  • Opened on September 18, 2026
  • Status Merged
  • Commit count 1 with first commit September 18, 2026

Total Delta

46 Total Diff Delta

Open Days

Open 0 weekdays

Test Delta

18 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Fraction of total time Business days Phase
 
0.0 days Authoring 1 commit before pull request opened for review
 
0.0 days Awaiting first review
 
0.9 days Merge to deploy (still awaiting deployment)

Total time for pull request 0.0 business days from first commit authored to merge
Still awaiting deployment

Author avatar

improve codex validation behavior

Summary


  • improve validation behavior

  • add regression coverage

Validation


  • targeted unit tests

  • full compile

  • local runtime verification

Comments Threads Pending Resolution

ljharb reviewed on September 18, 2026
ljharb left a comment

## Copilot review overview

### 🟒 Approval recommended

The validation is correctly scoped and covered by targeted regression tests.

**Review effort:** Balanced
**Findings:** None

What changed in this PR

Validates Codex authentication URLs before bypassing external-link prompts.

**Changes:**
- Allows only HTTPS URLs on OpenAI or ChatGPT domains.
- Adds regression coverage for accepted and rejected URLs.

| File | Description |
| ---- | ----------- |
| `codexAccountService.ts` | Adds authentication URL validation. |
| `codexAccountService.test.ts` | Tests trusted and untrusted URLs. |

---

πŸ’‘ Add a `code-review` agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Resolved Comment Threads

No resolved comments have been left on this PR.