Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.928.21956, build 12404, prod release channel, as returned by the native app updater. Update status: up_to_date.
What subscription do you have?
Not specified in this report. The minimal reproduction is a local platform-API failure and does not require accessing a private Library file.
What platform is your computer?
Windows 11 Home Single Language, 64-bit, version 10.0.26200 / build 26200.
CPython 3.14.7, sys.platform == "win32".
Native Windows execution and access to the destination disk are working.
What issue are you seeing?
The official ChatGPT Library transfer helper library/scripts/library_file_transfer.py crashes when applying the metadata required for local materialization on native Windows:
File "library_file_transfer.py", line 246, in apply_xattrs
xattr.apply(path)
File "library_file_transfer.py", line 64, in apply
os.setxattr(path, self.name, encoded_value)
AttributeError: module 'os' has no attribute 'setxattr'
The examined helper is unchanged:
- Size: 11,084 bytes
- SHA-256: 5e1557817be17db06e2375f8c34ed83e948d520242e5ee4cb50a30c7a4c83378
- No helper version/build was declared in the examined resource.
- The original session fetched the helper again from the official Library skill and received the same implementation. A subsequent diagnostic session independently verified the preserved helper bytes, but could not re-fetch the remote skill because that resource-reading tool was not exposed in that session.
ExtendedAttribute.apply handles darwin separately and routes all other platforms through these lines:
os.setxattr(path, self.name, encoded_value) # line 64
actual_value = os.getxattr(path, self.name) # line 65Both APIs are absent in native Windows CPython. Verified locally:
{"python":"3.14.7","platform":"win32","setxattr":false,"getxattr":false,"replace":true}The workflow is blocked before publishing the destination file. Removing attributes does not satisfy the integration contract: the helper adds user.library-file-id whenever library_file_id is supplied, and the target transfer also requires user.library-file-version.
This concerns the official Library/desktop integration helper, which may live outside this repository; please route to its owning engineering team if necessary.
What steps can reproduce the bug?
Observed on 2026-09-30, independently reproduced at approximately 20:24 America/Fortaleza (UTC-03:00).
- Obtain the official helper matching the size/hash above; do not patch it.
- On native Windows, create a temporary marker file explicitly identified as diagnostic data, not a Library document.
- Execute:
python library_file_transfer.py apply-xattrs <absolute-marker-path> diagnostic-only-not-a-library-file
- Supply this JSON to stdin as UTF-8 bytes, without BOM:
[{"name":"user.library-file-version","value":"0"}]- The helper exits with code 1, empty stdout, and the
AttributeErrorat line 64.
There is no need to download private Library content or supply a real Library ID, signed URL, or authentication header to reproduce the failure.
Additional negative-path verification performed with the unchanged materialize CLI: a local diagnostic fixture (file: URI), synthetic ID, empty headers, and the version attribute above were used in a dedicated temporary directory. Execution tracing and an audit hook observed the helper without replacing its functions or OS APIs.
| Observation | Destination initially absent | Existing diagnostic destination |
|---|---|---|
| Downloaded temporary bytes reread before metadata application | Match the source marker | Match the source marker |
| Metadata application | Fails at line 64 | Fails at line 64 |
| Helper exit code | 1 | 1 |
Publication line 233 (os.replace) reached |
No | No |
| Observed rename events | 0 | 0 |
| Destination after failure | Still absent | Original bytes unchanged |
| Transfer temporary cleaned by helper | Yes | Yes |
The helper remained byte-for-byte unchanged. All diagnostic fixtures were removed afterward. This demonstrates failure-path protection, not successful Library materialization or metadata persistence. The real target document's expected size/hash have not been validated on a materialized file, and the project copy remains suspended.
What is the expected behavior?
Provide an officially supported native-Windows implementation and metadata reader/writer contract that:
- Preserves
user.library-file-id,user.library-file-version, and every additional required attribute. - Verifies those attributes by independent readback after closing and reopening the file.
- Keeps same-directory temporary creation, applies and verifies metadata before atomic
os.replace, cleans temporary files on failure, and preserves an existing destination if validation fails. - Supports content size/SHA-256 checks and revalidation of both integrity and metadata after transfer to the final Windows destination.
Suppressing AttributeError, removing metadata, or introducing ADS/sidecar semantics without a supported Library contract would not meet this requirement. Switching the environment to WSL does not establish metadata compatibility at the required native-Windows destination.
Additional information
- The native updater reports the app is up to date; Python was not reinstalled, Windows permissions/settings were not changed, and neither the official helper nor the project was patched.
- Python documentation still classifies these APIs as Linux-only in 3.15 and development 3.16; upgrading Python alone does not provide these APIs on Windows.
- The official Help Center's AI-assisted support received the technical report but stated that human escalation and a case number were unavailable in that channel, and directed a trackable bug submission to this repository.
- Searches for
library_file_transfer,setxattr, and Library/Windows issues did not identify the same defect before filing. - This report intentionally excludes private file IDs, local user/project paths, account contact details, document content, signed URLs, tokens, and authentication headers.
Please acknowledge the integration defect and identify the owning team and a supported Windows fix or corrected helper version.
Activity
brunoflma commentedon Sep 30, 2026
Version clarification:
26.928.21956, build12404, release channelprod, statusup_to_date(as recorded in the original report).Get-AppxPackage:OpenAI.Codex_26.928.2636.0_x64__2p2nqsd0c76g0.These identifiers may represent different versioning layers. I am including both for reference; their difference alone does not establish a version mismatch or a cause of this failure.
rjhenderson205 commentedon Oct 1, 2026
Independently reproduced this exact failure on two separate Windows PCs through a Dot connected-computer Library download. Same unchanged helper and same SHA-256. My latest reproduction was Windows Home 25H2 build 26200.9168 with bundled Python 3.12.14. I also submitted this via
/feedback.trustscience1111 commentedon Oct 1, 2026
Confirmed independently as well same hash ; cloudflare custom upload workaround confirms the zip file uploads and opens as intended locally
nonakasugimoto commentedon Oct 4, 2026
I can reproduce this on native Windows with Python 3.14.8 using the official Library helper in dot-created tasks.
Downloads fail with:
AttributeError: module 'os' has no attribute 'setxattr'
No completed destination file is produced.
There is also an upload-side issue: saving a file to Library succeeds and returns a file ID/version, but the subsequent step that records Library attributes on the local file fails with the same error. The cloud save succeeds even though the local metadata step fails.
A separate Python availability/PATH issue was resolved by using a dedicated Python installation, but the os.setxattr error remains. The official transfer flow worked in the Linux environment used for comparison.
Is there a supported native-Windows transfer method or a planned fix for this helper?
Cobblecat commentedon Oct 9, 2026
I reproduced the post-upload metadata failure on October 4 using native Windows 11 (build 26200) and Python 3.14.6. The Library create succeeded before the local tagging step raised AttributeError: module 'os' has no attribute 'setxattr'.
The helper inspected was 11,085 bytes, with SHA-256:
5c81478cd94a59d721a1677d0bd36f7cec23c18a21b48740b1c9ff94d27fb26f
That differs from the 11,084-byte helper in the original report. I haven’t compared the two files, so I can’t identify the difference.
I also checked the upload error handling. In library_upload.py, _result applies metadata after finalization but before building the success result and emitting the write receipt. It catches LibraryFileTransferError and OSError, but not AttributeError. So the upload can finish successfully without the caller getting its confirmation. That ordering could also affect batches: if finalization has committed several items, an exception while tagging the first could prevent results for the remaining items from being returned. I checked this with simulated results, not a live batch upload.
BlakeMasters commentedon Oct 10, 2026
Confirmed in a Dot-connected native Windows workflow. Library transfer preparation succeeds, but the provided helper fails during metadata application with:
The error occurs after streaming into a temporary file and before publishing the destination. Cleanup removes the temporary file, so no completed archive reaches the destination. This is an OS compatibility failure rather than evidence of a file-size limit.
A workaround is available: a separate streamed downloader can consume the prepared Library transfer ticket and preserve identity/version metadata locally using Windows NTFS alternate streams plus a receipt. That approach successfully downloaded a Library archive; a separate synthetic multi-GB transfer also verified bounded memory use.
This remains a custom client workaround. Recognition of its Windows metadata representation by native Library re-import code has not been verified. The supported helper still needs Windows-compatible metadata handling and an official metadata contract.
Thankyou-Cheems commentedon Oct 10, 2026
Still reproducible on October 10, 2026 in a Dot-connected native Windows workflow. We encountered the same error while using the supported Library materialization flow for both a ZIP handoff and PNG attachments:
The corresponding Library transfer worked in the Linux cloud environment. On Windows we stopped at the helper error rather than modifying the helper or inventing a metadata representation. Manually saving the attachments from the chat to Downloads lets the user continue the project, but does not fix the automated Library-to-Windows handoff.
Please provide a supported native-Windows metadata implementation (including readback/verification) or document the supported transfer route. This continues to interrupt cloud-to-desktop work even for ordinary small attachments, rather than only large files.
This report intentionally omits private attachment identifiers, signed URLs, local user paths, and file contents. The installed application/Python versions were not rechecked for this report, so I am not attributing it to a specific release.
ruochiliu123 commentedon Oct 10, 2026
I reproduced this Library materialization failure in a dot-created task on native Windows on October 10, 2026.
Library prepare_materialize succeeded and returned transfer information for a PDF, but no workspace_path. The freshly retrieved official library_file_transfer.py helper failed while running materialize with Windows Python. In apply_xattrs, the os.setxattr call raised:
AttributeError: module 'os' has no attribute 'setxattr'
The intended destination file was checked and was absent. We stopped without modifying the helper or skipping metadata handling.
Earlier metadata at 01:41 UTC showed package 26.1002.7124.0 and resource version 26.1002.52244; these were not reverified at transfer time. We have not verified byte-for-byte equivalence with the helper in the original report or tested a newer release.
Please provide a supported native-Windows implementation that preserves Library identity/version metadata and verifies successful local materialization.
anbmathlab commentedon Oct 11, 2026
Additional observation from October 11, 2026, in a dot-connected native Windows workflow:
Official Library preparation succeeded for two ZIP source bundles, but the intended final local files were absent. One transfer attempt failed during metadata application because os.setxattr was unavailable. A separate attempt to launch bare python from Node failed with EPERM before Python execution. The resolved Python executable and the cause of EPERM were not established; this is a separate launch failure, not a confirmed cause of the metadata defect. No supported Python execution path was found in the allowed environment.
No metadata bypass, custom downloader, or security relaxation was applied. Exact application/Python/OS builds and helper equivalence were not verified for this report.
Could you provide an officially supported native-Windows fix or corrected helper version that preserves and verifies Library metadata, and confirm whether an ETA is available?
Penaeus commentedon Oct 11, 2026
Additional native-Windows reproduction on 2026-10-11.
Environment:
sys.platform == "win32"hasattr(os, "setxattr") == Falsehasattr(os, "getxattr") == False5e1557817be17db06e2375f8c34ed83e948d520242e5ee4cb50a30c7a4c83378The unchanged helper reproduces the same failure in
ExtendedAttribute.apply:A minimal
apply-xattrsrun exits 1 at theos.setxattrcall. This is not limited to download/materialization: a separate direct Library-create path can successfully create the remote Library item, then the subsequent local metadata-application step fails with the same exception. In that case the cloud save and the local metadata failure are distinct outcomes.The project code itself does not call
setxattr; the failure is in the provided Library transfer helper. We did not patch the helper, invent a Windows metadata representation, or bypass the metadata contract. Manual file transfer remains usable for the workflow, but does not fix metadata-preserving native-Windows materialization.This reproduction contains no Library IDs, signed URLs, private paths, tokens, cookies, or document contents.
A supported Windows metadata implementation (with readback/verification) is still needed.
anotb commentedon Oct 12, 2026
Still hitting this on October 12, 2026 in a dot-created task on native Windows.
Steps:
AttributeError: module 'os' has no attribute 'setxattr'
One supported retry produced the same failure. The final destination file was checked and does not exist.
This blocks publishing an already-approved website image and pushes a manual download back onto the user.
Expected: the supported transfer completes on Windows, preserving and verifying Library identity/version metadata before atomically publishing the destination file. Please provide Windows-compatible metadata handling and a supported end-to-end transfer path.
z18153881503-arch commentedon Oct 17, 2026
Independent reproduction on 2026-10-17 in a native Windows desktop workflow.
sys.platform == "win32".0.163.0-alpha.10.2(this is the backend CLI version; the desktop UI build was not measured).library.prepare_materializeworkflow is 11,085 bytes, SHA-2565c81478cd94a59d721a1677d0bd36f7cec23c18a21b48740b1c9ff94d27fb26f. We have not freshly fetched the upstream helper in this diagnostic session, and do not claim byte equivalence with the original report's helper.Using the unchanged helper's
materializecommand with a localfile:URI containing diagnostic bytes, a synthetic Library ID, empty headers, and theuser.library-file-versionattribute reproduces:ExtendedAttribute.applyroutes native Windows throughos.setxattrandos.getxattr; both are absent. The child process exits 1, the final destination is absent, and the temporary download is cleaned. The helper's before/after hash is unchanged. No network, private Library file, signed URL, credential, or real asset is needed for this reproduction.An earlier actual ZIP handoff reached the same metadata step and failed, leaving no final ZIP. ZIP CRC/extraction acceptance remains unfulfilled. We did not patch the official helper, suppress metadata, or invent Windows metadata semantics.
Please route this to the Library integration owner and provide a supported Windows metadata writer/reader and transfer path that preserves and verifies file identity/version before final publication. Manual attachment download remains the immediate operational fallback.
JeremyProffitt commentedon Oct 17, 2026
Independent reproduction and verified local workaround on 2026-10-17. Adding this here after searching existing issues; #53414 also describes the same failure.
Environment:
0.163.0, originatorcodex-tui, sourcevscode.OpenAI.Codex 26.1013.3656.0,OpenAI.ChatGPT-Desktop 1.2026.190.0. These package versions do not establish which client originally fetched each helper.The preserved October 14 helper routes all non-macOS platforms through
os.setxattr/os.getxattr. Its real materialization path with a local file URI reproduces:Metadata fails after temporary-file creation and before destination replacement; cleanup removes the temporary file. No network request is needed to reproduce.
We have repeatedly fixed separate task-local copies. The earlier repair record covers October 12 copies; October 16/17 copies were repaired in another session; the October 14 copy still failed. Patching one copy does not repair other copies or the distributed helper. We did not fetch the latest upstream helper during this diagnostic run.
Local workaround verified on this machine: add a
sys.platform == "win32"branch that uses the already-installed WSL Ubuntu Python to:wslpath -u.The existing regression now covers five helper copies. It checks file SHA256 equality, Library file ID/version readback via WSL after rename on the actual Windows destination drive, and preservation of an existing destination plus temporary-file cleanup when WSL fails:
This is a machine-specific workaround, not a claim of an officially supported native metadata contract. Native Library re-import recognition was not tested. WSL Ubuntu and destination filesystem support are dependencies. We did not suppress metadata or add sidecar semantics.
Please fix the distributed helper, define the supported Windows metadata reader/writer contract, and add Windows regression coverage so each new task does not require another local patch. Please identify the owning team and corrected helper version. Installing a global Python package cannot add these missing platform APIs to native Windows Python.
Private file IDs, local user/project paths, credentials, signed URLs, and document contents are omitted.
Shawnxiaojian commentedon Oct 18, 2026
Follow-up on 2026-10-18: native Windows reproduction and local candidate test results (not an official fix).
Environment: installed Windows app MSIX package
26.1013.4894.0; the built-in updater reports “ChatGPT is up to date”; native CPython 3.13.15.The preserved, unchanged 11,085-byte Library helper has SHA-256
5c81478cd94a59d721a1677d0bd36f7cec23c18a21b48740b1c9ff94d27fb26f. Native Windows is routed toos.setxattr/getxattr, which are absent. With syntheticfile:content, empty headers and a diagnostic identity, metadata failure occurs before atomic replacement; staging is cleaned and an existing destination is preserved. This does not establish equivalence with newer upstream helper distributions.We implemented a separate local candidate, retaining the original transport/authentication implementation, using native Windows EA APIs rather than spawning WSL. Both the coordinating session and a separate same-machine session independently ran all 10 synthetic tests successfully:
On synthetic NTFS files, native-written attributes were read back through existing WSL, including after native rename; WSL-written attributes were also read back natively. This is local interoperability evidence, not a supported Library metadata-reader/re-import contract. Native Library re-import recognition was not tested. No fresh prepared transfer was requested or executed through the modified helper because the current formal flow did not designate it. The original helper and previously verified WSL route remain preserved. This local candidate does not fix newly distributed task copies or the upstream product.
Could the owning team identify the maintained helper source, supported Windows identity/version reader/writer representation, and a corrected bundled helper version? We can provide a minimized synthetic test/patch if useful.
A separate UI symptom is also reproducible: with a rendered cloud PDF preview in the Windows app, choosing download → PDF closes the menu but produces no save dialog, error toast, or new file in the default Downloads directory. The cause is unconfirmed, and we do not attribute it to this Python metadata bug. #37193 describes a related no-response symptom but does not establish an identical cause. Please advise on supported credential-free download-event diagnostics.
No signed app files or security settings were modified, and no application/PC restart was performed. This report excludes account details, private file IDs, document contents, local user paths, signed URLs, transfer tickets, headers and credentials.
Update — same-machine UI controls: the built-in browser successfully downloaded three synthetic 42-byte files from a loopback-only test server: HTTP attachment anchor, async Blob with 0-ms URL revocation, and async Blob with delayed revocation. All three final files have the same SHA-256. The same app's existing cloud PDF preview download remains unresponsive. Temporarily enabling “Ask where to save downloads” did not change the PDF-preview result; that setting was restored. This distinguishes a working built-in-browser download path from the failing preview path, but is not proof of the precise failing component. The local diagnostic server was stopped; no security settings or authenticated requests were used.
Update — fresh native-attachment controls: a newly generated synthetic TXT attachment rendered in the app, and preview → download → original file successfully saved all 41 bytes with matching SHA-256. Two newly generated one-page synthetic PDF attachments both rendered, but selecting download → PDF produced no save dialog and no new file in the default Downloads folder, including for the purely ASCII-named PDF. This makes an old attachment reference or special filename insufficient as the sole explanation. Caveat: the platform converted the PDFs from 1,355 to 26,306 bytes and the two delivered hashes differ, so this is not a strict filename-only experiment. All fixtures contain only a public diagnostic marker, not real documents. The precise PDF export/download failure still needs runtime investigation; no universal preview failure or successful repair is claimed.
nobushinno-hash commentedon Oct 22, 2026
Additional verification on 2026-10-22 from a native Windows workflow.
CPython 3.12.14 reports sys.platform="win32"; os.setxattr and os.getxattr are both absent. The official library_file_transfer.py fetched during this check is 15,513 bytes, SHA-256:
8c7f5663d04ab4eb651c89c1b012014c8fe12b579a1069a72a677c67750a3e8b
Lines 137–138 still call these APIs without a Windows branch. An earlier transfer attempt failed with:
AttributeError: module 'os' has no attribute 'setxattr'
Inspection confirms metadata is applied before final placement, with temporary-file cleanup on failure. The intended destination was checked and was absent. Fresh transfer preparation succeeded, but no further content transfer was executed after confirming the same implementation defect.
No metadata bypass, custom representation, or security-setting change was applied. Could the owning team provide the supported Windows metadata writer/reader contract for Library identity/version attributes and a corrected distributed helper version?
This report excludes private file identifiers, contents, local user paths, transfer URLs and authentication data.
sharudone20020401-oss commentedon Oct 24, 2026
Additional reproduction on native Windows, observed on 2026-10-24 UTC (2026-10-25 JST):
AttributeError: module 'os' has no attribute 'setxattr'.This blocks working remotely without manual intervention on the PC. Could the owning team confirm the current fix status and provide an officially supported native-Windows, metadata-preserving workaround or corrected helper version?
mmustafa189 commentedon Nov 6, 2026
Additional reproduction on 2026-11-06 UTC: this still fails on native Windows 10.0.26300, NTFS, with bundled CPython 3.12.14 (win32). Both os.setxattr and os.getxattr are absent.
The currently supplied, unchanged library_file_transfer.py has SHA-256:
D0385DE4B634C4A6D4C26A83B40EE4FF33461E42473CE8C0387460BE2465E314
The apply-xattrs command exits 1 at line 152 with:
AttributeError: module 'os' has no attribute 'setxattr'
Two black-box materialize tests used only a local file URI, synthetic content/identity, empty headers, and a version marker. Both fail during metadata application. An absent destination stays absent; an existing destination keeps its original bytes; no staging files remain. The official helper hash is unchanged.
A separate synthetic-only native NTFS EA prototype passed identity/version, Unicode/empty-value, close/reopen, rename, input-rejection, and failure-protection tests. Independent native readback and native/WSL interoperability checks passed. This demonstrates local feasibility, not an officially supported metadata contract. No real transfer used that prototype; native re-import and a version-preserving cloud roundtrip were not tested.
Could the owning team confirm the supported native-Windows metadata writer/reader contract and provide a corrected distributed helper version? Please route this to the integration owner if it is maintained outside this repository. This report excludes private file IDs, document contents, account details, local user paths, signed URLs, and credentials.
hae4867-eng commentedon Nov 11, 2026
Additional native-Windows reproduction on 2026-11-11 UTC.
os.setxattrandos.getxattrare absent.AttributeError: module 'os' has no attribute 'setxattr'.A separate non-destructive check,
python -c "import os; print(os.setxattr)", reproduces the same AttributeError. No helper modification or metadata bypass was applied. The desktop app version and equivalence with the helper hashes above were not verified in this diagnostic pass.Please provide a supported native-Windows transfer method that preserves and verifies Library metadata, or identify the corrected official helper version.
This report omits private file identifiers, filenames, personal paths, account details, content, URLs containing credentials, and keys.