Repository navigation
Add Mobile settings with direct iOS and Android downloads - #4513
Merged
Merged
Conversation
ymichael
force-pushed
the
bb/mobile-app-downloads
branch
from
September 29, 2026 23:33
a2fb64d to
7744717
Compare
ymichael
marked this pull request as ready for review
September 30, 2026 05:22
ymichael
force-pushed
the
bb/mobile-app-downloads
branch
from
September 30, 2026 05:26
3444ce8 to
4706e15
Compare
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.bb-android.apkrelease asset. Expose download links and metadata through the SDK andbb 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.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/mainat2ffb754e7b, 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.