Skip to content

Add process-scoped PSP routing for ChatGPT requests - #36986

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/05cdc61ffd7162d8e48fc1e166f4732113e5a816
Aug 4, 2026
Merged

Add process-scoped PSP routing for ChatGPT requests#36986
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/05cdc61ffd7162d8e48fc1e166f4732113e5a816

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 4, 2026

Copy link
Copy Markdown

Add process-scoped PSP routing for ChatGPT requests

What changed

  • Add a hidden global --psp runtime flag and propagate it through TUI, exec,
    app-server, remote-control, and in-process startup paths.
  • Attach the oai-chat-psp=true cookie to first-party ChatGPT requests when
    enabled, using a cached cookie-aware client with sensitive request logging
    disabled.
  • Keep the routing selection out of persistent configuration layers while
    preserving it across config refreshes and agent role changes.

Testing

  • Cover global flag parsing, app-server propagation, config-layer isolation,
    and preservation across config rebuilds and role changes.
## What changed

- Add a hidden global `--psp` runtime flag and propagate it through TUI, exec,
  app-server, remote-control, and in-process startup paths.
- Attach the `oai-chat-psp=true` cookie to first-party ChatGPT requests when
  enabled, using a cached cookie-aware client with sensitive request logging
  disabled.
- Keep the routing selection out of persistent configuration layers while
  preserving it across config refreshes and agent role changes.

## Testing

- Cover global flag parsing, app-server propagation, config-layer isolation,
  and preservation across config rebuilds and role changes.

GitOrigin-RevId: 05cdc61ffd7162d8e48fc1e166f4732113e5a816
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/05cdc61ffd7162d8e48fc1e166f4732113e5a816 branch from 42cb189 to 1d952f0 Compare August 4, 2026 22:23
@copyberry
copyberry Bot merged commit 1d952f0 into main Aug 4, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/05cdc61ffd7162d8e48fc1e166f4732113e5a816 branch August 4, 2026 22:24
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant