Skip to content

Fix authentication for git-attribution settings requests - #60035

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4824bde7d9ec11c241f1caebc754d203dbb0480c
Nov 7, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4824bde7d9ec11c241f1caebc754d203dbb0480c

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Fix authentication for git-attribution settings requests

Why

Git-attribution settings requests need to honor runtime authentication for their destination. Repeated authorization failures after a credential refresh must also let world-state contribution finish.

What changed

  • Use the thread's ProviderAuthContext credentials and runtime authentication when available.
  • Bind the settings client's network policy to the authenticated account and select authentication through the runtime-aware backend client.
  • Stop policy resolution after an unsuccessful settings lookup or timeout instead of restarting it when credentials changed during recovery.

Testing

Add app-server coverage for dual_header and assertion_only authentication with default and custom destinations, including attribution instructions in model input. Add a regression test verifying that repeated 401 responses trigger only one credential refresh and omit attribution instructions.

## Why

Git-attribution settings requests need to honor runtime authentication for their destination. Repeated authorization failures after a credential refresh must also let world-state contribution finish.

## What changed

- Use the thread's `ProviderAuthContext` credentials and runtime authentication when available.
- Bind the settings client's network policy to the authenticated account and select authentication through the runtime-aware backend client.
- Stop policy resolution after an unsuccessful settings lookup or timeout instead of restarting it when credentials changed during recovery.

## Testing

Add app-server coverage for `dual_header` and `assertion_only` authentication with default and custom destinations, including attribution instructions in model input. Add a regression test verifying that repeated `401` responses trigger only one credential refresh and omit attribution instructions.

GitOrigin-RevId: 4824bde7d9ec11c241f1caebc754d203dbb0480c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4824bde7d9ec11c241f1caebc754d203dbb0480c branch from 459e5a2 to 0c58612 Compare November 7, 2026 02:09
@copyberry
copyberry Bot merged commit 0c58612 into main Nov 7, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4824bde7d9ec11c241f1caebc754d203dbb0480c branch November 7, 2026 02:09
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-07T02:09:48.262891Z 0c58612 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 0c58612c Deployed Nov 7, 2026 by mnkasaballi-spec via Translate non-English issue #24911
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants