Skip to content

refactor(app, crates, ci): drop comments the code can say, keep platform facts - #4038

Merged
devswha merged 1 commit into
mainfrom
refactor/no-comment-app
Nov 17, 2026
Merged

devswha merged 1 commit into
mainfrom
refactor/no-comment-app

Conversation

@devswha

@devswha devswha commented Nov 17, 2026

Copy link
Copy Markdown
Owner

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:

  • Platforms and frameworks: Capacitor 8.5/8.6, WebKit, WebView/Chromium, Electron and electron-updater, electron-builder.
  • Operating systems: launchd, POSIX/Linux signals and waitid, macOS poll, Windows/cmd/PowerShell.
  • Specs: RFC 8291/8188/6455/5869.
  • Services: GitHub Actions semantics (called workflows, needs skips, required check names), Apple notarization, Cloudflare Pages.

Also kept: the MIT header of the QR port, swift-tools-version, the # vX.Y.Z comments on pinned actions (scripts/ci-setup.test.ts and Dependabot read them), and the pedantic SC2016 suppressions.

Not touched: the Capacitor-generated Gradle files and CapApp-SPM/Package.swift.

Every comment-only change was checked against origin/main:

  • TypeScript and JavaScript: by syntax tree.
  • Java, Swift, C#, Rust and Gradle: comments stripped, with char literals and Swift """ strings handled.
  • YAML, shell and PowerShell: whole-line comments dropped.

Only the files listed below differ in code.

