GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(console): serve apple-app-site-association for iOS pair links by kitlangton · Pull Request #58540 · anomalyco/opencode

Conversation

@kitlangton

@kitlangton kitlangton commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

What it does. https://opencode.ai/pair#… links (the pairing links opencode pair prints) open in Safari today. This serves an Apple App Site Association file so iOS opens them in the OpenCode iOS app instead. Only /pair and /pair/* open the app; every other opencode.ai URL keeps opening in the browser.

How it works.

  1. The console middleware answers GET/HEAD /.well-known/apple-app-site-association with the JSON below, Content-Type: application/json, no redirect, before any other handling.
  2. It lives in middleware because SolidStart's file router skips dot directories (fast-glob without dot), and a static file in public/ would be served without an extension as application/octet-stream.
{"applinks":{"details":[{"appIDs":["5NZ4Q7NXJ4.ai.opencode.mobilecode"],"components":[{"/":"/pair","comment":"pairing links, payload in the fragment"},{"/":"/pair/*"}]}]}}

The app side (applinks:opencode.ai entitlement and the /pair#<base64url {"code","urls"}> handler) is already shipping in the iOS app.

Risk. Small: one exact path in the opencode.ai console worker. Nothing else changes, and /pair itself still 404s in a browser. Apple's CDN caches AASA files, so devices pick this up within about a day of deploy. To check after deploy:

curl -si https://opencode.ai/.well-known/apple-app-site-association
curl -s https://app-site-association.cdn-apple.com/a/v1/opencode.ai

Proof.

  • bun test in packages/console/app: 49 pass, including new test/appleAppSiteAssociation.test.ts (body, content type, HEAD, other paths and methods ignored).
  • bun run typecheck:tsc: pass. bun run build: pass.
  • Built worker under wrangler dev: GET /.well-known/apple-app-site-association → 200, Content-Type: application/json, the JSON above; /pair → 404 as before.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kitlangton
feat(console): serve apple-app-site-association for iOS pair links
0196360
@github-actions github-actions Bot added the contributor label Oct 23, 2026
opencode-agent[bot]
opencode-agent Bot reviewed Oct 23, 2026
View reviewed changes

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks good. I ran the console app with vite dev on the base and on this branch. On the base, /.well-known/apple-app-site-association returns 404 (HTML). On this branch, GET returns 200 with application/json and the expected AASA JSON, HEAD returns the same headers with no body, and /pair still returns 404. bun test (49 pass) and typecheck:tsc both pass. Handling this first in the middleware, before locale and redirect handling, is the right place given that the file router skips dot directories.

Public API: unchanged (no SDK, server API, CLI, config or plugin surface). The site now serves one new public URL on opencode.ai, which only affects how iOS opens /pair links.

No blocking concerns.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kitlangton
kitlangton merged commit 71d29ef into dev Oct 25, 2026
13 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@kitlangton
kitlangton deleted the ios-pair-links branch October 25, 2026 22:53
@kitlangton kitlangton mentioned this pull request Oct 28, 2026
feat: make pairing QR codes https links any camera opens #59962
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencode-agent opencode-agent[bot] opencode-agent[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@kitlangton
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.