jif
790213ded0
Scope MCP sandbox metadata to server environment ( #28914 )
...
Scope MCP sandbox metadata to the MCP server's owning environment.
Previously, `codex/sandbox-state-meta` always used the turn's primary
cwd and rebuilt a legacy sandbox policy from that cwd. That can be wrong
for MCP servers owned by a different execution environment.
This now sends the owning environment cwd as a `file:` URI in
`sandboxCwd`, keeps `permissionProfile` as the permission source of
truth, and omits sandbox-state metadata when a non-default server
environment is not selected for the turn. Local/default MCP servers keep
the existing fallback cwd behavior.
Tests:
- `just fmt`
- `just bazel-lock-update`
- `just bazel-lock-check`
- `just test -p codex-mcp`
- `just test -p codex-core mcp_sandbox_cwd`
- `cargo build -p codex-rmcp-client --bin test_stdio_server`
- `just test -p codex-core
stdio_mcp_tool_call_includes_sandbox_state_meta`
History
..
2026-06-08 11:39:08 +02:00
2026-06-09 12:48:04 -07:00
2026-05-26 20:59:47 -07:00
2026-06-11 18:16:39 -07:00
2026-06-17 11:23:39 -07:00
2026-06-18 05:00:04 +00:00
2026-05-07 15:44:17 -07:00
2026-06-18 14:09:38 +02:00
2026-06-15 13:25:42 -07:00
2026-06-11 21:28:52 -07:00
2026-06-18 05:00:04 +00:00
2026-06-18 05:00:04 +00:00
2026-06-12 20:10:12 -07:00
2026-06-17 19:36:16 +00:00
2026-06-15 21:30:32 +00:00
2026-06-11 18:16:39 -07:00
2026-05-08 04:07:59 +00:00
2026-06-15 21:54:01 +00:00
2026-06-13 21:43:39 -07:00
2026-06-15 13:50:08 +01:00
2026-06-17 11:23:39 -07:00
2026-06-12 21:23:50 +00:00
2026-06-12 21:23:50 +00:00
2026-06-11 18:16:39 -07:00
2026-06-11 18:16:39 -07:00
2026-06-16 19:28:55 -07:00
2026-06-11 22:37:26 -07:00
2026-06-12 02:49:17 -07:00
2026-06-17 20:57:13 -07:00
2026-06-01 21:25:42 -07:00
2026-06-15 21:53:47 -07:00
2026-05-07 15:44:17 -07:00
2026-06-15 20:10:53 -07:00
2026-06-18 19:31:07 +02:00
2026-06-13 21:43:39 -07:00
2026-06-18 04:29:47 -07:00
2026-06-17 08:50:39 -07:00
2026-06-15 15:05:28 -07:00
2026-06-18 19:31:07 +02:00
2026-06-17 17:20:53 -07:00
2026-06-18 00:16:46 -07:00
2026-06-18 00:16:46 -07:00
2026-06-05 15:41:13 -07:00
2026-06-18 14:09:38 +02:00
2026-06-18 19:04:26 +02:00
2026-06-15 21:53:47 -07:00
2026-06-13 21:43:39 -07:00
2026-06-18 00:16:46 -07:00
2026-06-15 23:17:24 -07:00
2026-06-15 15:05:28 -07:00
2026-06-18 04:29:47 -07:00
2026-05-26 15:59:25 -07:00
2026-05-07 15:44:17 -07:00
2026-06-17 10:00:42 -07:00
2026-05-28 23:09:55 -07:00
2026-06-12 16:58:42 -07:00
2026-06-15 15:12:26 -07:00
2026-06-03 19:08:19 -07:00
2026-06-12 19:52:49 +00:00
2026-06-18 14:09:38 +02:00
2026-05-07 15:44:17 -07:00
2026-06-17 14:53:54 -07:00
2026-06-17 19:52:43 +02:00
2026-06-17 18:27:43 -07:00
2026-06-04 09:53:08 -04:00
2026-06-17 11:23:39 -07:00
2026-06-05 17:36:18 -07:00
2026-06-13 21:43:39 -07:00
2026-06-18 14:09:38 +02:00
2026-06-04 09:53:08 -04:00
2026-06-15 21:53:47 -07:00
2026-06-18 00:16:46 -07:00
2026-05-25 17:26:10 -03:00
2026-06-13 21:43:39 -07:00
2026-06-18 05:00:04 +00:00
2026-05-07 15:44:17 -07:00
2026-04-22 22:24:12 -07:00
2026-05-07 15:44:17 -07:00
2026-06-13 20:56:42 +00:00
2026-06-17 18:52:18 +00:00
2026-06-18 05:00:04 +00:00
2026-06-18 14:09:38 +02:00
2026-05-26 20:59:47 -07:00
2026-06-12 19:52:49 +00:00
2026-06-15 08:28:02 -07:00
2026-06-11 18:16:39 -07:00
2026-06-17 19:16:18 +00:00
2026-06-17 18:52:18 +00:00
2026-05-07 15:44:17 -07:00
2026-05-13 21:23:19 +00:00
2026-05-07 15:44:17 -07:00
2026-06-18 04:29:47 -07:00
2026-06-17 18:27:43 -07:00
2026-06-16 23:44:42 +00:00
2026-06-18 08:48:03 -07:00
2026-05-07 15:44:17 -07:00
2026-06-18 00:16:46 -07:00
2026-06-13 21:43:39 -07:00
2026-06-13 21:43:39 -07:00
2026-06-17 10:00:42 -07:00
2025-10-19 20:41:55 -04:00
2026-04-24 17:49:29 -07:00
2026-06-18 19:31:07 +02:00
2026-06-15 16:39:41 -07:00
2026-04-20 22:41:54 -07:00
2025-10-17 14:58:27 -07:00
2026-02-20 19:32:15 -08:00
2026-06-11 18:16:39 -07:00
2026-06-04 09:16:03 -07:00
2026-05-26 20:59:47 -07:00
2025-05-07 08:37:48 -07:00