Skip to content

feat(opencode): add Mobile Dev for OpenCode Desktop - #160

Draft
thejustinwalsh wants to merge 2 commits into
callstackincubator:mainfrom
thejustinwalsh:feat/opencode-desktop
Draft

thejustinwalsh wants to merge 2 commits into
callstackincubator:mainfrom
thejustinwalsh:feat/opencode-desktop

Conversation

@thejustinwalsh

@thejustinwalsh thejustinwalsh commented Nov 30, 2026 •

Copy link
Copy Markdown

Summary

  • Add an OpenCode Desktop 2.4.2 plugin. /mobile-dev, the side pane menu, and agent tool calls open the shared Mobile Dev workspace in the session's Browser pane.
  • Reuse the shared device tools, Testing Studio, performance charts, comparisons, and TraceSift. Each chat has its own runtime and panel context; explicit Ask, Investigate, and Send to chat actions go back to that chat.
  • Render interactive results in separate Browser tabs beside the chat. Reloading a result uses the completed tool response rather than repeating the analysis. OpenCode Desktop does not expose an inline MCP Apps tool-result renderer or Codex's composer attachments.
  • Ship a prebuilt Apple Silicon package on release/opencode through the existing stable release workflow. OpenCode installs and updates it as a Git package. The bundled native and JavaScript runtime is checksummed and unpacked atomically per digest, so the updater can replace the plugin and runtime together.
  • Preserve existing MCP and UI telemetry with opencode attribution. Card, message, and panel context payloads stay out of telemetry.

Verification

  • npm test: 1,869 passed, 2 skipped.
  • Built the release ZIP and ran the packaged smoke test both from the extracted folder and through OpenCode 2.4.2's plugin add against a temporary Git release branch. Verified plugin startup, skills, Chromium panel load, separate sessions, and cleanup on deletion.
  • Playwright Browser, Codex, and Claude regression projects: chart render and reload, chat handoff, recording in the workspace, and host contracts.
  • Native macOS simulator discovery found 45 installed simulators. The adapter exposed 137 model-visible tools and excluded app-only tools.
  • Release tests cover checksum rejection, concurrent runtime extraction, and advancing the channel without downgrading.

The Desktop window interaction, live device input, physical hardware, and Windows still need manual verification. Install and developer setup are in apps/opencode/README.md. The public install command becomes available with the first stable release containing this PR.

@vercel

vercel Bot commented Nov 30, 2026

Copy link
Copy Markdown

@thejustinwalsh is attempting to deploy a commit to the Margelo Team on Vercel.

A member of the Team first needs to authorize it.

@thejustinwalsh

Copy link
Copy Markdown
Author

Verified the native update path on OpenCode 2.4.2 using an isolated profile and a temporary Git release branch: plugin add installed the original package, plugin check detected the later revision, and plugin update loaded the new revision as active. No upstream release was published.

This branch has not been deployed

No deployments
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.

1 participant