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
desktop: file card in chat 404s with "File not found" for files in subfolders #50881
Clicking a file card in the chat fails with «не удалось открыть файл: file not found».
The client requests only the file name (GET /api/fs/read/start.cmd) while the server
resolves relative paths against the user's home directory, so any file that does not
live directly in the home folder returns 404.
Two mismatches: (1) the card sends only the base name; (2) relative fs/read paths resolve
from the home directory instead of the project/session directory.
Workspace is not a git repo; worktree discovery failed ... DirectoryUnavailableError
warnings appear in the log (probably unrelated).
Workaround: hard link at C:\Users\<user>\start.cmd → real file, so the base-name
request resolves and the card opens (verified 200 afterwards). Masks the bug, not a fix.
Duplicate of #50880 — same reporter, same reproduction; this one was opened four minutes later with an identical body, so it can be closed in favour of #50880.
For whoever picks this up, on v2 the click path is packages/app/src/session/files/open-artifact.tsx: ArtifactOpener.open() → resolve(href, base) → resolveArtifactPath(base ?? "", href) (packages/app/src/workspaces/files/artifact.ts). A bare basename resolves against the workspace root, so start.cmd becomes start.cmd and /api/fs/read/start.cmd 404s when the file actually lives in a subfolder; openTab() only creates a tab when file.get(path)?.loaded is true, so the failure surfaces as a generic error with no fallback lookup.
Thanks for the report. We're tracking this same file-card opening problem in #50880, so I'm closing this as a duplicate. Please follow that issue for updates.
Activity
argszero commentedon Sep 23, 2026
Duplicate of #50880 — same reporter, same reproduction; this one was opened four minutes later with an identical body, so it can be closed in favour of #50880.
For whoever picks this up, on
v2the click path ispackages/app/src/session/files/open-artifact.tsx:ArtifactOpener.open()→resolve(href, base)→resolveArtifactPath(base ?? "", href)(packages/app/src/workspaces/files/artifact.ts). A bare basename resolves against the workspace root, sostart.cmdbecomesstart.cmdand/api/fs/read/start.cmd404s when the file actually lives in a subfolder;openTab()only creates a tab whenfile.get(path)?.loadedis true, so the failure surfaces as a generic error with no fallback lookup.neriousy commentedon Oct 20, 2026
Thanks for the report. We're tracking this same file-card opening problem in #50880, so I'm closing this as a duplicate. Please follow that issue for updates.