Repository navigation
refactor(app, crates, ci): drop comments the code can say, keep platform facts - #4038
Conversation
…orm facts The second area of the repo-wide comment pass: app/, crates/ and .github/. About 2,500 comment lines go; notes on behaviour we cannot change (Capacitor, WebKit, Electron, launchd, POSIX, Windows, RFCs, GitHub Actions) stay. Renames and named constants say the rest: js_parse_int, FirstOverflow/StillOverflowing, MAX_CLOSE_REASON_BYTES, JS_TRIM_WHITESPACE, p256GroupOrder, expandOneBlock, ByteModeIndicator, signHostAndRecordHash, isConnectionScreen. The download-links test now finds desktop.yml's loop by its first name instead of a comment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
The owner's refactor, merged by the merge pass on his word. Its claim is that it drops comments the code can say and keeps platform facts. A machine proof removed comments per language and compared the merge base with this head: 109 of the 127 files are identical, including all 24 workflow files, so no workflow behaves differently. The 18 files that change code were read by a fresh reviewer and every change is behaviour-neutral: renames ( Comments that are not prose were listed from the deleted lines (directives, lint disables, licence headers, markers our tests read): one real directive, below. Nine tests that read workflow or config files were checked for a vacuous pass after the deletions: none; each passes alone, and the one whose expression was anchored on a deleted comment ( One deleted comment was a tool directive ( Low notes: no pull request check compiles the Java or Swift changes (old names were searched for and none remain); a few doc comments in the PTY host were cut mid-thought. After this merge, a fresh reviewer reads the deleted comments for any reason the code cannot say; any such line comes back in a small pull request. |
## What #4038 (the comment pass over `app/`, `crates/` and `.github/`) dropped the eight `// SAFETY:` comments in `crates/pty-sidecar/src/pty.rs` (6) and `crates/ovis-tui/src/main.rs` (2). That was wrong: each one states the libc or platform contract that makes its `unsafe` block sound, which the compiler cannot check and the code cannot say. - An all-zero `siginfo_t` or `sigaction` is valid, and `waitid` writes only into it. - `kill` and `raise` are async-signal-safe. - The environment is changed while only one thread runs. These are platform facts, which the comment pass keeps, and the Rust convention for every unsafe block. This PR restores them word for word, each above the line it sat on before #4038. No code changes. ## Validation - `bun run check fast`: passed. - `git diff` shows only the eight comment lines added. - No cargo here. GitHub's `ovis-tui` (clippy `-D warnings`) and `pty-sidecar` jobs build both crates. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
…ep platform facts (#4040) ## What The third area of the repo-wide comment pass (after #4036 and #4038). It covers: - `relay/`, `push-relay/` and `integrations/` - `telemetry/`, except `worker.ts`, whose bytes are pinned to the deployed Worker - `site/demo/`, `ovis-site/` and `public/sw.js` - the installers (`install.sh`, `install.ps1`) and the root config (`vite.config.ts`, `bunfig.toml`, `herdr-plugin.toml`, `.coderabbit.yaml`) About 1,850 comment lines go. Comments that explain a code surprise of our own were removed, and where a rename or one helper could say the same thing, the code now says it. What stays is behaviour we cannot change: - **Services:** Cloudflare Workers and Durable Objects, APNs and FCM, Cloudflare Pages. - **Browsers:** iOS notifications, Safari push, Chrome's PDF viewer. - **POSIX shells under `curl | sh`:** SIGTTIN, `set -e` inside conditions, Rosetta's `uname -m`, busybox and uutils races, systemd and launchd. - **Windows:** PowerShell 5.1 and cmd. - **Specs and tools:** RFCs 8030, 8032, 8292 and 6455, and xterm, herdr and the agents that the demo's fake server copies. Also kept: - the installers' usage headers, which are their public contract - the licence credits (LobeHub Icons, Simple Icons) - every comment inside text the installers write out (the `ovis` launcher, `run.sh`/`run.ps1`, the inline JS) - the comment whose address `scripts/ovis-site.test.ts` tells people to read Every comment-only change was checked against `origin/main`: - **TypeScript and JavaScript:** by syntax tree. - **CSS:** comments stripped. - **Shell, PowerShell, TOML and YAML:** whole-line comments dropped. I read the few trailing `# …` comments and C# comments inside `install.ps1`'s Add-Type strings by hand. ## Code changes (mechanical, no behaviour change) - `relay/core.ts`: `oldestToMakeRoom(list, max)` replaces three copies of `list.slice(0, Math.max(0, list.length - MAX + 1))`. - `site/demo/transport.ts`: builds the view key from `PANE_VIEW_KEY_PREFIX` and `paneStorageId(LOCAL_MACHINE, …)` instead of writing `ovis:view:` by hand. - `install.sh`: - `INSTALL_LOCK_WAIT` → `INSTALL_LOCK_WAIT_SECONDS`. `scripts/install-binary.test.ts` follows. - Dropped the `shellcheck disable=SC2086` on `foreground_ids`. No shellcheck runs on the installers, and the split it hid is listed below. - `vite.config.ts`: `xtermSource` → `patchedXtermSource`. ## Left open (redesigns, not done here) - **`relay/`:** - `Room.open` and `Room.sweep` each work out when a socket was last heard from. - `Room.authorize` buries "the stricter pass wins on a tie". - `sweepPass`'s warm-first order is only a sort. - `pair-room.ts ATTEMPT_BYTES`/`PAIR_CLOSE` copy `shared/relay-pair-code.ts` and are kept equal only by a test. - The `pass_kid === undefined` compatibility branch. - Info is written before a refusal so that `owns()` handles the close. - `worker.ts PASS_CHECKED` trusts a header that `handle` strips and sets again. - `RelayRoom`'s `send` uses `queueMicrotask` to avoid re-entering `Room`. - **`push-relay/worker.ts register`:** the limiter order could be one named gate. - **`public/sw.js`:** - `BUILD`, `BUILD_FILES` and `RELAY_RESOURCES` are build-stamped placeholders. A rename needs `scripts/service-worker-build.ts` with it. - `isPage` really checks for the shell fallback. - `keepShell` both fills the new cache and retires the old ones. - `FRESH_SHELL` is the only link to `requestFreshShell`. - A port message without `status` means "selected". - `answerButtons` mixes the "can't reach the PC" check into validation. - Two tap paths race through module-level maps. - `query` copies `pageSearch`. - The hosted shell's `#` deep link has no builder. - `openRelayDatabase` copies the schema in `src/lib/relay/device.ts`. - **`ovis-site/assets/platform.js`:** `DESKTOP.mac` has no `tip` on purpose, the `*_ALT` English text doubles as a translation key, and `macArch()` without an argument means "Apple silicon". - **`site/demo/`:** - `agentScreens.bottom` must match what `src/lib/inputRow.ts` parses, and the cursor offsets are magic. - `fixtures.RESUME_FLAGS` copies `server/session-history.ts`. - `layOutRoster` and the timestamp `shift` could be named steps. - `later` fires only while the socket is open. - **`install.sh`:** - `foreground_ids` relies on word splitting. - `gh_api` copies `bounded`'s watcher, and the "capture under `bounded`" pattern is written three times. - `release_js`, `rust_host_runs`, `node_fits` and `find_core` copy checks in `scripts/plugin.ts`, `server/pty/` and `server/herdr-core/discovery.ts`. - `launcher_text`, `add_reads_answers` and `node_link` tell what a release can do by grepping its source. - `add_pc` uses seven early returns that set flags. - `manifest_entry` parses signed JSON with `sed`. - `install_lock` is hand-rolled. - `ref_not_moved` is not explained by its code. - Exit codes `22 | 37` should be narrowed to a 404. - **`install.ps1`:** - Ed25519 points travel as `BigInteger[]`. - `Enter-InstallLock` has a known race with three installs at once. - `$herdrState` copies `scripts/plugin-state.ts`. - `Get-RecordedServer`, the inline git reader, and about 180 lines of top-level repair logic. - **`vite.config.ts`:** `dirty` mixes "dirty" with "could not tell", and the plugin order (`themeBootstrapBuild` first) is not enforced. ## Validation - `bun run check fast`: passed (18,563 unit tests, typecheck, build, generated files). - `bun test relay/`: 891 pass. `scripts/install*` tests: 203 pass. `scripts/install-binary.test.ts` passes after the rename. `scripts/ovis-site.test.ts`, `scripts/conventions.test.ts`, the `sw.js` and demo tests: all pass. - `sh -n install.sh` passes. `install.ps1` was not parsed here (no `pwsh`); GitHub's Windows runner runs it. - Comment-only check as above. The code differences are exactly the changes listed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: sisyphus-dev-ai <[email protected]>
## What Part 1 of 5 for `scripts/` in the repo-wide comment pass (after #4036, #4038 and #4040). This part covers: - the a–ci browser regressions and QA scripts - the build and check tooling: `check.ts`, `check-report.ts`, `build-cache.ts`, `build-xterm.ts`, `build-site.ts`, `build-server.ts`, `ci-browser*.ts`/`.sh`, `ci-flakes-issue.ts` - the installer tests (`install-*.test.ts`) - the inbox regressions and the join kit (`scripts/join/`) About 3,450 comment lines go. The usage headers of `check.ts`, `ci-browser-parallel.ts`, `ci-browser-timings.ts` and `ci-flakes-issue.ts` went: `docs/development.md` already documents those commands and their variables. What stays: - **Machine-read comments:** every `// fixed wait:` (`scripts/fixed-sleeps.ts` reads them), and the `@ts-expect-error` on `app/web/shell.js`'s import. - **The join kit's contract:** the usage and exit-code block of `join.sh`. - **Behaviour we cannot change:** POSIX shells and job control, Linux `/proc` and zombies, socket path limits, `ps` locale, git, Vite, TypeScript, xterm, Playwright, Chromium and WebKit, `@legendapp/list` (checked in its source), and GitHub's API limits. Every comment-only change was checked against `origin/main`: TypeScript by syntax tree, shell with whole-line comments dropped. No test, script or doc reads a deleted comment: each agent searched `*.test.ts`, `scripts/` and `docs/` for a phrase of every comment before deleting it. ## Code changes (mechanical, no behaviour change) - `scripts/inbox-mode-demo-regression.ts`: the drawer's second-tap wait takes `SECOND_TAP_MS` from `src/lib/useSidebarLayout.ts` (passed into `waitForFunction`) instead of a bare `400`. - `scripts/join/join.sh`: dropped a `shellcheck disable=SC2086`. No shellcheck runs on scripts, and the split it hid is listed below. ## Left open (redesigns, not done here) - **`check.ts`:** - `HERDR_TEST_SHARDS` defaults to 1 because timing-bound contract tests fail four at a time. - `askTicket` ranks a lock without a ticket at `-Infinity`. - `takeTicket` bumps `queuedAt + 1` for a clock set back. - `retire` leaves a known window for two claims. - `acquire` checks the queue twice, and `alone` treats a pre-slot holder as owning the PC. - **`ci-browser-parallel.ts stopRun`:** its refused/unmarked/seen sets and the grace after SIGKILL. - **`ci-browser.sh`:** the scripts whose evidence code changes what they check are an unnamed case list. - **`check.test.ts descendant`:** relies on when a SIGTERM handler takes effect. - **`build-cache.ts`:** the cache's event rule, the `shared/vendor/*/dist` regex, "stop waiting once another job holds the lock", and the per-run lock name. - **`build-server.ts artifact`** (a lazy import so sign and verify run without packages), and **`build-site.ts`**'s `/icons/` rewrite (the client could use relative paths). - **`app-shell.test.ts`:** the `@ts-expect-error` goes once `app/web/shell.js` has a declaration file. - **Unnamed timings and duplicated values:** - `android-ime-regression.ts` has a bare typing pace. - `install-hint-demo-regression.ts HOLD_DEMO_TURN` copies a 4500 ms hold from `site/demo/transport.ts`, and so do several other scripts. - `NO_RESIZE_WAIT_MS` is a bare 1 s. - Several fixed waits for "frames to have gone out" in `inbox-mode-demo-regression.ts` could poll `window.inboxFixture.frames`. - `join.contract.test.ts` sleeps 2 s where it could use `DWELL_MS`. - **`inbox-mode-*-regression.ts`:** pass their part through `INBOX_MODE_PART`, where the main script could export `run(part)`. - **`join.sh`:** - Globals carry results: `$pid`, `j_b`, `j_got`. - `j_refusal` and `J_HERDR_REFUSED` match the server's English sentences instead of a reason code. - `j_remove`'s return codes 0–4 have no names. - `$J_PROFILE_ENV $J_PREVIEW_ENV` are left unquoted on purpose. - The 37/38/39 decision could be a function. - **`join.contract.test.ts`:** the flag files under `/var/tmp/fake-*` are declared nowhere, and `serveHerdr` takes a positional boolean. ## Validation - `bun run check fast`: passed (18,567 unit tests, typecheck, build, generated files). - Unit tests of every touched test file and of the modules that import a touched one: all pass (349 + 405 + 203 + 15, plus `scripts/conventions.test.ts`). - `sh -n` on `join.sh`; `SECOND_TAP_MS` imports from a plain Bun script (`400`). - Not run here: the browser regressions themselves (their code changed only in the one wait above) and `join.contract.test.ts` (needs containers). CI's browser jobs run the regressions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: sisyphus-dev-ai <[email protected]>
…C of the comment pass) (#4045) ## Why The owner's rule F (comment pass of #4036 and #4038): a deleted comment whose reason no test can hold (pile C: a platform fact CI does not run, a race too rare to test, a policy behind a chosen workflow value, a Rust `# Safety` contract) goes back as a comment, the same day. ## What 75 comments in 43 files, put back word for word from e3776cd (#4036) and dad4ce6 (#4038), each above the code it belonged to, in its original style (`//`, `///`, `/** */`, `#`). - The eight `// SAFETY:` notes in crates/pty-sidecar/src/pty.rs and crates/ovis-tui/src/main.rs are left to #4043. The `# Safety` doc of `forget_ovis_secrets` (not in #4043) is restored here. - Skipped: none. Every anchor still exists on main. - Where the listed text lacked its own delimiters, the old block's delimiter lines came back with it (the `/**` / `*/` of 12 Javadoc and JSDoc blocks, one C# `</summary>`). - Three workflow entries were listed as a part of a sentence. Each is put back as the whole old sentence: - desktop.yml: from "With a release tag" (old lines 6-11). - ovis-tui.yml: through "binaries are not built here yet ..." (old lines 2-5). - release-validate.yml: old lines 73-82, which replace the one-line rewording of its last two lines. - dependabot.yml also gets back its `#` paragraph break (old line 5). ## Proof A machine check compares origin/main with this head once comments are removed: - TypeScript and JavaScript: 9 of 9 files are identical. - Other files: 34 of 34 are identical. For workflows, this compares the parsed YAML with run-script comment lines dropped. - Not identical: 0 files. No code line changes. --------- Co-authored-by: sisyphus-dev-ai <[email protected]>
…4038) (#4080) ## What #4038 (`app/`, `crates/` and CI) was part of the repo-wide comment pass and merged before the owner's rule for comment-removal PRs: security notes, platform facts, measured values, third-party attribution, Rust SAFETY notes and traps that name a concrete breakage stay. This PR puts back what it dropped of those, word for word where the code is unchanged, on today's `main`. How the notes were picked: a Codex adversarial review (gpt-6.2-sol, reasoning high) of the merged commit against its parent listed every deleted comment it took for a kept kind; each finding was checked against the code before the pass and today's file, and put back only when it is one of those kinds. A trap came back only when it names what the obvious change would break. Notes whose code has since moved sit on that code now; notes whose code is gone, or that are no longer true, stay out. This PR touches workflows under `.github/`: every comment put back inside a `run: |` block was a shell comment in that same place before. It waits for a real review (AGENTS.md). Comments only: no code changes. The refactor-merge kit's `proof.sh` checks that every file is identical once comments are removed. ## Details ### Lines restored per kind (findings accepted / lines) | Kind | Findings | Lines | |---|---|---| | security | 302 | 706 | | platform / protocol fact | 130 | 232 | | measured value | 20 | 35 | | attribution / non-prose | 3 | 7 | | Rust SAFETY | 0 | 0 (all 9 already back from #4043) | | trap (concrete breakage) | 76 | 173 | | **total** | **531** | **1153** | Of 642 HIGH/MEDIUM findings: 531 accepted, 26 traps declined, 29 rejected (5 are about the PR body or the `scripts/ovis-site.test.ts` code change, not comments), 56 already back on main (#4045, #4043). ### Security notes put back ### .github - dependabot.yml — Bun, Node and herdr pinned (herdr by checksum); actions pinned to commit SHAs - actions/setup-ci — runner host's package copy is read-only to jobs - beta.yml — attest job signs build provenance; write tokens run no repository code (host-publish, desktop-publish) - ci-flakes.yml — reads runs and logs, writes that one issue only; GitHub-hosted with issues: write - ci.yml — hosted_only: no Actions cache, since every job can write the published artifacts; fork PRs stay GitHub-hosted (changes, fast, aggregate, mac); actions: read for the route; hc pinned by version and sha256 - cla.yml — pull_request_target runs from main with the base token, never checks out the PR; who stands in for the opener, signatures only from commit authors - desktop.yml — only the Mac signing hook's secrets; Developer ID and notary key, fail rather than ship unnotarized; Windows signing certificate, unsigned SmartScreen fallback; feed job has no secret and is read-only; attach job's write token runs no repository code - growth-snapshot.yml — stars' dates never who; result encrypted because public artifacts are downloadable - hook-kill-tests.yml — one throwaway container, GitHub-hosted written literally, a fork runs its own copy; cache only restored; no package scripts, read-only mount, no network - mac-dmg.yml — skips without signing secrets; gate reads the secrets, GitHub-hosted - omp-question-compat.yml — unpinned OMP release: never save the shared cache - pages.yml — validation, build, current and deploy jobs GitHub-hosted and cacheless - pr-title.yml — title read as data and never printed; fork PRs stay GitHub-hosted - pty-sidecar.yml / pty-sidecar-attach.yml — build provenance attestation and the permissions it needs; a release cannot publish until attested - relay-deploy.yml — production approval, notice without Cloudflare secrets; token never on self-hosted runners - release-validate.yml — a skipped/failed job can stop a release, never pass one; actions: read; only a whole yes passes; ci skipped only for a verified yes; release run GitHub-hosted and cacheless - release.yml — GitHub-hosted and no shared cache for preflight, server build and publish; Ed25519-signed manifest, no secret in the build; installer runs no host the manifest does not name; signing key reaches one job, main-only environment, nothing published unsigned; provenance attestation; checkout keeps no Git credential; files verified against the committed key; shell build has no secret, deploy runs no repository code; no checkout next to the deploy token; Cloudflare token never on self-hosted runners; deploy tools from GitHub, not the build job; write token stays out of build and deploy - remote-bundles.yml — the published bundle builds GitHub-hosted with no shared cache - shell-preview.yml — by hand from main, production approval, never touches app.ovis.sh; no secret in build; fixed non-production branch; same token and cache rules as release - windows-app.yml — GitHub-hosted, no shared cache; the only job with a write token, never for a PR - windows-terminal-qa.yml — GitHub-hosted only: a fork's PR never reaches self-hosted runners ### app/android - app/build.gradle — upload key outside the repo; never signs with part of a key - DirectSocket.java — never TLS, Noise proves the PC; private carrier address only; Tailscale 100.64/10 - HerdrShellPlugin.java — url carries the pairing code; a PC's page never gets the app link - MainActivity.java — sign-in steps judged hop by hop; only a page of this very PC counts; bridge only for Ovis, no public-http or https→http hop; which app links open what; exported activity needs the alert's proof - OvisAuthPlugin.java — only a return naming the state; another app can send this address - OvisDirectPlugin.java — app origin only, private address only, Noise proves the PC; an earlier page's open opens nothing; error page shares the bridge - PCStore.java — cookies in the WebView's store; pairing code kept in memory only; relay PC by relay ID, pane in the fragment; selection injected as JSON never code; scope checked segment by segment, no dot segments, encoded `/` or `\`; only an Ovis origin gets the bridge; probes never send the pairing code; insecure-hop rules; cleartext exceptions (IPv4, IPv6, names); JSON depth bound; Capacitor compares scheme and host only - SaveImagePlugin.java — IS_PENDING hides the file until whole; one folder per shared picture - SavedImage.java — last path part, no leading dot; save budget - PCStoreTest.java — strict JSON escapes; nesting deeper than the stack; non-dotted IPv4 forms; relay ID never moves an alert; values reach the page as they came - AlertProof.java / PushStore.java / PushStoreTest.java — exported activity, only our PendingIntents carry the proof; keys in private preferences bound to token and PC key; receiving never creates or replaces keys; constant-time compare; proof from 32 random bytes - OvisMessagingService.java / OvisPushPlugin.java / PushKeys.java / WebPushDecrypt.java — relay sends ciphertext; one endpoint per PC pinned to its key; VAPID key; p256dh 65 bytes, auth 16 bytes; mismatch only on a completed check; RFC 8188 header layout ### app/electron - electron-builder.yml — prerm stops only the removing user's server; Developer ID credentials; PTY host signed first; NSIS per user, no admin - linux/before-remove.sh — "00 is root too", never root - scripts/build.ts, scripts/runtimes.ts — downloads checked against SHA-256 pins; cached copies only while they hash right; PTY host checked against the release manifest - scripts/e2e.ts — fresh temporary HOME; run-id marker; only this run's app is driven; test certificate; cleanup ends only this run's processes - scripts/notarize-dmg.mjs, scripts/sign-mac.mjs — notary key and fail-closed rules; record takes the signed bytes' hash - src/accountSignIn.ts (+ test) — loopback callback, only a return naming the state; trusted account origins - src/children.ts (+ test), src/appimage.ts — own hc session, never another client's HC_SOCKET; loopback only, settings dropped; process identity before any kill, reused pid left alone - src/main.ts, src/preload.ts, src/openLink.ts — deep links and IPC only to the server's own pages; windows a page opens carry no preload; microphone, never camera; .deb as root only when asked; link values limited and length-bound - src/updates.ts (+ test) — .deb as root behind the prompt, no --allow-* flags; electron-updater's shell escaping - windows/replace-old-setup.ps1 — what proves an exe is the old app; a Run value the user changed is theirs ### app/ios, app/mac - HerdrBridgeViewController.swift — cookies in WebKit's store; relay PCs share an origin; pairing code in memory only; insecure hops; cleartext boundary; scope checks and `../` escape; strict JSON escapes; links outside the PC go to Safari; bridge only for Ovis redirects - HerdrShellPlugin.swift, OpeningWatch.swift — first page carries the pairing code; home network or tailnet opens only from inside - OvisDirectPlugin.swift — main frame of the app's origin only; private ws:// allowlist; Noise proves the PC; per-call approval, dropped at navigation - OvisPushPlugin.swift, NotificationService.swift, PushKeys.swift, WebPushDecrypt.swift, ScopePath.swift — endpoint pinned to the PC's key, APNs token stays at the relay; relay never holds a reading key; SEC 2 scalar range; extension never rotates keys; no dot segments or encoded separators - carry-drafts.js, WebPage.swift — another port is another origin; nothing sent by itself; drafts only to this Mac's server; navigation, download and microphone grants by origin - Model.swift, Run.swift, OvisMacTests.swift — installer only from ovis.sh's HTTPS hosts; `*.ts.net` only; launcher identity, no symlink escape; this user's processes only; log symlink handling - build.sh — signing identity, keychain and notary key inputs; keychain as one argument ### app/windows, app/web, crates - app/web/connect.js, shell.js — warned public http address; relay PC bound to its scope; no HTML sink with the native bridge; loopback and cleartext exceptions; pairing code kept, offer origin and scope rules - app/windows/release-attach.sh — GH_TOKEN, GH_REPO, RELEASE_TAG inputs - LoginItem.cs — HKCU, no administrator, MSIX startup task - MainForm.cs, Model.cs, Setup.cs, SetupTests.cs — an answer without the token is not "Tailscale missing"; token sources and precedence; never resend a refused token; linked checkout or fork never touched; stale pid can name another program, unverified pid left alone - Run.cs — only the child inherits the pipe and stdin; kills through the checked handle; quotes refused - crates/ovis-tui/prepare.sh — both commit ids checked - crates/ovis-tui/src/main.rs, tests/no_core_start.rs — typed input not sent after a reconnect; no core start (it would inherit the environment); shell quoting - crates/pty-sidecar/src/pty.rs — no bridge token in the child's environment ## Validation - `bun run check fast`: passed (18,593 unit tests, typecheck, build, generated themes and types). - `proof.sh` (comments only), `ready.sh` (required checks, threads, CodeRabbit, main) before the merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Summary Records the Android store build that went out with 0.5.5, so the next build does not reuse a version code Play already holds (as #3889 did for 0.5.4). - **Android:** `app/android/app/build.gradle` raises `versionCode` 9 -> 10 and `versionName` 1.0.2 -> 1.0.3. 1.0.3 (10) is the bundle built from v0.5.5 (`7de4a00a`) with only this bump on top. It was published to the internal testing track and sent to Google Play's production review on 2026-11-19. - **Docs:** the version rows in `app/store/android.md` show these numbers and name the last upload. - **iOS:** unchanged. Between v0.5.4 and v0.5.5 the iOS shell only had renames and comment changes (#4038, #4045, #4080), so no new iOS build was made; 1.0.1 (9) from v0.5.4 stays the App Store version. Why 0.5.5 needed an Android build: #3935 (tapping a push alert opens its pane on the PC that sent it) is Android native code. Nothing here builds or uploads. The next upload raises Android to `versionCode` 11. ## Validation - The 1.0.3 (10) bundle: `bundleRelease` with the upload key and google-services.json; `keytool -printcert` shows the upload key; the merged manifest reads versionCode 10 / versionName 1.0.3; `testReleaseUnitTest` passed (app 59, ovis-push 26, 0 failures). A release APK built from the same tree installed on a throwaway API 37 emulator, opened the connect screen and the demo, with no crash. - `bun run check fast` (old-desktop): workflow syntax, generated types and themes, typecheck and build passed. Unit tests had one failure, `src/lib/useAddressBar.hook.test.ts` "keeps the newly listed pane's address when a closed sheet's Back is still landing". It is unrelated to this change (gradle numbers and a doc table only), and the file passes 33/33 three times in a row when run alone on this branch. - No test reads `versionCode` or `versionName`.
What
The second area of the repo-wide comment pass (after #4036):
app/,crates/and.github/. About 2,500 comment lines go. Comments that explain a code surprise of our own were removed, and where a rename or a named constant could say the same thing, the code now says it.What stays is behaviour we cannot change, each checked against its source where one was available:
waitid, macOSpoll, Windows/cmd/PowerShell.needsskips, required check names), Apple notarization, Cloudflare Pages.Also kept: the MIT header of the QR port,
swift-tools-version, the# vX.Y.Zcomments on pinned actions (scripts/ci-setup.test.tsand Dependabot read them), and the pedanticSC2016suppressions.Not touched: the Capacitor-generated Gradle files and
CapApp-SPM/Package.swift.Every comment-only change was checked against
origin/main:"""strings handled.Only the files listed below differ in code.
Code changes (mechanical, no behaviour change)
crates/pty-sidecar):parse_int→js_parse_intandclamp→js_dimension(both copy JavaScript's parsing).Pushed::Overflowed/Dropped→FirstOverflow/StillOverflowing.finish(…, unexited)→finish(…, code_if_never_exited).DirectSocket.MAX_CLOSE_REASON_BYTES(123, RFC 6455) andMAX_BASE64_MESSAGEreplace two bare expressions.PCStore.JS_TRIM_WHITESPACEnames the regex that copies JavaScript'strim().HerdrShellPlugin.showingConnectScreen().p256GroupOrder,expandOneBlock(HKDF-Expand of one block),NotificationService.deliverOnce.QrCodetables renamedLevelMEccLength/LevelMBlockCount, andByteModeIndicatornamed.awake.tsre-exports the server'sDESKTOP_ACTIVITY_FILEinstead of a second copy.preload.tsnames itsisConnectionScreengate.signHost→signHostAndRecordHash.escaped→electronUpdaterEscaped..github/workflows/mac-dmg.yml: dropped ashellcheck disable=SC2046. Nothing reads it, sinceactionlintruns with-shellcheck=.Left open (redesigns, not done here)
EXIT_PAUSED_LIMITsilently depends on the server'sOUTPUT_PAUSE_MAX_MS.master.write_all's error is dropped, which onlypumpnoticing EIO makes safe.EXIT_QUIETwait inpumpcould be a named function.self.partial = Vec::new()frees up to 17 MiB without saying so.mac-dmg.yml:security list-keychains … $(…)relies on word splitting; it should be amapfilearray (macOS-only, not testable here).MainActivity.pageBytesandOpeningWatch.permilleuse -1/0 sentinels.answerDelayandPCStore.answerByhand over a deadline through a mutable static.followRedirectneeds an outcome type.PCStore.Check.kindis a string where it should be an enum.PCStore.publicHttpandDirectSocket.carrier.PushKeys.proofcould behalvesMatch, andWebPushDecrypt.HEADER_BYTESbuilt from RFC 8188 fields.'ovis-page-leaving','ovis-select-pane'andMIN/MAX_BRIDGE_PROTOCOL(vsshared/machines.ts).src/lib/deepLink.ts:openLink.ts NAMES.app/web/shell.js homeHostvsOpeningWatch.swiftanderror.html.connect.cssvsshell.css: the palette.Saved.server.bunnames the server binary. It is a saved field, so a rename needs a migration.endLeftoverhides the oldserver/index.tsbranch.sign-mac.test.ts serverHostuses a run-timeimport()to dodge the typecheck.connect.js updateToldguards an ordering race.updates.tsshould be a per-platform feed set.PushKeys.getOrCreateshould split reader and owner, andScopePath.clean's name hides "only when a browser loads it as written".Model.PluginCommandchangesHERDR_PLUGIN_STATE_DIRfor the whole process for the old plugin id.carry-drafts.jstakes seven positional parameters.before-remove.shre-reads the uid so that00counts as root.crates/ovis-tui/prepare.sh ask: a failed git query counts as work.Validation
bun run check fast: passed (18,560 unit tests, typecheck, build, workflow syntax, generated files).scripts/pty-sidecar.test.tsneeds the crate committed: it refuses uncommitted crate sources by design.actionlint -shellcheck=(1.7.12) on every edited workflow: passes. The 19scripts/*tests that read workflow files pass.bun test app/electron/scripts/sign-mac.test.ts: passes.crates/andapp/, so this PR waits for them.🤖 Generated with Claude Code