mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Add process-scoped PSP routing for ChatGPT requests (#36986)
## 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
This commit is contained in:
1 parent
411f3f0680
commit
1d952f027e
25 files changed
+199
-16
No files matched your search
@@ -46,6 +46,7 @@ fn app_server_accepts_process_scoped_code_mode_host() {
|
||||
"wss://example.test/code-mode",
|
||||
"--listen",
|
||||
"off",
|
||||
"--psp",
|
||||
])
|
||||
.expect("parse app-server args");
|
||||
|
||||
@@ -54,6 +55,7 @@ fn app_server_accepts_process_scoped_code_mode_host() {
|
||||
Some(Url::parse("wss://example.test/code-mode").expect("test endpoint should parse"))
|
||||
);
|
||||
assert_eq!(args.listen, AppServerTransport::Off);
|
||||
assert!(args.psp);
|
||||
assert_eq!(args.config_overrides.raw_overrides, Vec::<String>::new());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user