Commit Graph
2 Commits
Author SHA1 Message Date
fatbee0808 5a01ce11cd test(workspace): cover Windows backslash artifact open paths
openArtifactPath/_workspacePathExists split on '/' but Windows artifact
paths arrive as backslash absolute paths. Regression tests drive the real
functions from static/workspace.js via node (mirroring
test_issue3262_artifact_path_canonicalization.py): backslash subdir and
root artifacts must open, POSIX relative clicks must keep working, and a
genuinely missing artifact must still surface file_open_failed.
2026-08-05 11:26:27 +08:00
fatbee0808 71ee457d7d fix(workspace): normalize backslash paths in artifact open flow
openArtifactPath/_workspacePathExists split on '/' but Windows artifact
paths use backslashes (D:\workspace\dir\file), so prefix-strip failed
and /api/list existence check never matched -> 'cannot open file'.
Normalize both rel and workspace to '/' before stripping.
2026-08-05 11:06:12 +08:00