Skip to content

Add Mobile settings with direct iOS and Android downloads - #4513

Merged
ymichael merged 22 commits into
mainfrom
bb/mobile-app-downloads
Sep 30, 2026
Merged

ymichael merged 22 commits into
mainfrom
bb/mobile-app-downloads

Conversation

@ymichael

@ymichael ymichael commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Android downloads passed through the bb server and bb connect tunnel. A 147 MB transfer coincided with disconnections and an offline screen. Duplicate download controls and separate mobile experiment flags made installing the apps confusing.

What changed

  • Add Settings → Mobile with stacked iOS TestFlight and Android download cards. Android downloads directly from the stable GitHub release asset; verified version/build, date, and size are supplementary, so metadata failures do not disable downloads. Remove the mobile experiment flags and Settings build/preparation flow. Explicit CLI cache/build commands remain available.
  • Share one compact access card between Machines and Mobile. Align the provider selector with its status and address; keep Manage muted and consistently inset. Setup shows provider instructions and a filled button below the selector. Loading uses a compact row, Direct URL errors appear below the field, and hidden pairing content leaves no empty gap. Both pages edit the same saved access configuration.
  • Refine phone pairing across desktop and narrow screens: center the QR code on phones, explain expired codes, provide an explicit network retry action, and use consistent inline error treatment with recovery guidance.
  • Move phone pairing into the Mobile card. The bb connect plugin owns the QR/code UI through settingsSection.experimental_page. It appears only when that plugin owns the selected provider and bb connect is connected; switching to Direct or another provider unmounts it. Pairing no longer appears on the plugin settings page.
  • Rename Remote access to bb connect, use ComputerCloudIcon, and link the sidebar phone shortcut to Mobile. Update onboarding, CLI guidance, and plugin API documentation.
  • Publish a stable bb-android.apk release asset. Expose download links and metadata through the SDK and bb settings mobile-app --json / --details. Bump the bundled Plugin SDK to 0.6.6 for the changed public contract, and require that version for bb connect.
  • Include CI cache-recovery fixes, SDK/CLI inventory updates, and the Docs editor test correction already verified on this branch.

How you verified

  • CI follow-up: full Connect, Plugin Guide, and scripts suites pass, along with the isolated Plugin Guide fork check. Desktop process tests pass on macOS and all eight pass on Linux; cleanup assertions accept reaped or zombie descendants while rejecting live descendants.

  • After rebasing onto origin/main at 2ffb754e7b, all 111 focused tests pass through Turbo: app access/mobile/settings-slot/sidebar tests (64), Connect app and server-access tests (37), server Android/release-metadata tests (6), and CI cache/selection tests (4).

  • Turbo typecheck/lint passes for the app, Connect plugin, server, CLI, SDK, and Plugin SDK. Rebase resolution preserves main’s 30-second CI test timeout and the isolated-cache fallback assertions.

  • Reviewed 22 card states at desktop and phone widths using actual components with fixture data, including setup, loading, missing/unavailable providers, URL validation, code generation/expiry, and pairing failures. Checked the expired-code layout at 320px and verified consistent selector alignment in the browser.

  • The provider-filter regression fails with the filter removed and passes with it restored.

  • Rebuilt isolated app: checked desktop and phone layouts, Machines and Mobile access controls, Direct URL editing, and live connected pairing visibility. Switching to Manual hides Add mobile device; switching back restores it. The plugin settings page has no duplicate pairing UI.

  • Earlier branch validation covered server/database/SDK/CLI contracts, builds/lint, workflow checks, and the real release APK checksum. Native installation and push delivery are not covered by these settings changes.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/mobile-app-downloads branch from a2fb64d to 7744717 Compare September 29, 2026 23:33
@ymichael
ymichael marked this pull request as ready for review September 30, 2026 05:22
@ymichael
ymichael force-pushed the bb/mobile-app-downloads branch from 3444ce8 to 4706e15 Compare September 30, 2026 05:26
@ymichael
ymichael merged commit 4242f15 into main Sep 30, 2026
20 checks passed
@ymichael
ymichael deleted the bb/mobile-app-downloads branch September 30, 2026 16:17
ymichael added a commit that referenced this pull request Sep 30, 2026
## Human comments

## What was wrong

#4513 made Settings → Mobile and `bb settings mobile-app` link straight
to the public GitHub `android-testing` release, so APK downloads no
longer go through the bb server or the bb connect tunnel. It kept the
old server-cache path as a CLI/SDK escape hatch: `bb settings
android-app-prepare` downloaded or locally built an APK into the server
data directory, and `/install/bb-android.apk` served it through the
server. That's the same proxied ~147 MB transfer that coincided with
tunnel disconnects. #4513 also removed the `androidTesting` flag that
gated this path, so any server with a cached APK now served it without
opting in. Nothing in the app calls this path.

