mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
## Why File arguments for MCP app tools can use a path convention that differs from the host running Codex. Resolving those arguments with host-native path handling can therefore point uploads at the wrong file. ## What changed - Resolve file arguments against the selected turn environment's working directory with `PathUri::join`. - Use the resolved URI's inferred native spelling for errors and derive the uploaded filename without converting through a host-native path. ## Testing Run the existing MCP file upload integration test under Wine and reduce its streaming fixture to 2 MiB. GitOrigin-RevId: 0a659c19e73f5a26ddfc864e39dad6a4a404057b