Repository navigation
Name the plugin resource in cmux-tui plugin validation errors - #15769
lawrencecchen wants to merge 3 commits into
Conversation
The sidebar assertion has failed on main since #13299 renamed the field to the generic "plugin". This adds the agent plugin case. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#13299 generalized the plugin manager to agent plugins and changed the validation field for the selected plugin from sidebar_plugin to plugin. That broke the resource contract the spec and resource_cli_v2 pin, and left SDK callers unable to tell which plugin kind failed. The field is now the kind's resource noun: sidebar_plugin or agent_plugin. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughPlugin validation errors now use kind-specific fields for sidebar and agent plugins. The test suite checks the error code and field for an invalid agent-plugin selection. ChangesPlugin validation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Invalid plugin selections now identify the relevant plugin kind without changing error codes or command exit behavior. No actionable merge-blocking risk remains. Architecture SummaryArchitecture risk: 🟡 Medium · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
Reliability and maintainability
🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
local_plugin_jsonl_never_connects_to_the_session_sockethas failed on main since #13299 (2026-09-23), which generalized the plugin manager to agent plugins and changed thevalidation.invalidfield for the selected plugin fromsidebar_plugintoplugin. The resource spec names the operationssidebar_plugin.*, the test pinssidebar_plugin, and a genericplugindoes not tell an SDK caller which plugin kind failed.The field is now the kind's resource noun from one
PluginKind::resource_field():sidebar_pluginforcmux sidebar plugin,agent_pluginforcmux agent plugin. All five call sites (resolve, update source checks) use it.Red. Commit 1 adds an
agent plugin use Badassertion. Hosted focused run https://github.com/manaflow-ai/cmux/actions/runs/36649264948 (attempt 2) fails on Linux and macOS withleft: String("plugin") right: "sidebar_plugin".Green. Same
--filterat56185937a84: https://github.com/manaflow-ai/cmux/actions/runs/36651694025 passes on Linux and macOS, with lint (rustfmt, clippy) and MSRV 1.91 green. The first fix commit failed only rustfmt; the style commit applies rustfmt's layout.Found while gating #15512, whose full cmux-tui gate hit this test. A second, unrelated red test on main (
topology_close_commit_failure_leaves_every_projection_live_and_fences_replayin cmux-tui-core) is not addressed here.Changelog
Fixed:
cmux sidebar pluginandcmux agent pluginvalidation errors name the plugin resource (sidebar_pluginoragent_plugin) again.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes plugin validation errors so they name the plugin resource instead of the generic
plugin.validation.invalidfield waspluginfor all kinds, which broke the resource spec contract and left SDK callers unable to tell which plugin kind failed.PluginKind::resource_field():sidebar_pluginforcmux sidebar plugin,agent_pluginforcmux agent plugin, used at all five validation call sites.agent plugin use Badtest assertion to pin the agent field.Written for commit 5618593. Summary will update on new commits.
Summary by CodeRabbit
agent_plugin, making the reported issue clearer.