Repository navigation
fix(records): list artifact paths with POSIX separators - #18
Merged
Merged
Conversation
GET runs/:id/artifacts built every path with the host separator, so on Windows the Web artifact tree saw one flat file named data\big-3mb.jsonl instead of a data folder. Normalize the listed relative path to "/" so the listing is a portable contract and matches what files/* already accepts. The Web tree also splits on either separator, for daemons and cluster workers still running an older build, and each tree row carries a title so a truncated long name stays readable on hover.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
GET runs/:id/artifactsbuilt every listed path with the host separator, so on Windows the Web artifact tree saw one flat file nameddata\big-3mb.jsonlinstead of adatafolder, and the reported nested directories (reports/2026/...) never appeared.The listed relative path is now normalized to
/, which makes the listing a portable contract and matches whatfiles/*already accepts. The Web tree also splits on either separator, for daemons and cluster workers still running an older build, and each tree row carries atitleso a truncated long name stays readable on hover.Validation
Checked in Chrome against a daemon running the patched listing on Windows: run
c3e5a7now shows a collapsibledata / plots / reports / 2026 / 11 / deep / nestedtree, every row has the full path intitle, and opening the deep JSON shows the full path in the preview toolbar.New test in
packages/orbit/test/records.test.ts("lists artifacts with portable separators") writesreports/2026/run.csvandtop.jsonand asserts the listing is["reports/2026/run.csv", "top.json"]with no backslash anywhere.pnpm verifypasses on CI (ubuntu-24.04 / Node 24.18): https://github.com/zjunlp/Orbit/actions/runs/45004250181/job/137152201632/procand no Docker, so the daemon suite is CI-only).docs/design.mdnow states that the artifactpathis host-independent and/-separated