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
+3
View File
@@ -152,6 +152,9 @@ describe("setup workflow", () => {
expect(result.plannedActions.map(({ id }) => id)).toEqual([
"configure_client:codex",
]);
expect(result.plannedActions[0]?.detail).toContain(
"replaced when that entry is remote",
);
expect(host.hopperInstalls).toBe(0);
expect(host.configurations).toBe(0);
});