Repository navigation
Conversation
…s allowed on that PC's own window A PC added in one press has no account member, so the account join its owner's first phone sends is refused today and the phone shows 'cannot take this device yet'. These tests pin the fix on darwin and win32: the PC's own window lists the join with its digits and Allow lets the phone in, Decline refuses it, a window that is not the PC's own neither sees nor decides it (403), the phone is told which PC approves it, and a PC with a member keeps the member's approval. They fail on main. Co-authored-by: sisyphus-dev-ai <[email protected]>
…window, and point a QR pairing's key confirm there A PC added in one press has no account member, so its owner's first phone could never join it: the account join was refused because nobody could approve it, and on macOS and Windows there is no screen confirm. Such a join is now a first join: the PC's own window shows a card with the digits and Allow / Decline (POST /api/relay/join with a decision, own window only), and the phone is told which PC to press Allow on (PAIR_CHALLENGE approve_on) and shows one line instead of the failure. A PC with a member keeps the member's approval; a PC vouched for still needs a member; the 24-hour new-PC rule is unchanged. A key a QR or code pairing waits with on a step-2 PC's screen now shows in the same place in the PC's own window, with its fingerprint and one button, Confirm on this PC (POST /api/account/confirm-page, own window only), which has the server open the local confirm page on this PC's desktop as ovis confirm does. The page keeps its same-user check and decides it; its port stays in no answer (R8). Co-authored-by: sisyphus-dev-ai <[email protected]>
… the hosted app and phone too (cherry picked from commit c0698c74d14f423afb8b5d9a15d19f11c09b7ee1)
…eck again for relay PCs, no approval digits, no Change PC (cherry picked from commit 63720ce92b3882f9c6361471cfcb399265a46b39)
…t a vouched PC as watch
A device that drives a PC over the relay (the hosted shell, the phone app) may now use
POST /api/machines/relay/account/{check,start,pair}; open LAN windows and Portal visitors
stay owner_only and watching devices read_only.
A PC paired as another PC of the account (pair-intent-pc-vouched) is now admitted as a
watch row: that row stands for every device of the adding PC, so a Revoke or block of one
of them could not reach it. Rows made before keep their role.
The adding PC passes the same routes of a PC it lists on to it (streamed, 200 s), for
its owner's devices only; that PC answers them read_only by its watch row.
(cherry picked from commit d8bfa92d634b25c3fd1510127a6283369b431d73)
…at goes away The hosted shell and the phone app no longer land on the PC list. A launch opens the PC used last, else the next saved PC that answers; when the PC it opened turns out off on its own page, the launch goes on with the saved PCs it has not tried (ovis-launch-tried) instead of stopping at the list. A phone app that reopens by itself on a PC page counts as such a launch. When every saved PC is off, the front page says no PC is online, with Check again. When an open PC's relay session drops and a reconnect finds the relay with nobody for it for the whole reconnect wait (RECONNECT_PC_ANSWER_MS, the new RelayTransport onPcAway), the page moves to the first other saved PC whose check answers, at most once per sweep gap, firing ovis-page-leaving first so memory-only pane state is carried as on any page replacement. Nothing typed is sent. It stays when no other PC answers or its own PC is back. Only PCs paired here by hand are candidates (security-triage condition 3): never one an account introduction alone saved, nor an account-only PC. (cherry picked from commit f91b4977cfae2251fb67238d06edea35483d849c)
… its name; fix the vouched-PC pairing test for the watch row
…ing t13r (b) Launch, Check again and failover may now also pick a PC this device reaches only through the account, opened on its own page through the account key as that page already does. Only when all hold (accountOpenablePcs in pcPick.ts): the PC trusts the account's device list for this device's registered key with a verified join route; its listing is confirmed (last_seen_at: the PC itself pulled this account's mailbox with its server proof); its new_until has passed; no saved row here (introduction-only or unfinished); and no "added before you joined" notice for it is still open on this device. The notice's dismissal key moves to lib/account/newPcNotice.ts so the card and the pick read the same key. MyPc carries admitted_at/admitted_before_you, and the sweep checks an account PC by its directory row (ProbeTarget). The C3 tests now cover each excluded case on its own, plus the picked case.
…, Tailscale and Direct tabs The first screen is the desktop's Add a connection tabs in its order, with no sign-in first: the sign-in is inside the Ovis relay tab, Tailscale lists the PCs this phone opened on the tailnet (Android: Tailscale off shows Open Tailscale alone, from a tun/fd7a interface check), and Direct takes an address or SSH's user@host in one field, which opens the SSH setup filled in. Tabs are picked without a history entry, so Back leaves the app from the first screen.
…e Sign out The account line opens Settings > Devices and PCs at the account.
…About runs the app's own update check The desktop app's About showed only that updates come with the app. Its Ovis row now shows the app's version with Check for updates, which runs the hourly electron-updater check now (one check at a time) and shows checking, up to date, the download's progress, Restart to Update once the update is held (a Mac's staging counts as downloading), or the error in one line. (cherry picked from commit fffc1c0)
… the server's page, and never offers a gone update Gate review: the state and check IPC now go by the frame's origin (serverPage), as the built-in browser's do, and the state is pushed only to the server's page; each state told checks the held file first, so About drops Restart to Update once the downloaded file is gone. A downloading or ready state without a version is read as no answer. (cherry picked from commit d9d47d7)
… phone shows the number Co-authored-by: sisyphus-dev-ai <[email protected]>
Require a session-bound server proof, an exact fresh admission, and a verified account-directory match before a member tap can create a journaled WATCH row. Keep ordinary digit approvals unchanged. Notification scope: the account service rings on the admission request. After enrollment, B pushes to its own subscribed devices; this does not add an account-service completion broadcast. Co-authored-by: sisyphus-dev-ai <[email protected]>
… in, then joins that PC A PC's own page in the hosted shell that this device has no pairing for, signed out, draws the sign-in and starts the provider named by #sign-in=<provider>. A browser's sign-in returns to the front page, which goes on to that PC's page (the PC id waits in session storage for the sign-in's ten minutes) and joins it as any account device. The Android app link and the app's scanner accept the fragment. No code, key or token travels in the link. Co-authored-by: sisyphus-dev-ai <[email protected]>
…on every tab, and drops Phones and devices Each tab (Ovis relay, Tailscale, Direct) ends in 'Scan it with the Ovis app on your phone' and that way's QR code: the relay's pairing QR for a PC in no account, the PC page sign-in link for a PC already in one, the Tailscale address with its code, and Portal's or this page's address with its code. Owner's request (2026-11-22). Co-authored-by: sisyphus-dev-ai <[email protected]>
…PC, and make one pairing code only once a tab shows it Reviews of the previous head (dori, omo gate): the PC whose page started a sign-in now rides in that sign-in's own pending record, and the front page follows it only on that sign-in's success, before any launch (it could open the account's other PC). A sign-in that ends on the page itself (the app's sheet) waits for the account's PCs before it joins. The dialog mounts no tab until the relay's state is read, the Tailscale tab uses Tailscale's own address (never a proxy's), and the Tailscale and Direct tabs share one pairing code instead of the second ending the first. Co-authored-by: sisyphus-dev-ai <[email protected]>
…n its pending record Co-authored-by: sisyphus-dev-ai <[email protected]>
…d a tab opened while a code is asked for waits for it Gate re-review at 326c05a: on a plain-http LAN page with Tailscale serving the PC, Direct lost the page's address (pairUrl was Tailscale's); it now takes this page's own address. A view that opens while another asks for the pairing code waits for that code instead of asking for a second, which would end the first. Co-authored-by: sisyphus-dev-ai <[email protected]>
…'s own window Co-authored-by: sisyphus-dev-ai <[email protected]>
…sks for its own Co-authored-by: sisyphus-dev-ai <[email protected]>
…drawn view only, and a device keeps its own link to it (gate HIGH-1)
… the window comes back, only once the account lists something new (gate MEDIUM-2)
…very PC (gate LOW)
…g line and says to approve on another device
S4 made the pair stream send { waiting: true } instead of the digits, but pairAccountPc still read only line.digits, so the relay tab's row said 'Asking {name}...' until the PC was added or the 180 s ran out. pairAccountPc now reports the waiting line, the row switches to 'Approve on another device of your account', and the digits path (Pairing.digits, spaced, .relay-account-digits) is gone. Tests feed the line the server sends.
… of the same PC shows no failure The sidebar's auto-add and an open relay tab's Add can ask this PC's server to pair the same account PC at once; the loser got account_pc_busy and showed 'That PC is being added in another window.' as a failure. useAccountPcs now ends that Add quietly: the pairing state clears, no failure text, and the roster shows the PC added once the other window's pairing ends.
…-pc-proof is not given the intent, so a 0.5.9 PC says to update Ovis A 0.5.9 PC adding a 0.5.10 PC by vouched intent offered the intent without pair-pc-proof; B selected the intent, so A sent PAIR_REQUEST and B closed with auth_failed, which A reports as a refusal. A 0.5.9 PC already maps a WELCOME without pair-intent-pc-vouched to RelayPcOutdated, both in its check (vouchedSupport) and before PAIR_REQUEST. B now selects the vouched intent only when pair-pc-proof is offered too. Its session still records the vouched intent, so a PAIR_REQUEST sent anyway is refused as before.
…parse, and refuse only its vouched tap S4 made parsePc drop a whole directory PC whose new_until does not read as a time, because the vouched approval check (vouched-pc.ts) took a missing new window as not new. parsePc keeps such a PC again with new_until null, as before S4, and marks it new_until_unreadable; vouchedPcName refuses a marked PC, so the vouched check still fails closed for it.
…ew window does not parse (condition 3 fails closed)
… guard for the dispatch contract Co-authored-by: sisyphus-dev-ai <[email protected]>
# Conflicts: # app/web/connect.js # app/web/index.html
…plate, and the particle check covers app/web
…ed now (the connect screen or the hosted app)
…orts; SSH from iOS 16.4; a closed tunnel frees its port before the next binds
… a removed SSH PC's port leaves the rule; web schemes only
…n open (#27), waited for rather than raced
…list, never on, until it opens again
…al account counts as the PC own window for ovis approve
…returns to that PC instead of closing the app
…s in Korean on a Korean phone
…al in Korean, before the scanner's English-only dialog
…fore its history list holds it, so Add a PC returns to the relay PC
… on Android 15 and 16
The page's Back callback is always on: with an entry behind the page, Back goes to it in the
WebView; with none, Back is the system's (and the callback is on again for when the app returns).
It no longer waits for a navigation to turn it on, which lagged the new document Add a PC is.
On #add (a relay PC's More: location.assign("/#add")) Chromium marks the page left by script
skippable for the browser's Back, so canGoBack, goBack and goBackOrForward pass over it with the
PC page still in the list; there the page itself steps back (history.back()), which no such mark
skips. The same-place bookkeeping (syncBack, PCStore.pageTakesBack) is gone with it.
BackToPageTest (androidTest) opens the app's page, goes to a new document at #add by script,
injects KEYCODE_BACK and asserts the activity stays resumed on the page behind it. On headless
AVDs: reverted code fails on API 35 (activity destroyed) and API 36 (STARTED: leaving); with this
change it passes on both. The QA twin APK on the same AVDs: relay scope -> /#add -> adb Back
returns to the scope, MainActivity still top resumed, on API 35 and 36.
Preview-qa on #16: an Android 15 re-join showed its number, the Mac never showed the request (its own window had lost its server for ~3 minutes, and the phone's relay session then ended with upstream_lost), and after the deadline the phone said '거절됐어요'. Once the number is shown, failureOf read a timeout as a decline. Now only the PC's refusal (auth_failed) is 'pair-declined'; a timeout, an admission timeout, an unreachable relay or an internal error after the number is the new 'pair-unanswered', drawn as one plain line 'No answer from {name}' (ko 'Mac에서 응답이 없어요') with the same Ask again. en/ja/zh. Follow-up, not in this commit: the Mac's own window reading its waiting joins again at once when it reconnects.
…Mac staging builds, the Android preview build type) A Mac build made with OVIS_BUILD_STAGING=1 reads OVIS_PREVIEW_FEED alone for its updater, and every other build reads OVIS_UPDATE_FEED alone, so no release ever reads the preview feed. The Android app gains a "preview" build type (assemblePreview): sh.ovis.app.preview beside the store app, numbered by OVIS_PREVIEW_NUMBER, reading OVIS_PREVIEW_FEED. Only its manifest asks for REQUEST_INSTALL_PACKAGES. PreviewUpdater checks the feed's version.json when the app opens and from Settings > About, downloads a newer APK (sha256-checked, same origin as the feed) and hands it to the system installer. Every other build has no feed and answers "off".
|
On hold: preview-only tooling for the maintainer's preview builds, kept out of #4435 on the lead's word; preview builds are made from release + this branch. The lead decides if and when it merges. |
|
Important Review skippedToo many files! This PR contains 490 files, which is 190 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.
|
|
Superseded by #4765: the same commit rebuilt on current main, with the build.gradle conflict resolved. The branch is kept. |
…4765) Supersedes #4464, rebuilt on current main: its one own commit (a056cf0) cherry-picked onto a branch from main, since #4464's branch carried 20 commits main already has another way and conflicted. Preview builds update themselves from their own feed, so the maintainer presses Update instead of downloading each preview by link. Preview-only: release and store builds are unchanged. **Mac.** A build made with `OVIS_BUILD_STAGING=1` (the preview) reads `OVIS_PREVIEW_FEED` alone for its updater (`app-update.yml`); every other build reads `OVIS_UPDATE_FEED` alone, so no release ever reads the preview feed (`stagingProfile.updateFeed`). Settings > About > Check for updates and the normal update prompt install the next preview; builds stay Developer ID signed and notarized. **Android.** A `preview` build type (`assemblePreview`), so no existing task is renamed: `sh.ovis.app.preview` beside the store app, version code 1000 + `OVIS_PREVIEW_NUMBER` so each preview installs over the last, reading `OVIS_PREVIEW_FEED`. Only `src/preview/AndroidManifest.xml` asks for `REQUEST_INSTALL_PACKAGES`. `PreviewUpdater` reads the feed's `version.json` when the app opens and from Settings > About (`HerdrShell.previewUpdate`, `src/lib/previewAppUpdate.ts`), downloads a newer APK (sha256-checked, same origin as the feed) and hands it to the system installer. Every other build has no feed and answers "off", so the Settings row never shows there. The feed address is not in the repository: it is passed at build time. **Conflict resolution.** `app/android/app/build.gradle`: main added the hosted-origin / bundled-shell block and its own `buildFeatures { buildConfig = true }` at the top of `android {}`. The preview feed variables now sit after main's block, and the duplicate `buildFeatures` this commit added at the end of `android {}` was dropped. **Validation** - `bun run check fast`: passed (workflow syntax, generated types/themes, typecheck, build, unit tests 28422 pass / 0 fail). - `cd app && bun run build:web && bunx cap sync android`, then `./gradlew :app:assemblePreview :app:assembleDebug :app:testDebugUnitTest` (JDK 21, `OVIS_PREVIEW_FEED=https://example.invalid/preview/ OVIS_PREVIEW_NUMBER=7`): passed; 208 JVM tests, `PreviewUpdaterTest` 4/4. - `aapt` on the outputs: the preview APK is `sh.ovis.app.preview`, versionCode 1007, versionName `1.0.6-preview.7`, with `REQUEST_INSTALL_PACKAGES`; the debug APK has no install permission. - Skipped: integration and browser lanes, Android instrumented tests, end-to-end self-update on a device. UI note: the only visible change is an "Ovis Preview" row in Settings > About, shown only in the Android preview build; browser, desktop and store builds show nothing new.
Preview builds update themselves from their own feed, so the maintainer presses Update instead of downloading each preview by link. Preview-only: release and store builds are unchanged.
Mac. A build made with
OVIS_BUILD_STAGING=1(the preview) readsOVIS_PREVIEW_FEEDalone for its updater (app-update.yml); every other build readsOVIS_UPDATE_FEEDalone, so no release ever reads the preview feed (stagingProfile.updateFeed, red-first test). Settings > About > Check for updates and the normal update prompt install the next preview; builds stay Developer ID signed and notarized.Android. A
previewbuild type (assemblePreview), so no existing task is renamed:sh.ovis.app.previewbeside the store app, version code 1000 +OVIS_PREVIEW_NUMBERso each preview installs over the last, readingOVIS_PREVIEW_FEED. Onlysrc/preview/AndroidManifest.xmlasks forREQUEST_INSTALL_PACKAGES.PreviewUpdaterreads the feed'sversion.jsonwhen the app opens and from Settings > About (HerdrShell.previewUpdate,src/lib/previewAppUpdate.ts), downloads a newer APK (sha256-checked, same origin as the feed) and hands it to the system installer. Every other build has no feed and answers "off", so the Settings row never shows there.The feed address is not in the repository: it is passed at build time.
Validation
bun run check fast: passed (remote heavy host).bun test app/electron/src/stagingProfile.test.ts src/lib/i18n.test.ts src/components/UpdateControls.test.tsx src/conventions.test.ts: 92 pass../gradlew :app:testDebugUnitTest: all pass, incl.PreviewUpdaterTest4/4 (written first, red beforePreviewUpdater)../gradlew assemblePreview processReleaseMainManifest: the preview APK issh.ovis.app.preview, version code 1000 + N, label "Ovis Preview", with the install permission and the feed; the release merged manifest has no install permission.