Repository navigation
Conversation
|
@NeoDesign is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor screen: passedCommit No hidden characters, dependency, database or obfuscation concerns. Nothing else runs yet. A maintainer reviews the changes then comments |
benjaminshafii
left a comment
There was a problem hiding this comment.
Thanks for this, and for digging into the Windows build. We ran the branch (head 7710179) against its merge-base in fresh Windows and Linux sandboxes. Summary: the sidecar fix is real and we'd like to merge it, but the other changes need to come out first.
Sidecar extraction (prepare-sidecar.mjs): confirmed, please keep
- On the base commit,
pnpm --filter @openwork/desktop prepare:sidecarstarted from PowerShell 7 exits 1 withExpand-Archive : Cannot find an overload for "ExtractToDirectory" and the argument count: "3". From Windows PowerShell 5.1 and cmd it works. - On your branch it exits 0 from PowerShell 7, 5.1 and cmd (fresh, already present, forced re-download), and
opencode.exe --versionruns. - The cause is not a type cast error: the 5.1 child inherits
PSModulePathfrom PowerShell 7 and loads PowerShell 7'sMicrosoft.PowerShell.Archivemodule. Could you update the description and the code comment to say that? LoadWithPartialNameis deprecated; please useAdd-Type -AssemblyName System.IO.Compression.FileSysteminstead.
Node 26 (.nvmrc, .npmrc, root engines): please drop
- Install,
pnpm buildand the server tests already pass on Node 26.13.1 on the base commit, so these changes aren't what makes it work. Removing.npmrcgave the same result. - The
.nvmrcbump fails our baseline-consistency test ('26.13.1'vs'24.22.1'), and CI and the other workspace packages still pin Node 24. - Moving the repo to Node 26 is something we'd do in one change across CI, all packages and the server launcher, which currently refuses anything but Node 24.
Browser tool (openwork-chrome-devtools.ts): please drop
- With this change, inputs that fail the schema are forwarded instead of rejected. In our test a non-URL, 50 actions (limit is 8), an unknown action type with extra fields and a 100,000-character question were all rejected before and forwarded after.
- A later layer still rejects them, but we don't want to remove this check. If you hit a real crash here, please open an issue with the input and the error and we'll fix the cause.
WINDOWS.md and .gitignore are best sent separately too, so this PR is just the one fix. Once it's trimmed to prepare-sidecar.mjs we'll run the tests and merge.
|
Thanks for working on Windows support. A few things block this one: the |
From PowerShell 7 the powershell 5.1 child inherits PSModulePath and loads PowerShell 7's Microsoft.PowerShell.Archive module, so Expand-Archive fails with "Cannot find an overload for ExtractToDirectory". Unzip with .NET ZipFile (Add-Type -AssemblyName System.IO.Compression.FileSystem), clearing a leftover extract folder first. Works from PowerShell 7, Windows PowerShell 5.1 and cmd. Port of different-ai#7436, sidecar fix only, as the maintainers asked (no Node 26 bump, .npmrc, WINDOWS.md or browser tool change). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7710179 to
e7281bf
Compare
|
@reachjalil @benjaminshafii Thanks for the clear feedback and review! I've narrowed the PR down to |
Summary
Fixes
pnpm --filter @openwork/desktop prepare:sidecarfailing on Windows when invoked in a PowerShell 7 environment.Details
PSModulePathfrom PowerShell 7 and load PowerShell 7'sMicrosoft.PowerShell.Archivemodule, causingExpand-Archiveto fail onExtractToDirectory.apps/desktop/scripts/prepare-sidecar.mjsonwin32to loadSystem.IO.Compression.FileSystemviaAdd-Typeand extract the archive with[System.IO.Compression.ZipFile]::ExtractToDirectory.Verification
pnpm --filter @openwork/desktop prepare:sidecaron Windows with exit code0.