feat: deep-link OpenCode portal card to the /home/opencode workspace - #20
Merged
Conversation
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.
Summary
Point the OpenCode portal card at the project-scoped deep link instead of the bare host, so a fresh browser session lands directly in the shared
/home/opencodeworkspace without manually adding the project in the web UI.The path segment is the base64url encoding of
/home/opencode(L2hvbWVvb3BlbmNvZGU), verified against the OpenCode web app router at tagv1.18.23(the deployed chart version): the/:dir/session/:id?route decodes the directory from the URL, boots the project workspace, and fires the sameproject/currentregistration call the "Add Project" picker uses. First visit in a fresh browser prompts for the existing server credentials (HTTP Basic) and then opens the workspace directly.Type of change
Validation
PR CI passed:
static-checks(pre-commit hooks +node --checkof the untouched service worker) — success. The second checkbox is not applicable — no generated or centrally distributed files are in scope. Functional behavior (deep link resolving to the workspace) is verifiable only in production after merge and is called out below.Impact and rollout
Self-contained
wwwchange: onehrefon the OpenCode card inmakeitwork.cloud/index.html. No chart, GitOps, infrastructure, or route changes. On merge, the existingmainworkflow deploys to S3 and purges the Cloudflare cache automatically; after that, verify by opening the portal link in a fresh browser (expect the Basic auth prompt, then the/home/opencodeworkspace). Maintenance note: the URL format is an OpenCode v1.18.x web-app contract; if a futureopencode-serverchart upgrade changes the route encoding, this link must be updated in step.This change was materially produced by an AI agent (OpenCode, at the owner's direction); the deep-link format was verified against upstream source at
anomalyco/opencodetagv1.18.23.Safety and secrets