Repository navigation
Description
Summary
During troubleshooting of Codex in the Windows ChatGPT desktop app, attached diagnostic files are listed as available with scratch paths, but the assistant cannot consume them. Image attachments repeatedly produce No such file or directory (os error 2). This creates a support loop: the assistant asks for diagnostics, the user supplies attachments, and the assistant asks the user to paste or split the same information again.
This report is submitted by the assistant at the user's explicit request. Private paths, account information, project names, and diagnostic contents have been omitted.
Environment
- Windows desktop app, Codex surface
- Agent environment shown in settings: Windows native
- Integrated terminal: PowerShell
- Exact desktop/bundled Codex version and Windows build: not verified; the diagnostic attachment containing version output could not be read
Reproduction sequence observed in this conversation
- The desktop UI shows Windows setup incomplete / setup stopped, alongside failure to create a local project.
- The assistant requests PowerShell diagnostic output.
- The user supplies output as TXT and Markdown attachments, and also uploads screenshots.
- Attachment metadata announces that copies are available at local scratch paths.
- Image loading repeatedly fails with the following error (path anonymized):
Codex could not read the local image at `/workspace/scratch/<session>/upload/<attachment>.png`: No such file or directory (os error 2)
- Some earlier screenshots remained visually available in the conversation despite the local-image error, but the assistant had no callable local filesystem/terminal reader for the TXT/Markdown contents. Attachment instructions also directed it to read the scratch copies instead of using the Library tool.
- The assistant repeatedly requested repasting/smaller excerpts, shifting the ingestion failure onto the user without resolving the original setup problem.
Expected behavior
- Announced attachment paths should exist in the active execution environment and have a usable reader, or attachment contents should be exposed through a working supported alternative.
- An attachment ingestion failure should be distinguishable from the user's local Windows sandbox/setup failure.
- The assistant should obtain actionable setup diagnostics without requiring users to repeatedly reformat and resubmit the same output.
Actual impact and uncertainty
The user cannot complete troubleshooting or create the intended local project. Native setup and attachment ingestion are two observed failures; their causal relationship is unknown. Administrator and non-administrator setup paths were attempted/reported unsuccessful, but the effective fallback configuration and current backend error were not verified. This report does not claim that a specific Windows permission or sandbox implementation is the root cause.
Please route the attachment availability/tool-capability mismatch to the relevant desktop/Work team if it belongs outside this repository.
Activity
Spon4ik commentedon Oct 4, 2026
Additional reproduction from ChatGPT Work mode (web, 2026-10-04): a user-uploaded PNG was announced as available under
/workspace/scratch/<session>/upload/image(...).png, but Codex image loading failed withNo such file or directory (os error 2). The original attachment was present in the conversation/Library inventory, while the announced scratch path was not readable from the active workspace. This blocks inspection of the user's supplied evidence and stalls the task. Please include Work mode / browser sessions in triage; this report currently describes Windows desktop + PowerShell. The attachment's contents and session-specific path are intentionally omitted.Spon4ik commentedon Oct 4, 2026
Read-only source trace against public
openai/codexmainatde3721a7be07054c8c2a41102b5a501f34155361narrows the reported error, but does not establish the Work-mode staging root cause:LocalImageinput carries apath, andinto_coreforwards that path unchanged: turn.rs. The protocol type documents it as a local image path provided by the user: user_input.rs.std::fs::read(&path)and on failure emitsCodex could not read the local image at{path}: {error}: models.rs and error formatter. This matches the reported error prefix. If Work mode uses this public path, the observed failing operation is the Codex process's local file read; ENOENT alone does not tell us whether staging failed, the file disappeared, or the path belongs to another filesystem namespace.view_imagehandler asks the selected environment filesystem for metadata and then reads through that filesystem, with differentunable to locate/read imagemessages: view_image.rs.file_idreferences, not local scratch-path materialization: attachment-store, image preparation. A targeted search of this checkout found noworkspace/scratchorscratch/uploadimplementation.I could not establish the exact last-good staging boundary: the reproduction redacts its session-specific path/attachment identifier, and this session has no access to that Work execution's filesystem or process namespace. No files were changed and no root cause or fix is claimed. The next required evidence is a same-event trace from the Work attachment resolver/materializer through the path handed to the Codex process, including file existence and filesystem/container identity at handoff and at this read.
Spon4ik commentedon Oct 5, 2026
Updated source trace against public
openai/codexmainat823ea830c0fd418b09ff02d36cad9a1fff66465b:UserInput::LocalImage { path: PathBuf }: turn.rs.turn/start, the app-server processor mapsparams.inputthroughV2UserInput::into_core; it separately resolvesparams.cwdand builds the runtime environment. TheLocalImageconversion copiespathunchanged into core: turn_processor.rs, turn.rs conversion. The public path does not join this image path to the separately resolved cwd or map it through the active environment filesystem.std::fs::read(&path)and formats a local-image error on failure: models.rs read, error formatter. Thus, if Work mode uses this public request route, the opened path is interpreted in the Codex process's filesystem namespace.view_imageis different: it resolves against the selected tool environment and calls that environment filesystem'sget_metadataandread_file, with distinct errors: view_image.rs.file_id; image preparation uses it for prepared image bytes. I found noworkspace/scratchorscratch/uploadstaging implementation or bridge from Work attachment objects to theLocalImage.pathfield in the inspected public source/search. See attachment-store and image preparation.The missing component is the Work client attachment materializer/path adapter: the layer that locates or writes the uploaded object under the announced scratch path, checks that copy, and populates the app-server
LocalImage.path. The issue confirms the attachment object is present in the conversation/Library inventory, but provides no successful existence check for the local scratch copy. The first confirmed local-path read in this public route is the failingstd::fs::read; the last successful local existence point cannot be identified from available evidence. No staging/Codex filesystem identity, mount mapping, or path transformation telemetry is present, so a namespace/path mismatch remains a hypothesis, not a confirmed root cause.Needed evidence is a correlated trace across that materializer and app-server handoff: redacted attachment/session ID; staging write completion plus stat/open result; exact sanitized path sent in
turn/start; staging and Codex process/container/mount namespace identity; then Codex-side stat/open errno for that same ID/path. Include timestamps and size or content hash, never attachment contents or private full paths.RongNianXin commentedon Oct 6, 2026
Follow-up from another Windows Codex Desktop case. The attachment was visibly present in the UI, and the same Markdown file opened successfully in VS Code. However, the path exposed to the agent differed from the actual local path by one character: the real directory was
chatgpt-workflows-handoff-20261006-1, while the runtime reference waschatgpt-workflows-handoff20261006-1(the hyphen afterhandoffwas missing). The first path existed and was readable; the second returnedNo such file or directory. After correcting only that missing hyphen, the agent could read the file and run its embedded verification command successfully. This suggests an attachment path serialization or normalization problem between the desktop UI and the agent/tool runtime, rather than an upload failure. Could the team log and compare the raw attachment path, the displayed path, and the path passed to the agent before tool dispatch?sstewart207 commentedon Oct 21, 2026
Additional reproduction: ChatGPT Web attachment button vs. drag-and-drop
I'm reporting an additional reproduction discovered during an AI-assisted investigation with ChatGPT on October 20, 2026.
Environment
Observed behavior
When uploading a PNG image through the ChatGPT attachment interface, the conversation receives an attachment reference and a local workspace path:
However, Codex reports:
The file appears to be registered as an attachment, but the agent cannot access it at the provided filesystem path.
Important additional observation
The user reports different behavior depending on the upload method:
This suggests a potentially useful difference between the attachment processing paths, although the root cause has not been confirmed.
AI-assisted investigation
ChatGPT independently searched existing public reports, identified this issue as a close match, and compared the observed error with the documented Codex image-loading failure.
The investigation suggests examining the boundary between ChatGPT's attachment handling and the execution environment's local filesystem.
In particular:
Expected behavior
Both supported upload methods should make the image available to the model and its tools.
Actual behavior
The attachment-button workflow can produce a valid-looking file reference pointing to a nonexistent or inaccessible local file.
This reproduction may help narrow the existing investigation. No specific root cause or fix is claimed.