GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Oct 18, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
Muse Sweep
fix(mcpx): refuse recipe @PARAM holes in mcpx run, point at recipes r…
d00e61b
…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.
@dezren39
dezren39 requested a review from a team as a code owner October 18, 2026 11:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot assigned dezren39 Oct 18, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Review in Change Stack →

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 584d869 into main Oct 18, 2026
15 of 16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the creator/276-recipe-holes branch October 18, 2026 11:27
@dezren39 dezren39 mentioned this pull request Oct 18, 2026
mcpx: TestTerminateOrphanedSessionEndsTheUpstreamSession flakes in the Nix build (0 DELETEs) and hides its own failure reason #290
Closed
4 tasks
@dezren39 dezren39 mentioned this pull request Oct 30, 2026
mcpx testing: a failing-first test for every bug, and a review of recent fixes #1969
Closed
3 tasks
This was referenced Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
AUDIT-7 Lane 2 — Closed-Issues Review (past month, since 2026-10-23) #13878
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

mcpx: run fails on scripts with @param holes instead of pointing at recipes run

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.