GeezerVison is showing github.com — fix(mcpx): refuse recipe @param holes in mcpx run, point at recipes run (#276) by dezren39 · Pull Request #277 · developing-today/code
Conversation
dezren39
commented
Oct 18, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #276
Port of dezren39/nix PR #382 (the run half of dezren39/darwin-nix#367), verified present in this repo's pkgs/mcpx copy by reproducing the failure on main 410275d: mcpx run greet on a recipe declaring @param name died with SyntaxError: Expression expected at the hole.
Change
runScript (internal/cli/commands.go) calls refuseRecipeHoles on the non-inline path, before either the local or daemon run path hands the file to a runtime.
- internal/cli/scripts.go gains the check: a head-only
@param declaration match (declaresParams), recipes.Parse for the placeholder list, and onScriptPath to choose the guidance — mcpx recipes run <name> hole=<value>... on the script path, mcpx recipes save + recipes run for a path-addressed file off it. Unresolvable/unreadable scripts are left to the run's own error paths.
- Tests ported (issue refs re-pointed to mcpx: run fails on scripts with @param holes instead of pointing at recipes run #276):
internal/cli/recipe_holes_test.go (refusal + message contents, plain scripts incl. bare @name untouched, off-path save guidance, missing name left alone) and e2e TestRunOnARecipePointsToRecipesRun.
Verification
- Full
go test ./internal/cli/ green; new unit tests 4/4; new e2e test passes (2.3s); go build ./... clean; go vet clean on the touched packages.
- Built binary, end to end:
mcpx run greet now prints greet is a recipe, not a plain script: it declares @param holes (name) ... Run it with: mcpx recipes run greet name=<value> and a plain script still runs (plain ok).
- Changed files are gofmt-clean (the two gofmt listings in internal/cli, consumer.go/manual.go, are pre-existing on main and untouched).
Summary by CodeRabbit
- Bug Fixes
- Running a script with unfilled recipe parameters now stops with a clear error listing the missing values and guidance for running or saving the recipe.
- Plain scripts and unresolved parameter references continue through the usual execution flow.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…un (#276)
Port of dezren39/nix PR #382 (run half of nix#367): runScript now calls
refuseRecipeHoles for the non-inline path; scripts.go gains the head-only
@PARAM declaration check plus recipes.Parse placeholder listing. A recipe
on the script path is pointed at 'mcpx recipes run <name> hole=<value>...';
a path-addressed recipe off the path is pointed at recipes save + run.
Plain scripts (incl. bare @name with no @PARAM declaration) and
unresolvable names are untouched.
Verified: reproduced the raw SyntaxError on main 410275d; new unit tests
4/4, full internal/cli suite green, new e2e TestRunOnARecipePointsToRecipesRun
passes, go build ./... clean; built binary refuses greet with the recipes
run command while a plain script still runs.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
⚠️ Failed 2026-10-18T11:25:03.903885Z |
d00e61b |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Note Currently processing new changes in this PR. This may take a few minutes, please wait...
⚙️ Run configuration
-
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
94191399-5602-4b55-be61-d3d613881813
📥 Commits
-
Reviewing files that changed from the base of the PR and between 410275d and d00e61b.
📒 Files selected for processing: 4
-
pkgs/mcpx/internal/cli/commands.go
pkgs/mcpx/internal/cli/recipe_holes_test.go
pkgs/mcpx/internal/cli/scripts.go
pkgs/mcpx/internal/e2e/consumer_test.go
+--------------------------------+
| Goodbye, diff induced despair. |
+--------------------------------+
\
\ (\__/)
(•ㅅ•)
/ づ
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
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.
This was referenced Nov 21, 2026
Uh oh!
There was an error while loading. Please reload this page.
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.
|