You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Windows chat image previews fail on an exFAT USB drive when realpath.native returns ENOENT #42966
I searched existing issues and did not find a duplicate.
I included steps to reproduce and diagnostic results.
Area
Windows desktop / server media assets
Steps to reproduce
On Windows, connect an exFAT USB drive and save a small valid JPG as U:/preview-test.jpg (substitute your drive letter).
In a T3 Code desktop thread in the local environment, have the assistant embed the file by absolute path: .
Check the chat preview. For comparison, copy the same JPG to a local C: folder and embed that copy using its absolute path.
Expected behavior
A readable JPG on the attached drive displays inline.
Actual behavior
The existing JPGs on my U: drive show Image unavailable. Windows can read them. The server trace reports AssetWorkspaceAssetNotFoundError: Media file was not found. in AssetAccess.finalizeAbsoluteMediaFileAsset during path resolution, before image decoding.
Version and environment
T3 Code desktop 0.1.12, local Windows host, Electron 44.10.1 / bundled Node 24.22.1
Windows 11 Pro x64, build 26300
External USB drive formatted exFAT, mounted as U:
The same asset resolver and Electron version are present in 0.1.13-nightly.20261125.5245 based on source inspection. The Nightly build was not run.
Diagnostic results
With T3's bundled runtime and with standalone Node 24.14.0, the file could be opened and read, and regular fs.realpath succeeded. The Windows native resolver fs.realpath.native returned ENOENT. The bundled runtime also returned ENOENT for the U:\ root. For the same JPG copied to C:, native path resolution passed both inside and outside the project.
A minimal standalone check (substitute the path to an existing JPG):
Observed on the affected drive: is file: true, realpath: OK, realpath.native: ENOENT. This was reproduced on one exFAT drive. I have not tested other removable drives.
The server uses the native resolver for Windows in its filesystem layer. The affected call is in AssetAccess.ts. Related symptom reports #17906, #14261, #14839 and #38088 cover pairing permissions or Markdown path parsing; this request reaches the local server and fails at native path resolution.
Workaround
Keep the originals on the USB drive and use a local C: copy for the review link.
Activity