fix(setup): drop stale Codex oauth_resource and disclose remote replacement

A command entry that still carries oauth_resource is rejected by Codex for
stdio. Setup now treats that key as remote and removes it. The approval plan
keeps other fields only for a local command entry and says a remote entry's
other fields are replaced.
This commit is contained in:
Cursor Agent
2026-10-12 21:35:28 -04:00
committed by xeropresence
parent b478a8b011
commit 502e665212
5 changed files with 44 additions and 8 deletions
@@ -1522,6 +1522,9 @@ const REGISTRATION_REMOTE_KEYS: Readonly<Record<string, true>> = {
env_http_headers: true,
bearer_token_env_var: true,
oauth: true,
// Codex serializes `--oauth-resource` as `oauth_resource` and rejects it on
// a command entry (`oauth_resource is not supported for stdio`).
oauth_resource: true,
};
/**