codex/codex-rs/ext
Adam Perry @ OpenAI e7de1f4440 Add an opt-in tool for copying files between environments (#54674)
## What changed

Add the `codex-multi-env-copy-file` extension, exposing `multi_env_copy_file` when registered by the host. Copy files between distinct selected environments without loading their contents into model context, and return `bytes_copied` on completion.

Require absolute paths in each environment's native path convention and enforce each endpoint's sandbox policy and permission grants. Stream file contents where supported, with a buffered fallback for older executors. Reject same-environment copies and report I/O error kinds without exposing connection details. Warn that failed writes may leave a truncated or partially written target.

## Testing

Add integration tests for binary transfers in both directions, local and remote executors, path validation, opt-in tool visibility, endpoint permissions and grants, and unavailable or disconnected executors. Verify that copied contents stay outside model context.

GitOrigin-RevId: f5d9e423d105019834e0288828cb68c5711b3a49
History 2026-10-16 18:39:31 +00:00
..
agent Expose and persist turn lineage across the app server (#51415) 2026-10-06 16:56:39 +00:00
agent-message-board Store generated image items as attachment references (#54398) 2026-10-15 19:51:22 +00:00
connectors Rename plugin MCP and app extension APIs (#46564) 2026-09-19 01:45:51 +00:00
extension-api Track content provenance through prompt assembly and compaction (#53831) 2026-10-14 02:01:49 +00:00
git-attribution Persist world-state snapshots alongside rendered context (#49847) 2026-10-01 03:38:50 +00:00
goal Store generated image items as attachment references (#54398) 2026-10-15 19:51:22 +00:00
guardian-reviewer Share Guardian image deduplication and checkpoint restoration (#54278) 2026-10-15 12:42:15 +00:00
guardian-v2 Preserve evidence message structure in Guardian Decisions requests (#54589) 2026-10-16 12:35:55 +00:00
history-notes Store generated image items as attachment references (#54398) 2026-10-15 19:51:22 +00:00
image-generation Record local image inputs on completed image-generation items (#54420) 2026-10-15 21:30:56 +00:00
items Record local image inputs on completed image-generation items (#54420) 2026-10-15 21:30:56 +00:00
mcp Acquire and cache opt-in executor capability inventories via V2 (#53736) 2026-10-13 18:15:50 +00:00
memories Store generated image items as attachment references (#54398) 2026-10-15 19:51:22 +00:00
multi-env-copy-file Add an opt-in tool for copying files between environments (#54674) 2026-10-16 18:39:31 +00:00
queue Expose and persist turn lineage across the app server (#51415) 2026-10-06 16:56:39 +00:00
skills Store generated image items as attachment references (#54398) 2026-10-15 19:51:22 +00:00
web-search Add opt-in output token replay for OpenAI requests (#52742) 2026-10-10 01:25:00 +00:00