From 9a9557f737614881b3a6f7d316e23e42d1716f54 Mon Sep 17 00:00:00 2001 From: ScriptedAlchemy Date: Wed, 9 Sep 2026 08:30:49 +0000 Subject: [PATCH 1/2] fix(app): support Codex custom-scheme origins --- .changeset/pin-codex-sandbox-origin.md | 5 + docs/entry-conventions.md | 16 +-- packages/agent-bundle/src/app/index.ts | 49 ++++++-- .../agent-bundle/tests/app-client.test.ts | 117 +++++++++++++++++- .../tests/public-api-packed.test.ts | 38 ++++++ website/docs/en/guide/authoring/mcp.mdx | 22 ++-- website/docs/en/reference/security.mdx | 18 +-- website/docs/zh/guide/authoring/mcp.mdx | 15 +-- website/docs/zh/reference/security.mdx | 13 +- 9 files changed, 235 insertions(+), 58 deletions(-) create mode 100644 .changeset/pin-codex-sandbox-origin.md diff --git a/.changeset/pin-codex-sandbox-origin.md b/.changeset/pin-codex-sandbox-origin.md new file mode 100644 index 000000000..1e432101b --- /dev/null +++ b/.changeset/pin-codex-sandbox-origin.md @@ -0,0 +1,5 @@ +--- +"agent-bundle": patch +--- + +Allow `createAppClient()` to pin Codex Desktop `codex-sandbox://` response origins while keeping configured `targetOrigin` HTTP(S)-only (#PR) diff --git a/docs/entry-conventions.md b/docs/entry-conventions.md index d573a1ee0..3e8a4918f 100644 --- a/docs/entry-conventions.md +++ b/docs/entry-conventions.md @@ -1799,25 +1799,25 @@ that cancellation cannot bypass consent or reach a request the App did not start. Hosts outside the framework apply their own policy; the client's behavior is the same either way. -### Opaque sandbox handshake +### Dynamic sandbox handshake The Workbench and `serve-app` render the App as `