Code changes (mechanical, no behaviour change)

  • Rust (crates/pty-sidecar):
    • parse_int → js_parse_int and clamp → js_dimension (both copy JavaScript's parsing).
    • Pushed::Overflowed/Dropped → FirstOverflow/StillOverflowing.
    • finish(…, unexited) → finish(…, code_if_never_exited).
  • Android:
    • DirectSocket.MAX_CLOSE_REASON_BYTES (123, RFC 6455) and MAX_BASE64_MESSAGE replace two bare expressions.
    • PCStore.JS_TRIM_WHITESPACE names the regex that copies JavaScript's trim().
    • HerdrShellPlugin.showingConnectScreen().
  • iOS: p256GroupOrder, expandOneBlock (HKDF-Expand of one block), NotificationService.deliverOnce.
  • Windows: QrCode tables renamed LevelMEccLength/LevelMBlockCount, and ByteModeIndicator named.
  • Electron:
    • awake.ts re-exports the server's DESKTOP_ACTIVITY_FILE instead of a second copy.
    • preload.ts names its isConnectionScreen gate.
    • signHost → signHostAndRecordHash.
    • The test helper escaped → electronUpdaterEscaped.
  • .github/workflows/mac-dmg.yml: dropped a shellcheck disable=SC2046. Nothing reads it, since actionlint runs with -shellcheck=.

Left open (redesigns, not done here)

  • pty-sidecar:
    • EXIT_PAUSED_LIMIT silently depends on the server's OUTPUT_PAUSE_MAX_MS.
    • master.write_all's error is dropped, which only pump noticing EIO makes safe.
    • The EXIT_QUIET wait in pump could 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 a mapfile array (macOS-only, not testable here).
  • Android:
    • MainActivity.pageBytes and OpeningWatch.permille use -1/0 sentinels.
    • answerDelay and PCStore.answerBy hand over a deadline through a mutable static.
    • followRedirect needs an outcome type.
    • PCStore.Check.kind is a string where it should be an enum.
    • The private address ranges are duplicated in PCStore.publicHttp and DirectSocket.carrier.
    • PushKeys.proof could be halvesMatch, and WebPushDecrypt.HEADER_BYTES built from RFC 8188 fields.
  • Values duplicated between languages:
    • Java and TS: 'ovis-page-leaving', 'ovis-select-pane' and MIN/MAX_BRIDGE_PROTOCOL (vs shared/machines.ts).
    • Electron and src/lib/deepLink.ts: openLink.ts NAMES.
    • app/web/shell.js homeHost vs OpeningWatch.swift and error.html.
    • connect.css vs shell.css: the palette.
  • Electron:
    • Saved.server.bun names the server binary. It is a saved field, so a rename needs a migration.
    • endLeftover hides the old server/index.ts branch.
    • sign-mac.test.ts serverHost uses a run-time import() to dodge the typecheck.
    • connect.js updateTold guards an ordering race.
    • The beta + win32 branch in updates.ts should be a per-platform feed set.
  • Other platforms:
    • iOS: PushKeys.getOrCreate should split reader and owner, and ScopePath.clean's name hides "only when a browser loads it as written".
    • Windows: Model.PluginCommand changes HERDR_PLUGIN_STATE_DIR for the whole process for the old plugin id.
    • mac: carry-drafts.js takes seven positional parameters.
    • Linux: before-remove.sh re-reads the uid so that 00 counts 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.ts needs the crate committed: it refuses uncommitted crate sources by design.
  • actionlint -shellcheck= (1.7.12) on every edited workflow: passes. The 19 scripts/* tests that read workflow files pass.
  • bun test app/electron/scripts/sign-mac.test.ts: passes.
  • Comment-only check as above. The code differences are exactly the changes listed.
  • Not run here: cargo (no toolchain on this PC), Gradle, Xcode, the C# build. GitHub's runners build crates/ and app/, so this PR waits for them.

🤖 Generated with Claude Code

…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]>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added an opening screen in the Android app with loading progress, readiness checks, and options to retry, keep waiting, or change PCs.
    • External links from the Android app now open in the browser, while sign-in flows remain in the app.
    • Desktop update notifications are now available beyond the desktop connection screen.
  • Bug Fixes
    • Stopping a pending connection now happens before a newly submitted address is checked, including when that address is invalid.

This pull request removes explanatory comments and documentation across workflows and application code. It also changes several workflow triggers, Android connection handling, Electron bridge exposure, and internal helper names in Electron, iOS, and the PTY sidecar.

Changes: Repository maintenance and behavior updates

Layer / File(s) Summary
Workflow triggers and release automation
.github/workflows/*, .github/actions/setup-ci/action.yml, .github/dependabot.yml
Comments are removed or revised across workflows. The hook-kill workflow no longer runs on pushes to main or explicitly on ready_for_review. The relay deployment workflow now matches every push to main, without its previous path filter.
Android connection and bridge flow
app/android/app/src/main/java/sh/ovis/app/*, app/android/ovis-push/*, app/android/*
MainActivity adds page-readiness polling and updates opening-cover and alert handling. Socket size limits and whitespace matching use named constants. Other changes remove comments and documentation.
Electron connection, updates, and signing
app/electron/src/*, app/electron/scripts/*, app/electron/renderer/*, app/electron/electron-builder.yml, app/electron/linux/*, app/electron/windows/*, app/scripts/build-web.ts, app/web/*
The update bridge is exposed on all protocols, and open stops a pending request before parsing the submitted address. The activity filename is re-exported from the server module. The macOS signing helper is renamed, with its caller and tests updated. Update tests add inherited AppImage environment cases and apostrophe escaping.
iOS bridge and push updates
app/ios/App/*, app/ios/OvisPushCore/*, app/ios/OpeningWatchCheck/*, app/ios/ScopePathCheck/*
The notification callback helper and Web Push expansion helper are renamed. The P-256 group-order constant is renamed; scalar validation remains unchanged. Comments and documentation are removed throughout the listed code and tests.
macOS and Windows application maintenance
app/mac/*, app/windows/*
Comments and XML documentation are removed. Windows QR-code tables receive more specific names, with their values and calculations unchanged.
Rust terminal and PTY sidecar
crates/ovis-tui/*, crates/pty-sidecar/*, scripts/ovis-site.test.ts
The PTY sidecar renames its integer parser and input-overflow variants, and updates related call sites and tests. The site test now extracts desktop artifact names from the latest-linux.yml loop.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Refactor

Suggested labels: github_actions

Merge Risk: Minimal · up to 5dfa7

This change mostly removes comments and renames internal helpers without altering behavior. The workflow triggers, update bridge and signing helpers were checked and behave as before. Merge once the CI runs for the native builds (Cargo, Gradle, Xcode, C#) pass.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "refactor(app, crates, ci): drop comments the code can say, keep platform facts" matches the changeset, which removes about 2,500 comment lines across app/, crates/ and .github/ and keeps pl…
Description check Passed The description covers what changed, which comments stay and why, the mechanical code changes, items left open, and validation performed. It does not follow the repository template exactly. It has no …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "refactor(app, crates, ci): drop comments the code can say, keep platform facts" matches the changeset, which removes about 2,500 comment lines across app/, crates/ and .github/ and keeps platform, OS, spec and service notes. It also names the small code renames and constants, which are secondary. The title is long at 78 characters but is specific and conventional.

Full details: Description check

Explanation

The description covers what changed, which comments stay and why, the mechanical code changes, items left open, and validation performed. It does not follow the repository template exactly. It has no CONTRIBUTING.md or changelog.d reference, and the Validation section does not state the check commands in the template's form. Those gaps are minor, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between dad4ce6 and 5dfa76d.

Files selected for processing: 127

  • .github/actions/setup-ci/action.yml
  • .github/dependabot.yml
  • .github/workflows/beta.yml
  • .github/workflows/ci-flakes.yml
  • .github/workflows/ci.yml
  • .github/workflows/cla.yml
  • .github/workflows/desktop.yml
  • .github/workflows/growth-snapshot.yml
  • .github/workflows/hook-kill-tests.yml
  • .github/workflows/mac-dmg.yml
  • .github/workflows/omp-question-compat.yml
  • .github/workflows/ovis-tui.yml
  • .github/workflows/pages.yml
  • .github/workflows/pr-title.yml
  • .github/workflows/pty-sidecar-attach.yml
  • .github/workflows/pty-sidecar.yml
  • .github/workflows/relay-deploy.yml
  • .github/workflows/release-validate.yml
  • .github/workflows/release.yml
  • .github/workflows/remote-bundles.yml
  • .github/workflows/shell-preview.yml
  • .github/workflows/windows-app.yml
  • .github/workflows/windows-install.yml
  • .github/workflows/windows-terminal-qa.yml
  • app/android/app/build.gradle
  • app/android/app/src/main/java/sh/ovis/app/DirectSocket.java
  • app/android/app/src/main/java/sh/ovis/app/HerdrShellPlugin.java
  • app/android/app/src/main/java/sh/ovis/app/MainActivity.java
  • app/android/app/src/main/java/sh/ovis/app/OpeningWatch.java
  • app/android/app/src/main/java/sh/ovis/app/OvisAuthPlugin.java
  • app/android/app/src/main/java/sh/ovis/app/OvisDirectPlugin.java
  • app/android/app/src/main/java/sh/ovis/app/PCStore.java
  • app/android/app/src/main/java/sh/ovis/app/SaveImagePlugin.java
  • app/android/app/src/main/java/sh/ovis/app/SavedImage.java
  • app/android/app/src/test/java/sh/ovis/app/CapacitorBridgeFieldsTest.java
  • app/android/app/src/test/java/sh/ovis/app/DirectSocketTest.java
  • app/android/app/src/test/java/sh/ovis/app/OpeningWatchTest.java
  • app/android/app/src/test/java/sh/ovis/app/PCStoreTest.java
  • app/android/app/src/test/java/sh/ovis/app/SavedImageTest.java
  • app/android/build.gradle
  • app/android/ovis-push/build.gradle
  • app/android/ovis-push/src/main/java/sh/ovis/push/AlertProof.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/OvisMessagingService.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/OvisPushPlugin.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/PushKeys.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/PushStore.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/WebPushDecrypt.java
  • app/android/ovis-push/src/test/java/sh/ovis/push/PushStoreTest.java
  • app/android/ovis-push/src/test/java/sh/ovis/push/WebPushDecryptTest.java
  • app/android/settings.gradle
  • app/electron/electron-builder.yml
  • app/electron/linux/before-remove.sh
  • app/electron/renderer/connect.css
  • app/electron/renderer/connect.js
  • app/electron/scripts/build.ts
  • app/electron/scripts/e2e.ts
  • app/electron/scripts/notarize-app.mjs
  • app/electron/scripts/notarize-dmg.mjs
  • app/electron/scripts/notarize-dmg.test.ts
  • app/electron/scripts/runtimes.ts
  • app/electron/scripts/sign-mac.d.mts
  • app/electron/scripts/sign-mac.mjs
  • app/electron/scripts/sign-mac.test.ts
  • app/electron/src/accountSignIn.test.ts
  • app/electron/src/accountSignIn.ts
  • app/electron/src/appimage.test.ts
  • app/electron/src/appimage.ts
  • app/electron/src/awake.ts
  • app/electron/src/children.test.ts
  • app/electron/src/children.ts
  • app/electron/src/connectScreen.test.ts
  • app/electron/src/main.ts
  • app/electron/src/openLink.test.ts
  • app/electron/src/openLink.ts
  • app/electron/src/preload.ts
  • app/electron/src/text.ts
  • app/electron/src/updates.test.ts
  • app/electron/src/updates.ts
  • app/electron/src/windowClose.test.ts
  • app/electron/src/windowClose.ts
  • app/electron/windows/replace-old-setup.ps1
  • app/ios/App/App/AppDelegate.swift
  • app/ios/App/App/HerdrBridgeViewController.swift
  • app/ios/App/App/HerdrShellPlugin.swift
  • app/ios/App/App/OpeningWatch.swift
  • app/ios/App/App/OvisAuthPlugin.swift
  • app/ios/App/App/OvisDirectPlugin.swift
  • app/ios/App/App/OvisPushPlugin.swift
  • app/ios/App/App/ScopePath.swift
  • app/ios/App/OvisNotifications/NotificationService.swift
  • app/ios/OpeningWatchCheck/main.swift
  • app/ios/OvisPushCore/Sources/OvisPushCore/PushKeys.swift
  • app/ios/OvisPushCore/Sources/OvisPushCore/WebPushDecrypt.swift
  • app/ios/OvisPushCore/Tests/OvisPushCoreTests/PushKeyStoreTests.swift
  • app/ios/ScopePathCheck/main.swift
  • app/mac/Resources/carry-drafts.js
  • app/mac/Sources/OvisMac/Model.swift
  • app/mac/Sources/OvisMac/OvisMacApp.swift
  • app/mac/Sources/OvisMac/Run.swift
  • app/mac/Sources/OvisMac/WebPage.swift
  • app/mac/Tests/OvisMacTests/OvisMacTests.swift
  • app/mac/build.sh
  • app/scripts/build-web.ts
  • app/web/connect.js
  • app/web/shell.css
  • app/web/shell.js
  • app/windows/build.ps1
  • app/windows/release-attach.sh
  • app/windows/src/LoginItem.cs
  • app/windows/src/MainForm.cs
  • app/windows/src/Model.cs
  • app/windows/src/Paths.cs
  • app/windows/src/Program.cs
  • app/windows/src/QrCode.cs
  • app/windows/src/Run.cs
  • app/windows/src/Setup.cs
  • app/windows/tests/SetupTests.cs
  • crates/ovis-tui/Cargo.toml
  • crates/ovis-tui/prepare.sh
  • crates/ovis-tui/src/args.rs
  • crates/ovis-tui/src/main.rs
  • crates/ovis-tui/tests/no_core_start.rs
  • crates/pty-sidecar/src/frames.rs
  • crates/pty-sidecar/src/input.rs
  • crates/pty-sidecar/src/main.rs
  • crates/pty-sidecar/src/pty.rs
  • scripts/ovis-site.test.ts
Files with no reviewable changes: 86

  • .github/actions/setup-ci/action.yml
  • .github/dependabot.yml
  • .github/workflows/ci-flakes.yml
  • .github/workflows/ci.yml
  • .github/workflows/omp-question-compat.yml
  • .github/workflows/ovis-tui.yml
  • .github/workflows/pages.yml
  • .github/workflows/pr-title.yml
  • .github/workflows/pty-sidecar-attach.yml
  • .github/workflows/relay-deploy.yml
  • .github/workflows/release.yml
  • .github/workflows/remote-bundles.yml
  • .github/workflows/shell-preview.yml
  • .github/workflows/windows-app.yml
  • .github/workflows/windows-install.yml
  • .github/workflows/windows-terminal-qa.yml
  • app/android/app/build.gradle
  • app/android/app/src/main/java/sh/ovis/app/OpeningWatch.java
  • app/android/app/src/main/java/sh/ovis/app/OvisAuthPlugin.java
  • app/android/app/src/main/java/sh/ovis/app/SaveImagePlugin.java
  • app/android/app/src/main/java/sh/ovis/app/SavedImage.java
  • app/android/app/src/test/java/sh/ovis/app/CapacitorBridgeFieldsTest.java
  • app/android/app/src/test/java/sh/ovis/app/OpeningWatchTest.java
  • app/android/app/src/test/java/sh/ovis/app/PCStoreTest.java
  • app/android/app/src/test/java/sh/ovis/app/SavedImageTest.java
  • app/android/build.gradle
  • app/android/ovis-push/build.gradle
  • app/android/ovis-push/src/main/java/sh/ovis/push/AlertProof.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/OvisMessagingService.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/OvisPushPlugin.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/PushKeys.java
  • app/android/ovis-push/src/main/java/sh/ovis/push/WebPushDecrypt.java
  • app/android/ovis-push/src/test/java/sh/ovis/push/PushStoreTest.java
  • app/android/ovis-push/src/test/java/sh/ovis/push/WebPushDecryptTest.java
  • app/android/settings.gradle
  • app/electron/electron-builder.yml
  • app/electron/linux/before-remove.sh
  • app/electron/renderer/connect.css
  • app/electron/renderer/connect.js
  • app/electron/scripts/build.ts
  • app/electron/scripts/notarize-app.mjs
  • app/electron/scripts/notarize-dmg.test.ts
  • app/electron/scripts/runtimes.ts
  • app/electron/src/accountSignIn.test.ts
  • app/electron/src/appimage.test.ts
  • app/electron/src/children.test.ts
  • app/electron/src/children.ts
  • app/electron/src/connectScreen.test.ts
  • app/electron/src/openLink.test.ts
  • app/electron/src/openLink.ts
  • app/electron/src/text.ts
  • app/electron/src/updates.ts
  • app/electron/src/windowClose.test.ts
  • app/electron/src/windowClose.ts
  • app/electron/windows/replace-old-setup.ps1
  • app/ios/App/App/AppDelegate.swift
  • app/ios/App/App/HerdrBridgeViewController.swift
  • app/ios/App/App/HerdrShellPlugin.swift
  • app/ios/App/App/OpeningWatch.swift
  • app/ios/App/App/OvisAuthPlugin.swift
  • app/ios/App/App/OvisDirectPlugin.swift
  • app/ios/App/App/OvisPushPlugin.swift
  • app/ios/App/App/ScopePath.swift
  • app/ios/OpeningWatchCheck/main.swift
  • app/ios/OvisPushCore/Tests/OvisPushCoreTests/PushKeyStoreTests.swift
  • app/ios/ScopePathCheck/main.swift
  • app/mac/Resources/carry-drafts.js
  • app/mac/Sources/OvisMac/Model.swift
  • app/mac/Sources/OvisMac/OvisMacApp.swift
  • app/mac/Sources/OvisMac/Run.swift
  • app/mac/Sources/OvisMac/WebPage.swift
  • app/mac/Tests/OvisMacTests/OvisMacTests.swift
  • app/mac/build.sh
  • app/web/connect.js
  • app/web/shell.css
  • app/web/shell.js
  • app/windows/build.ps1
  • app/windows/release-attach.sh
  • app/windows/src/Model.cs
  • app/windows/src/Program.cs
  • app/windows/tests/SetupTests.cs
  • crates/ovis-tui/Cargo.toml
  • crates/ovis-tui/prepare.sh
  • crates/ovis-tui/src/args.rs
  • crates/ovis-tui/src/main.rs
  • crates/ovis-tui/tests/no_core_start.rs

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.

@devswha
devswha merged commit ac48916 into main Nov 17, 2026
49 of 50 checks passed
@devswha

devswha commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head 5dfa76d55f6d as ac4891644cc3 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
claude CLEAR
machine-proof CLEAR

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 (signHost to signHostAndRecordHash, expand to expandOneBlock, clamp to js_dimension, the Pushed variants, which nothing serializes), named constants equal to the values they replace (MAX_BASE64_MESSAGE, MAX_CLOSE_REASON_BYTES, ByteModeIndicator), and a re-export of DESKTOP_ACTIVITY_FILE with the same value. Web Push decryption gives identical bytes, and the P-256 group order is unchanged.

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 (ovis-site.test.ts) was changed by this pull request and still fails when its loop changes.

One deleted comment was a tool directive (# shellcheck disable=SC2046 in mac-dmg.yml); CI runs actionlint with shellcheck off, so nothing reads it.

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.

@devswha
devswha deleted the refactor/no-comment-app branch November 17, 2026 13:05
devswha added a commit that referenced this pull request Nov 17, 2026
## 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]>
devswha added a commit that referenced this pull request Nov 17, 2026
…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]>
devswha added a commit that referenced this pull request Nov 17, 2026
## 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]>
devswha added a commit that referenced this pull request Nov 17, 2026
…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]>
devswha added a commit that referenced this pull request Nov 17, 2026
…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]>
devswha added a commit that referenced this pull request Nov 19, 2026
## 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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant