Repository navigation
feat(opencode): add experimental Mainbrella workspaces - #53943
Closed
andrewarrow wants to merge 1 commit into
Closed
andrewarrow wants to merge 1 commit into
andrewarrow wants to merge 1 commit into
Conversation
1 task done
Member
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Related to #48411 (sandboxed execution).
Type of change
What does this PR do?
https://mainbrella.com/blog/opencode-one-workspace/
Adds an opt-in Mainbrella workspace adapter for an explicitly prepared sandbox generation. It starts a matching OpenCode server in a dedicated tmux socket, connects through a protected preview, renews expired previews, and removes its server and preview without stopping the user's machine. Setup and recovery instructions are included beside the adapter.
Uses existing Mainbrella APIs with no backend changes or new dependencies. Sandbox preparation and provider authentication remain explicit; the adapter does not copy host credentials. Connection receipts stay in private local state. Ambiguous preview creation requires reconciliation rather than automatic retry.
Workspace sync now resolves the adapter target on reconnect so renewed preview URLs take effect. The proxy drops local authentication and cookies, and transport error logs omit credential-bearing targets and response bodies.
How did you verify your code works?
bun typecheckinpackages/opencodepassed.git diff --checkpassed.This is a draft: live Cloudflare sandbox validation remains outstanding. Existing sandbox lease limits and uncertain-preview recovery are documented.
Screenshots / recordings
Uses the existing experimental workspace picker.
Checklist