feat: add unified integrations and OpenCode - #69
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (24)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR renames the user-facing “Adapters” surface to “Integrations”, refines session attribution (ChatGPT vs Codex CLI; Claude Desktop vs Claude Code), and adds a bundled/opt-in OpenCode integration (host plugin) with lifecycle + exact-session interrupt support. It also updates UI grouping/labels and expands docs for install/privacy/architecture to match the new integration model.
Changes:
- Rename “Adapters” → “Integrations” across UI and documentation, and present integrations grouped by connected vs not connected.
- Improve app family matching / attribution to distinguish ChatGPT & Claude Desktop from Codex CLI & Claude Code.
- Add an opt-in bundled OpenCode plugin (resource packaging + installer/remover + Node plugin + tests) using official lifecycle events and session interrupt.
Reviewed changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates top-level product description and terminology (“integrations”), plus OpenCode mention. |
| PRIVACY.md | Renames adapter terminology and documents OpenCode plugin data/behavior. |
| INSTALL.md | Adds OpenCode install/remove instructions and updates Settings navigation to Integrations. |
| docs/design/README.md | Updates settings IA to Integrations and describes connected/not connected grouping. |
| docs/architecture.md | Updates architecture terminology and describes “managed integrations” including OpenCode. |
| crates/microbridged/src/state.rs | Adds OpenCode adapter status/diagnostics and new built-in ChatGPT/Claude Desktop statuses. |
| crates/microbridged/src/app_match.rs | Adds OpenCode family matching and splits ChatGPT vs Codex CLI family matching. |
| crates/mb-protocol/src/lib.rs | Adds default opt-in preference entry for opencode; updates config doc comment. |
| crates/mb-adapters/src/codex.rs | Renames Codex Desktop session label to “ChatGPT” and updates tests. |
| apps/microbridge-ui/src/surfaces/surfaces.test.tsx | Updates Settings tab id/name and expected Integrations UI strings. |
| apps/microbridge-ui/src/surfaces/Settings.tsx | Renames tab and rewrites Integrations rendering (grouped, ordered, relabeled states). |
| apps/microbridge-ui/src/lib/bus.ts | Updates demo snapshot content + error strings; adds OpenCode/ChatGPT/Claude Desktop demo adapters. |
| apps/microbridge-ui/src/App.tsx | Renames settings tab type to integrations. |
| apps/microbridge-ui/src-tauri/tauri.conf.json | Bundles the OpenCode plugin into app resources. |
| apps/microbridge-ui/src-tauri/src/lib.rs | Implements OpenCode plugin install/repair/remove + sync loop + tests. |
| apps/microbridge-ui/README.md | Updates Settings section label to Integrations (+ Updates). |
| adapters/t3code/README.md | Updates user-facing Settings navigation path to Integrations. |
| adapters/t3code/index.mjs | Updates CLI stub error message to say “integration” and Settings path. |
| adapters/README.md | Renames adapter catalog to integration catalog and adds OpenCode entry. |
| adapters/opencode/README.md | Documents the OpenCode integration behavior, install path, and capability limits. |
| adapters/opencode/microbridge.test.mjs | Adds Node tests for OpenCode event/state/title mapping. |
| adapters/opencode/microbridge.mjs | Adds the OpenCode global plugin implementation (socket lifecycle + interrupt routing). |
| adapters/factory/README.md | Updates Settings navigation path to Integrations. |
| adapters/cursor/README.md | Updates Settings navigation path to Integrations. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| {[...group.integrations] | ||
| .sort((left, right) => INTEGRATION_ORDER.indexOf(left.id) - INTEGRATION_ORDER.indexOf(right.id)) | ||
| .map((adapter) => ( |
| } | ||
| } | ||
| }); | ||
| next.on("error", () => {}); |
| "factory" => "Factory is enabled, but no Droid lifecycle event has arrived yet.".into(), | ||
| "opencode" => "OpenCode is enabled, but its integration has not connected yet. Restart OpenCode if it was already running.".into(), | ||
| "cnvs" => "CNVS is enabled and will reconnect automatically when the app is running.".into(), | ||
| _ => "Adapter is offline.".into(), |
| #!/usr/bin/env node | ||
| console.error( | ||
| "The T3 Code adapter is daemon-owned in Microbridge v0.2.1. Enable and pair it in Microbridge Settings → Adapters.", | ||
| "The T3 Code integration is daemon-owned in Microbridge v0.2.1. Enable and pair it in Microbridge Settings → Integrations.", |
Summary
Verification
cargo test --workspace(76 passed)cargo clippy --workspace --all-targets -- -D warningscargo test --manifest-path apps/microbridge-ui/src-tauri/Cargo.toml(4 passed)cargo clippy --manifest-path apps/microbridge-ui/src-tauri/Cargo.toml --all-targets -- -D warningsnpm test -- --run(9 passed)npm run build.appbundle built and OpenCode resource verified