Skip to content

feat: add unified integrations and OpenCode - #69

Merged
DevVig merged 1 commit into
mainfrom
feat/integrations-opencode
Jul 20, 2026
Merged

DevVig merged 1 commit into
mainfrom
feat/integrations-opencode

Conversation

@DevVig

@DevVig DevVig commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • rename the user-facing Adapters surface to Integrations and group every supported host by connected vs not connected
  • distinguish ChatGPT and Claude Desktop from Codex CLI and Claude Code in session attribution and app focus matching
  • add an opt-in, bundled OpenCode plugin using official lifecycle events and exact-session interrupt
  • document install, privacy, architecture, and integration behavior

Verification

  • cargo test --workspace (76 passed)
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo 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 warnings
  • npm test -- --run (9 passed)
  • npm run build
  • OpenCode/Cursor Node tests (6 passed)
  • debug macOS .app bundle built and OpenCode resource verified
  • CodeRabbit CLI review: 0 issues

Copilot AI review requested due to automatic review settings July 20, 2026 22:26
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 24 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 15699fbc-7b0c-41ec-9447-007817b2967b

📥 Commits

Reviewing files that changed from the base of the PR and between f936330 and cc541d3.

📒 Files selected for processing (24)
  • INSTALL.md
  • PRIVACY.md
  • README.md
  • adapters/README.md
  • adapters/cursor/README.md
  • adapters/factory/README.md
  • adapters/opencode/README.md
  • adapters/opencode/microbridge.mjs
  • adapters/opencode/microbridge.test.mjs
  • adapters/t3code/README.md
  • adapters/t3code/index.mjs
  • apps/microbridge-ui/README.md
  • apps/microbridge-ui/src-tauri/src/lib.rs
  • apps/microbridge-ui/src-tauri/tauri.conf.json
  • apps/microbridge-ui/src/App.tsx
  • apps/microbridge-ui/src/lib/bus.ts
  • apps/microbridge-ui/src/surfaces/Settings.tsx
  • apps/microbridge-ui/src/surfaces/surfaces.test.tsx
  • crates/mb-adapters/src/codex.rs
  • crates/mb-protocol/src/lib.rs
  • crates/microbridged/src/app_match.rs
  • crates/microbridged/src/state.rs
  • docs/architecture.md
  • docs/design/README.md

Comment @coderabbitai help to get the list of available commands.

@DevVig
DevVig merged commit 5620497 into main Jul 20, 2026
7 of 8 checks passed
@DevVig
DevVig deleted the feat/integrations-opencode branch July 20, 2026 22:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +643 to +645
{[...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(),
Comment thread adapters/t3code/index.mjs
#!/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.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants