mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
## Why Selecting an image through `@` completion could fail when the file search root differed from the process working directory. The composer used the relative completion path to open the image. ## What changed Use the full path from the search result to read and attach images in both mention pickers. Keep relative paths for text insertion and check that an image candidate is a regular file before opening it, so a named pipe such as `pipe.png` is inserted as text without blocking the composer. ## Testing Regression tests cover submitting an image from the search root in both pickers and inserting an image-named pipe as relative text on Unix. GitOrigin-RevId: f1d38f58dd431c3fb12b11ed35838f0b7bfa5674