Repository navigation
Keep both files in Download all when Windows treats their names as one - #457
Merged
abhishekgahlot2 merged 1 commit intoNov 24, 2026
Merged
Conversation
Compare bundle names the way Windows resolves them: ignore trailing dots and spaces, and treat the characters Windows does not allow in a name like an underscore, since unzip tools replace them. The ZIP keeps each file's spelling; only the second name of a colliding pair gets a suffix. Closes useagenthq#402
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
I have read the CLA Document and I hereby sign the CLA |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Contributor
Author
|
recheck |
|
Thanks @leninworld, merged. Download all now keeps both files when Windows would treat their names as the same one. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Closes #402
What changed
< > : " | ? *and_as the same character, since unzip tools replace the characters Windows does not allow.(2)suffix.Testing
buildArtifactBundlewith the pairs from the issue:report,report.report,report.(one file on Windows)report,report (2).a:b.txt,a?b.txta:b.txt,a?b.txt(both becomea_b.txt)a:b.txt,a?b (2).txta_b.txt,a:b.txta_b.txt,a:b.txt(both becomea_b.txt)a_b.txt,a:b (2).txtas, then 254as +bas + a trailing space, one file on Windowsas, 251as +(2)cd packages/artifact-formats && bun test: 46 pass, 0 fail. The four new tests fail on main (42 pass, 4 fail). One of them loops over all seven characters.*makes the matching test fail again.bunx -p typescript@5.9.3 tsc --noEmitinpackages/artifact-formatsandbun test scripts/agent-docs.test.ts: pass.Not checked: I have no Windows machine, so the result was not unzipped on Windows. An unzip tool that drops the invalid characters instead of replacing them, and reserved names such as
CON, are not covered. I did not run the rootbun run typecheck(it needs the frontend and backend installs) orbackend/test/artifacts.test.ts(it needs a Postgres test database). The package API and types are unchanged.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.