Plugin container - docker network issues on macos#165
Conversation
internal-network reachability
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Greptile SummaryThis PR updates Plugin MCP container networking and shutdown behavior. The main changes are:
Confidence Score: 5/5This looks safe to merge. No blocking issues found in the changed code.
What T-Rex did
Important Files Changed
Reviews (4): Last reviewed commit: "fix e2e tests" | Re-trigger Greptile |
network_isolation flag in brain3.yaml
| let container_directory = entry | ||
| .container_directory | ||
| .unwrap_or_else(|| DEFAULT_CONTAINER_DIRECTORY.into()); | ||
| let network_name = required_string(entry.network, "network")?; |
There was a problem hiding this comment.
Existing Plugin Networks Missing
When an upgraded brain3.yaml plugin entry does not have the new network field, this required check rejects only that entry and the gateway continues without its plugin client. Previously working plugin tools can disappear after upgrade instead of getting a migrated network name or a startup error that stops the bad config.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| } | ||
|
|
||
| let runtime = parse_runtime(&required_string(entry.platform, "platform")?)?; | ||
| let network_isolation = entry.network_isolation.unwrap_or(true); | ||
| validate_plugin_network_isolation_support(runtime, network_isolation)?; |
There was a problem hiding this comment.
On macOS, an existing platform: docker plugin that omits the new network_isolation field defaults to true and then fails this validation path. The loader skips that plugin while the gateway keeps running, so its tools disappear unless the user discovers and adds network_isolation: false.
No description provided.