## What changed

- **Server:** delete `GET /system/android-app`, `GET
/system/android-app/preparation`, `POST /system/android-app/prepare`,
`GET /install/bb-android.apk`, and the preparation, artifact and
local-build (`BB_ANDROID_SOURCE_DIR`) services, with their tests.
- **Contract/SDK:** remove `SystemAndroidAppResponse`,
`AndroidAppPreparation`, `AndroidAppPrepareRequest` /
`androidAppPrepareRequestSchema`, and the SDK methods
`system.androidApp()`, `system.androidAppPreparation()` and
`system.prepareAndroidApp()`.
- **CLI:** remove `bb settings android-app` and `bb settings
android-app-prepare`. `bb settings mobile-app [--details] [--json]` is
the supported way to get download links and metadata.
- **Docs:** remove the server-caching and local-build text from
`docs/configuration.md`, the mobile README, the bb guide customization
template, and the bb-cli skill's app-settings reference and command
index.
- **Kept:** `androidAppArtifactSchema`, which
`/system/mobile-app-releases` uses to parse `latest.json`; the EAS
publish workflow and `publish-android-apk.mjs`; and
`build-android-local.sh`, which the Android e2e workflow and `pnpm
build:android:local` use.

**Breaking:** the two CLI commands, three SDK methods and four routes
are gone; the routes now return 404. Servers that already prepared an
APK keep the orphaned `<dataDir>/android-testing/` directory, which
nothing reads anymore. No daemon wire change. The Plugin SDK surface is
unchanged (`check-plugin-sdk-version.mjs`).

## How you verified

- `pnpm exec turbo run typecheck lint` for `@bb/server`, `@bb/cli`,
`@bb/sdk`, `@bb/server-contract`, `@get-bb/plugin-sdk` and `@bb/app`
passes.
- `pnpm exec turbo run test` for `@bb/sdk` (114), `@bb/cli` (863) and
`@bb/server-contract` (78) passes.
- The server's `test/app` and `test/system` suites (32 files, 349 tests)
pass, including `mobile-app-releases.test.ts`.
- `node .github/workflows/check-plugin-sdk-version.mjs` reports "Plugin
SDK surface unchanged".
- `git grep` finds no remaining references to the removed routes,
commands, SDK methods, types or `BB_ANDROID_SOURCE_DIR`.

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
gpambrozio added a commit to gpambrozio/bb-menubar that referenced this pull request Nov 13, 2026
…an offline machine (#4)

* fix(pairing): point machine codes at Settings → Mobile

bb 0.45 (get-bb/bb#4513) removed the `mobileApp` experiment and moved
"Add mobile device" from Settings → Remote access to Settings → Mobile.
The pairing window and the README still told the user to run
`bb settings experiment mobileApp true`, which bb 0.49 rejects with
"Unknown experiment 'mobileApp'". Keep the plain `bb connect
machine-code` and amend the remote design's quoted copy to match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(core): re-pin to bb 0.49.0 and mark threads waiting on an offline machine

Since bb 0.45 (get-bb/bb#4271) a thread whose machine goes offline keeps
`status: "active"` until it reconnects, and bb reports
`runtime.displayStatus: "waiting-for-host"` for it. bb Icon read only
`status`, so a turn on a sleeping laptop spun the Working glyph all night
while bb itself showed nothing running.

- Decode `runtime.displayStatus` leniently: absent or unknown changes
  nothing.
- Such a thread stays in Working (it resumes when the machine is back),
  and its row says `machine offline`.
- It no longer draws the Working glyph by itself. Following bb 0.49.0's
  `RUNNING_RUNTIME_STATUSES`, `waiting-for-host` is not running, while
  background activity still is. Working draws the glyph only while one of
  its threads, past the cap included, runs now.
- Drop `activity.activeGoalCount`, which bb 0.49 removed
  (get-bb/bb#6613).
- Bring the thread page and the one thread-carrying /ws frame to 0.49.0's
  shape, checked against this Mac's bb 0.49.0 with GET requests only.
- Move the "pinned to bb 0.44.0" citations to 0.49.0 where 0.49.0 was
  checked, and amend the design spec's bucket rule 4, icon rule, and menu
  rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* chore(release): 0.2.0

Bump the version (package.json feeds the bundle's
CFBundleShortVersionString and CFBundleVersion), date the changelog
entry, and point the README's download and AGENTS.md's release note at
v0.2.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: marvin-ambrozio <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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