Files
shopify-ai-backup/opencode/packages/opencode
southseact-3d a0eb6408f1 fix: mergeDeep only accepts 2 arguments - chain calls to fix CLI crash
Fixes remeda mergeDeep error that was causing all OpenCode CLI commands
to fail with 'Wrong number of arguments' before processing any messages.

The bug was introduced in commit 2536784 where providerPreference support
was added, passing 3 arguments to mergeDeep which only accepts 2.

Changed from:
  mergeDeep(A, B, C)
To:
  mergeDeep(mergeDeep(A, B), C)

This preserves the provider preference functionality while fixing the crash.
2026-02-19 15:50:39 +00:00
..

js

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.