From 877ee5d163bfc59c84b540b4afeb5bb5d5374f43 Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sun, 8 Nov 2026 18:30:32 -0500 Subject: [PATCH] Leave OpenCode unpinned so the linked brew build tracks latest State the upgrade-on-rebuild behavior at the formula and drop version labels from the rebuild comments. --- configuration.nix | 4 +++- rebuild.sh | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index bcb4260..3a94300 100644 --- a/configuration.nix +++ b/configuration.nix @@ -55,7 +55,9 @@ # connection is configured. { name = "libpq"; link = true; } "node" # required: backpass and acpx are npm globals, not formulae - "opencode" # stable OpenCode 2; the crew harness and the oc2 binary + # Unpinned: onActivation.upgrade refreshes formulae each rebuild, so the + # linked binary tracks the latest opencode release. Crew harness and oc2. + "opencode" "pi-coding-agent" "tea" # Gitea CLI - PRs for firstmate crewmates on unraid.local:3003 "tmux" diff --git a/rebuild.sh b/rebuild.sh index 7cf7a17..9dedd15 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -17,10 +17,10 @@ else fi # Remove retired npm OpenCode installs if an older rebuild installed them: -# the OpenCode 2 beta (@opencode-ai/cli) and the OpenCode 1.x CLI (opencode-ai). -# The stable Homebrew `opencode` formula declared in configuration.nix is now -# the only OpenCode install. Local check only, so an offline rebuild skips this -# instead of failing. +# the `@opencode-ai/cli` beta and the older `opencode-ai` CLI. The Homebrew +# `opencode` formula declared in configuration.nix is now the only OpenCode +# install, unpinned so it tracks the latest release. Local check only, so an +# offline rebuild skips this instead of failing. NPM=/opt/homebrew/bin/npm if [ -x "$NPM" ] && npm_root="$("$NPM" root -g 2>/dev/null)"; then for pkg in @opencode-ai/cli opencode-ai; do