diff options
| author | Brendan Allan <[email protected]> | 2026-03-20 12:58:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-20 14:58:35 +1000 |
| commit | 49896322457eebfe0827052d028545235252d881 (patch) | |
| tree | 53851792e7657981a2b5da89bef7b4936dcacba3 | |
| parent | d460614cd7ad9e047a2792139ea67e16caa82ea7 (diff) | |
| download | opencode-49896322457eebfe0827052d028545235252d881.tar.gz opencode-49896322457eebfe0827052d028545235252d881.zip | |
patch solid to try fix memo undefined under transition bug (#18338)
| -rw-r--r-- | bun.lock | 1 | ||||
| -rw-r--r-- | package.json | 3 | ||||
| -rw-r--r-- | packages/opencode/package.json | 2 | ||||
| -rw-r--r-- | patches/[email protected] | 58 |
4 files changed, 62 insertions, 2 deletions
@@ -586,6 +586,7 @@ ], "patchedDependencies": { "@openrouter/[email protected]": "patches/@openrouter%[email protected]", + "[email protected]": "patches/[email protected]", "@ai-sdk/[email protected]": "patches/@ai-sdk%[email protected]", "@standard-community/[email protected]": "patches/@standard-community%[email protected]", }, diff --git a/package.json b/package.json index 2875b9daa..7ce06896a 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "patchedDependencies": { "@standard-community/[email protected]": "patches/@standard-community%[email protected]", "@openrouter/[email protected]": "patches/@openrouter%[email protected]", - "@ai-sdk/[email protected]": "patches/@ai-sdk%[email protected]" + "@ai-sdk/[email protected]": "patches/@ai-sdk%[email protected]", + "[email protected]": "patches/[email protected]" } } diff --git a/packages/opencode/package.json b/packages/opencode/package.json index d8392901e..3e73a7021 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -89,6 +89,7 @@ "@ai-sdk/xai": "2.0.51", "@aws-sdk/credential-providers": "3.993.0", "@clack/prompts": "1.0.0-alpha.1", + "@effect/platform-node": "catalog:", "@gitlab/gitlab-ai-provider": "3.6.0", "@gitlab/opencode-gitlab-auth": "1.3.3", "@hono/standard-validator": "0.1.5", @@ -104,7 +105,6 @@ "@openrouter/ai-sdk-provider": "1.5.4", "@opentui/core": "0.1.87", "@opentui/solid": "0.1.87", - "@effect/platform-node": "catalog:", "@parcel/watcher": "2.5.1", "@pierre/diffs": "catalog:", "@solid-primitives/event-bus": "1.1.2", diff --git a/patches/[email protected] b/patches/[email protected] new file mode 100644 index 000000000..e4e38c2e6 --- /dev/null +++ b/patches/[email protected] @@ -0,0 +1,58 @@ +diff --git a/Users/brendonovich/github.com/anomalyco/opencode/node_modules/solid-js/.bun-tag-6fcb6b48d6947d2c b/.bun-tag-6fcb6b48d6947d2c +new file mode 100644 +index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 +diff --git a/Users/brendonovich/github.com/anomalyco/opencode/node_modules/solid-js/.bun-tag-b272f631c12927b0 b/.bun-tag-b272f631c12927b0 +new file mode 100644 +index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 +diff --git a/dist/dev.cjs b/dist/dev.cjs +index 7104749486e4361e8c4ee7836a8046582cec7aa1..0501eb1ec5d13b81ecb13a5ac1a82db42502b976 100644 +--- a/dist/dev.cjs ++++ b/dist/dev.cjs +@@ -764,6 +764,8 @@ function runComputation(node, value, time) { + if (node.updatedAt != null && "observers" in node) { + writeSignal(node, nextValue, true); + } else if (Transition && Transition.running && node.pure) { ++ // On first computation during transition, also set committed value #2046 ++ if (!Transition.sources.has(node)) node.value = nextValue; + Transition.sources.add(node); + node.tValue = nextValue; + } else node.value = nextValue; +diff --git a/dist/dev.js b/dist/dev.js +index ea5e4bc2fd4f0b3922a73d9134439529dc81339f..4b3ec07e624d20fdd23d6941a4fdde6d3a78cca3 100644 +--- a/dist/dev.js ++++ b/dist/dev.js +@@ -762,6 +762,8 @@ function runComputation(node, value, time) { + if (node.updatedAt != null && "observers" in node) { + writeSignal(node, nextValue, true); + } else if (Transition && Transition.running && node.pure) { ++ // On first computation during transition, also set committed value #2046 ++ if (!Transition.sources.has(node)) node.value = nextValue; + Transition.sources.add(node); + node.tValue = nextValue; + } else node.value = nextValue; +diff --git a/dist/solid.cjs b/dist/solid.cjs +index 7c133a2b254678a84fd61d719fbeffad766e1331..2f68c99f2698210cc0bac62f074cc8cd3beb2881 100644 +--- a/dist/solid.cjs ++++ b/dist/solid.cjs +@@ -717,6 +717,8 @@ function runComputation(node, value, time) { + if (node.updatedAt != null && "observers" in node) { + writeSignal(node, nextValue, true); + } else if (Transition && Transition.running && node.pure) { ++ // On first computation during transition, also set committed value #2046 ++ if (!Transition.sources.has(node)) node.value = nextValue; + Transition.sources.add(node); + node.tValue = nextValue; + } else node.value = nextValue; +diff --git a/dist/solid.js b/dist/solid.js +index 656fd26e7e5c794aa22df19c2377ff5c0591fc29..f08e9f5a7157c3506e5b6922fe2ef991335a80be 100644 +--- a/dist/solid.js ++++ b/dist/solid.js +@@ -715,6 +715,8 @@ function runComputation(node, value, time) { + if (node.updatedAt != null && "observers" in node) { + writeSignal(node, nextValue, true); + } else if (Transition && Transition.running && node.pure) { ++ // On first computation during transition, also set committed value #2046 ++ if (!Transition.sources.has(node)) node.value = nextValue; + Transition.sources.add(node); + node.tValue = nextValue; + } else node.value = nextValue; |
