Repository navigation
fix(mcpx): Codex follow-up for #1870 — real daemon socket for plugins, absolute discovery paths - #2488
Conversation
…iscovery paths (#1870) P1: augmentPlugins handed plugins Paths.Socket, the un-keyed default, while CmdDaemon listens on a config-keyed socket and inlineDaemon on a private one. App now records daemonSocket where each is resolved and plugins receive that. P2: discovery kept relative paths.plugins entries relative, so a plugin command was resolved again from inside its own Cwd. Discovery now absolutizes search directories and PATH entries. Regression tests for both.
|
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 15 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. Comment |
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. |
Follow-up to #1870 / PR #2481 — the two Codex findings on #2481, fixed.
PR #2481 was merged (9252bb2) while these fixes were being prepared, so they land as their own PR rather than on the merged branch. Both findings were valid:
augmentPluginshanded pluginsPaths.Socket, the un-keyed default, whileCmdDaemonlistens on a config-keyed socket andinlineDaemonon a private one — a plugin'sMCPX_SOCKETback-channel would have reached the wrong daemon or none.Appnow recordsdaemonSocketwhere each socket is resolved (root.go, connect.go) and plugins receive that, falling back toPaths.Socketonly when no daemon socket was recorded.paths.pluginsentries relative, so a discovered command was resolved a second time from inside the plugin's ownCwd. Discovery now absolutizes search directories and PATH entries before deriving commands/dirs.Regression tests for both (relative-directory discovery yields absolute command/dir/cwd; augment uses the recorded daemon socket over the Paths default). Laptop:
go test ./internal/plugin/ ./internal/cli/pass.Need help on this PR? Tag
@codesmith-botwith what you need.