anomalyco / anomalyco/opencode
Windows archive extraction fails for paths containing apostrophes or wildcard characters
@Hona is already working on this.
Since Aug 17, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
On Windows, extractZip interpolates the archive and destination paths into a PowerShell command using single-quoted strings.
A valid path containing an apostrophe breaks the quoted command. Additionally, Expand-Archive -Path interprets characters such as [ and ] as wildcard syntax.
As a result, LSP installation can fail when the user profile, temporary directory, archive name, or destination path contains these characters.
Expected: archive and destination paths are passed to PowerShell literally.
Actual: Expand-Archive exits with an argument parsing or archive-not-found error.
Plugins
None
OpenCode version
dev at 4d68d30b4 (packages/opencode 1.18.18)
Steps to reproduce
- On Windows, create a valid ZIP file named
archive's [copy].zip. - Call
Archive.extractZip()with that archive and a destination such asdestination's [copy]. - Observe that PowerShell fails to parse or locate the archive path.
This also affects LSP installers that use Archive.extractZip().
Screenshot and/or share link
N/A
Operating System
Windows (win32)
Terminal
Windows PowerShell (powershell.exe)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.