GeezerVison is showing github.com — feat(opencode): wrap the cascade build in the consumer config by developing-today[bot] · Pull Request #5077 · developing-today/code
Conversation
developing-today
Bot
commented
Nov 3, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements Drew's ruling on the bin/opencode collision (option A, 2026-11-03). His constraint on the shape, from settling the cascade: "Just enable openchamber and take that one" — so the consumer config keeps services.openchamber.enable = true; untouched and gains exactly one line, services.opencode.package = opencodeWrapped;. No fork changes, no new module options.
Mechanism (home/common/default.nix only)
opencodeCascade (new let binding) = inputs.openchamber.inputs.opencode.packages.${system}.opencode — openchamber's nested opencode input, i.e. exactly the derivation services.opencode.package defaults to (the fork's module wrapper mkDefaults the fork flake's own packages.<system>.opencode).
opencodeWrapper = the former home.packages entry (writeShellScriptBin "opencode"), moved verbatim — Cloudflare/Jules env top-ups, stamp-gated sync-models kick — with ONE change: it execs ${opencodeCascade}/bin/opencode instead of the root input's build.
opencodeWrapped = symlinkJoin over the cascade package, postBuild replacing bin/opencode with the wrapper. The rest of the tree rides along untouched — above all bin/mcpx, the symlink to the cascade mcpx that the home profile: bin/mcpx collision between fork opencode package and standalone mcpx blocks cascade deploy #5027 settlement relies on (the opencode2 alias resolves through bin/opencode as it always did, so it now reaches the wrapper too).
- The wrapper's
home.packages entry is removed (a comment marks the spot). The fork module contributes home.packages = [ cfg.package ], so the wrapped derivation is the profile's one bin/opencode provider.
Base: bca5683bf (main has since advanced by commits that touch nothing under home/common/).
Evidence (at this base; pins: openchamber e1e8bc3d, nested opencode 12acd9f2)
- No-override eval:
services.opencode.package = /nix/store/4n4b0zcik9bfy9xmw07ipja37m1f3rxs-opencode-2.0.30+12acd9f; the nested-input expression evaluates to the identical path.
- With the override:
services.opencode.package = /nix/store/zmh369qk3sg65w0vb6nsb2rg0p1263zs-opencode-2.0.30+12acd9f-wrapped, and the unit's ExecStart is that path + serve --service --hostname 127.0.0.1 --port 13420.
- Built wrapped tree:
bin/opencode is the wrapper script and its exec line is the cascade path above (the no-override default — equality, not approximation); bin/mcpx -> /nix/store/bylp1b5dhw9jh7c1jmwif1gl90648yc0-mcpx-0.1.0/bin/mcpx.
home.packages census, before -> after: 456 -> 455 entries; the set difference is exactly {-cascade package, -standalone wrapper, +wrapped}.
home.activationPackage builds GREEN, home-manager-path included; the built generation's profile links bin/opencode and bin/mcpx into the wrapped package, and its opencode.service ExecStart is the wrapped path. At this base the chain's services.mcpx.addPackageToProfile = false (PR feat(mcpx): ride cascade pins up; laptop profile takes opencode bin/mcpx #5074) is already in, so this was the last collision in the profile — the generation that died in deploy rounds 1-2 now builds.
Behavior deltas
- The wrapper's env top-ups now also run on service starts:
JULES_API_KEY reaches the server process for the first time (server-spawned mcp.jules children can resolve {env:JULES_API_KEY}); the Cloudflare block is a no-op there (the systemd manager env already sets the token, and the wrapper only fills when unset). The stamp-gated sync kick can likewise fire on a service start — same once-a-day stamp, detached and silenced, as CLI launches today; the daily sync-models timer is unchanged.
- CLI/service skew eliminated: the CLI was the root input's build (2.0.30+d66c71f) while the service ran the cascade build; both are now the cascade build (2.0.30+12acd9f at these pins).
Closes #5038.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The consumer takes exactly one opencode: services.opencode.package is the cascade build (openchamber's nested opencode input -- the derivation the module mkDefaults) with Drew's wrapper baked in as bin/opencode via symlinkJoin, so the systemd user service and the home profile share one derivation and bin/mcpx rides along in its tree. The wrapper script is unchanged except its exec target (the cascade build, not the root opencode input -- a second fork build); it leaves home.packages, where it collided with the cascade package on bin/opencode. Drew's ruling, 2026-11-03; code#5038, option A.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5694647c-652a-4d75-a645-03d8d7fe23c7
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
CodeRabbit Verify
- Run CodeRabbit Verify to test the changes in this pull request.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
dezren39
Awaiting requested review from dezren39
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|