From 4a5c431bff68aefbb479bf6ca993377e0a75fbed Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Thu, 24 Sep 2026 13:34:54 +0200 Subject: [PATCH] revert(opencode): stay on v1 line (1.18.32) due to v2 config issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit opencode2 had config compatibility problems with m3ta-home's programs.opencode settings. Pin top-level opencode to llm-agents' v1 package (1.18.32) instead — still newer than nixpkgs' 1.18.30. opencode-desktop pin (1.18.32 from llm-agents) unchanged. --- overlays/default.nix | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/overlays/default.nix b/overlays/default.nix index 94ae32f..733a4f3 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -31,22 +31,10 @@ # (github:anomalyco/opencode, v1 line), which would clobber a pin placed # in `modifications`. ai-agents = final: _prev: { - # OpenCode TUI: nixpkgs' top-level `opencode` still tracks the v1 line - # (1.18.x) and llm-agents' shared-nixpkgs overlay namespaces everything - # under `pkgs.llm-agents.*` by design. Expose the v2 CLI (npm - # @opencode/cli latest) under the canonical top-level attribute so - # home-manager's programs.opencode and m3ta-home pick it up. Upstream - # installs the binary as `opencode2` (so v1/v2 can coexist in the - # llm-agents package set) — rename it back to `opencode` to keep - # keybinds, aliases, and wrappers working. - opencode = final.symlinkJoin { - name = "opencode-${final.llm-agents.opencode2.version}"; - paths = [final.llm-agents.opencode2]; - postBuild = '' - mv $out/bin/opencode2 $out/bin/opencode - ''; - meta = (final.llm-agents.opencode2.meta or {}) // {mainProgram = "opencode";}; - }; + # OpenCode TUI: stay on the v1 line (1.18.x) — v2 (opencode2) had config + # compatibility problems with m3ta-home's settings. llm-agents tracks + # the newest v1 release (1.18.32), ahead of nixpkgs' 1.18.30. + opencode = final.llm-agents.opencode; # OpenCode Desktop: no v2 desktop app exists upstream (anomalyco/opencode # ends at v1.18.32); track the newest v1 release from llm-agents instead