From 57b7daec52bed4fd1d2be23495534820733a288d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 02:12:47 +0000 Subject: [PATCH] fix(flake): make opencode's mcpx-src follow this repo amd's rebuild of main failed in the checkPhase of the mcpx that the opencode fork bundles (mcpx-0.1.0 under opencode-2.0.30+f852201): TestDefaultConfigStdioRunsSupervised reported "supervised child ... still alive after the reap" at supervised_default_test.go:73 after 10.07s. That line and the 10s bound only exist at d3a0db81, the code rev the fork's own flake.lock pins as mcpx-src: the test there sends one terminate scan right after p.Close(), but the pool's detach is asynchronous, so under load the supervisor still has the daemon attached and refuses; nothing kills the child and the test polls out its 10s. Main already fixed the test (#11828: StopSupervisors retries the refusal and returns only once the socket is gone, which the supervisor removes after reaping its child), and the root mcpx built from main passed in the same rebuild. The fix never reached the opencode-bundled mcpx because this flake left mcpx-src to the fork's lock. Follow the root flake instead (`follows = ""`): this repo is mcpx's canonical home, matching the one-source rule the openchamber -> opencode follow already states. The bundled mcpx is now built from the same pkgs/mcpx tree and the same fleet nixpkgs as packages..mcpx, so it is the same derivation and a rebuild builds and tests mcpx once. flake.lock: opencode.inputs.mcpx-src is [] (the root) and the stale mcpx-src node (d3a0db81) is gone; the shape matches what nix writes for an equivalent follows. Co-Authored-By: Claude Opus 5.5 --- flake.lock | 18 +----------------- flake.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index 2b9506e50f..22eebca461 100644 --- a/flake.lock +++ b/flake.lock @@ -1350,22 +1350,6 @@ "type": "github" } }, - "mcpx-src": { - "flake": false, - "locked": { - "lastModified": 1794968769, - "narHash": "sha256-a8f42Y1P0bzJ4PPHpl62bWMfI+z4YMhmBMnpw5g8WFU=", - "owner": "developing-today", - "repo": "code", - "rev": "d3a0db813931cf3eae942f7179ad28c5b33d77e9", - "type": "github" - }, - "original": { - "owner": "developing-today", - "repo": "code", - "type": "github" - } - }, "microvm": { "inputs": { "nixpkgs": "nixpkgs_12", @@ -2279,7 +2263,7 @@ "opencode": { "inputs": { "fleet": "fleet_3", - "mcpx-src": "mcpx-src", + "mcpx-src": [], "nixpkgs": [ "opencode", "fleet", diff --git a/flake.nix b/flake.nix index 204e0082ac..3faa36381c 100755 --- a/flake.nix +++ b/flake.nix @@ -287,8 +287,21 @@ rec { # }; nixos-hardware.url = "github:nixos/nixos-hardware"; # ?shallow=1"; # OpenCode 2.x line: developing-today's fork, carrying the model-routing work; the default branch tracks it. + # Its mcpx-src input follows THIS flake (`""` is the root flake): + # this repo is mcpx's canonical home (pkgs/mcpx), so there is ONE + # mcpx source in this flake graph, the same rule the openchamber + # follow below states for opencode. Left to the fork's own lock, + # the opencode-bundled mcpx was built from whatever code rev that + # lock last pinned (d3a0db81), so a fix landed here never reached + # amd until someone re-locked the fork: amd's rebuild failed on a + # pool test (TestDefaultConfigStdioRunsSupervised) that main had + # already fixed. Following the root also makes the bundled mcpx + # the same derivation as packages..mcpx (same pkgs/mcpx + # tree, same fleet nixpkgs), so a rebuild builds and tests mcpx + # once instead of twice. opencode = { url = "github:developing-today-forks/opencode"; + inputs.mcpx-src.follows = ""; }; # OpenChamber. Its opencode input follows this flake's # `opencode` above: there is ONE opencode source in this flake