Preview: iPad companion over LAN and embedded Tailscale (#95) - #116
Draft
alexfoxtm wants to merge 1 commit into
Draft
Preview: iPad companion over LAN and embedded Tailscale (#95)#116alexfoxtm wants to merge 1 commit into
alexfoxtm wants to merge 1 commit into
Conversation
Working MVP snapshot for hardbeat920#95: Mac host + iPad thin client. LAN-first pairing, native iPad WebSocket, and embedded Tailscale on desktop and iOS. Generated Tauri output under src-tauri/gen is not included. This is a preview of the running prototype, based on 0.1.34, not a request to merge as-is.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
What changed
Preview of the working Mac + iPad companion MVP from #95. Not a request to merge as-is — opening this as a draft so the source is reviewable next to the issue.
Mac Settings → Companion can serve the desktop over LAN and/or an embedded Tailscale node. The iPad app is a thin client of that Mac: same sessions, files, and agents, paired with a QR or 6-digit code. No Tailscale iOS app, no Network Extension, no public port.
Why
#95 asks whether this direction makes sense before sending a sliced PR. This branch is the prototype that produced the screenshots there.
UI
Source files: alexfoxtm/monocode-companion-shots.
Mac Companion connected (1 device), LAN + Tailscale QRs
iPad workspace after pair
iPad Settings → Companion
Mac Google sign-in
iPad pairing
How to try it
This snapshot is based on 0.1.34 (
cb6e2df2), so it is behind currentmain. It is the tree that actually ran on the Mac + iPad, not a rebase.Mac host
Then Settings → Companion. Turn on Local network, Tailscale, or both. Pairing code + QR show per live route.
iPad client (needs Xcode, an iPad/simulator, Go for the tsnet c-archive)
npm install npx tauri ios init # generates src-tauri/gen (gitignored) npx tauri ios devSwap
bundle.iOS.developmentTeaminsrc-tauri/tauri.conf.jsonto your Apple team. First-run pairing: scan the Mac QR, or type host + 6-digit code.Shape (same as #95)
LocalTransport. New code is additive.ws://<host>:17233/v1/connect?token=…companion_ws) because WKWebView mixed content blocks a JSWebSockettows://LANtailscalecrate 0.5, Google SSO, DERP-only, experimentalmonocode-ipadHappy to shrink this into a first slice (LAN-only pairing, Mac settings + protocol, or iPad shell) if the direction is wanted.
Checklist
npm run checknpm run checkwas not re-run on this snapshot before opening the draft. Treat this as a prototype dump for review, not CI-green merge bait.