Skip to content

mcpx: register --remote-file in exec-flag coverage contract + regenerate flag index (follow-up to #8019) - #8020

Merged
dezren39 merged 1 commit into
mainfrom
fix/2168-remote-file-flag-coverage
Nov 9, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/2168-remote-file-flag-coverage

Conversation

@dezren39

@dezren39 dezren39 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Follow-up to PR #8019 (#2168), from lane code-w task 14339's post-merge re-verification.

Problem

The merged --remote-file flag was never registered in the exec-flag coverage contract (#2188), so two internal/cli guards fail on current main:

  • TestExecFlagSetIsFullyProbed: exec --remote-file and run --remote-file are hand-written flags with no probe row and no exemption.
  • TestHandFlagIndexIsCurrent: flagindex_generated.go is stale (missing the new flag).

Fix

  • execflagcoverage.go: reasoned exemption for remote-file. The probe guard's rows pass inline source, which --remote-file refuses by design, so a with/without inline row can observe only the refusal, never the daemon-side resolution. The resolution itself is covered in internal/scriptresolve, internal/execsvc (resolve_test.go), and internal/daemon.
  • flagindex_generated.go: regenerated via go test ./internal/cli/ -run TestHandFlagIndexIsCurrent -update (+2 lines: exec/run remote-file).

Verification (laptop, this branch; logs read back from disk)


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • New Features
    • Added the --remote-file option to exec and run, allowing a script name to be resolved using the remote daemon’s script search path.

@dezren39
dezren39 requested a review from a team as a code owner November 9, 2026 09:40
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T09:40:33.790871Z
We couldn’t complete this review. Comment @codex review to try again.
a99ea26 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.

@chatgpt-codex-connector

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.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The CLI flag index now documents --remote-file for exec and run. The flag coverage exemptions note that inline-source probes do not cover named-script search-path resolution.

Changes: Remote-file flag index

Layer / File(s) Summary
Flag documentation and coverage
pkgs/mcpx/internal/cli/flagindex_generated.go, pkgs/mcpx/internal/cli/execflagcoverage.go
The exec and run flag entries describe daemon-side script-name resolution with --remote. The coverage exemption notes the inline-source probe limitation and identifies tests that cover this behavior.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to a99ea

The flag documentation and coverage exemption match the implemented behavior. No merge-blocking defect is established; the suggested forwarding test can follow separately.

- [ ] 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

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Codex gate disposition (follow-up to task 14339, lane code-w): the Codex review activity on this PR is the usage-limits failure summary (same fleet-wide state as PR #8019); there are zero inline review findings or threads to disposition. Merge proceeds on local verification read back from disk logs: go build ./... pass, go test ./internal/cli/ ok (28.4s), e2e probe-match test ok.

@dezren39
dezren39 merged commit 9040603 into main Nov 9, 2026
2 of 6 checks passed
@dezren39
dezren39 deleted the fix/2168-remote-file-flag-coverage branch November 9, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant