GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — mcpx: fingerprint generated operations and reject stale plugin tables by dezren39 · Pull Request #5320 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 36 minutes. View limit details
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b458563e6
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| */ | ||
| readonly ops: DaemonOps = new DaemonOps((path, init) => this.raw(path, init)); | ||
| private async operationFetch(path: string, init: RequestInit): Promise<Response> { | ||
| await this.assertOperationCompatibility(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Update existing operation-test fakes for the health handshake
The shared fake in plugin/opencode/mcpx/ops.test.ts forwards every request to the operation-specific reply callback, so the new /v1/health request receives responses without a fingerprint, non-JSON text, or an error status. Consequently, the existing generated-operation and DaemonClient.exec tests reject before reaching the operations they exercise. Their seen[0] assertions also assume there is no preceding health request. Update that fake to answer fingerprinted health requests separately from operation recording; otherwise the full plugin suite invoked by .github/workflows/mcpx.yml fails despite the new compatibility tests passing.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| constructor(readonly target: Target) { | ||
| this.ops = new DaemonOps((path, init) => this.operationFetch(path, init)); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Synchronize the dogfood plugin with the updated client
The repository's active .opencode/plugin/mcpx-session.ts imports ./mcpx/daemon.ts, but this commit updates only the packaged copy. The two client files were identical before this commit; the dogfood copy still sends generated operations directly through raw() and has no fingerprint check, so the repository's own plugin does not receive the stale-table protection introduced here. Synchronize the changed client, generated table, and tests into .opencode/plugin/mcpx; the existing copy-synchronization step in .github/workflows/mcpx.yml also rejects this divergence.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The generated-operation fakes in ops.test.ts forwarded /v1/health to the operation reply callback, so every client.ops and exec test stopped at the new fingerprint check. Answer the handshake separately and keep it out of the recorded requests. Sync the dogfood copy under .opencode/plugin/mcpx, which the mcpx workflow's plugin-sync guard diffs against the packaged plugin.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.