Skip to content

OpenBot Mobile: its Expo project, build profiles, a build workflow, and doctor and bundle checks in CI - #2176

Merged
tylerslaton merged 2 commits into
mobilefrom
openbot-mobile-local-dev-c00c6011
Nov 25, 2026
Merged

tylerslaton merged 2 commits into
mobilefrom
openbot-mobile-local-dev-c00c6011

Conversation

@tylerslaton

@tylerslaton tylerslaton commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

OpenBot Mobile (mobile/) had no path to a build that a person can install, and CI checked only its types. This adds the tooling around the app. It changes no screen and no request.

  • The Expo project. mobile/app.config.ts names the project the builds belong to: openbot in the Expo organization copilotkit. A company that builds the app for its own OpenBot still names its own project with EXPO_PUBLIC_EAS_PROJECT_ID, as docs/configuration.md says.
  • Build profiles. mobile/eas.json has development, development-simulator, preview and production. Each one builds the app for OpenBot Cloud (https://api.open.bot).
  • Checks on a pull request. The native types check now also runs Expo's doctor and bundles the JavaScript for iOS and Android. An import that does not resolve fails the pull request and not a phone.
  • A build workflow. OpenBot Mobile build starts a build on Expo's build service, by hand, for a profile and a platform. It does not offer the production profile.
  • One dependency fix. expo-font is now a direct dependency at the SDK's version. expo-symbols asks for any version, so npm installed 57 beside the SDK's 55. A native build takes one version of a native module, and the doctor fails on two.
  • A README. mobile/README.md says how to run the app, what CI checks and how a build is started.

CI's doctor leaves out one comparison: the installed packages against Expo's newest patch versions. That list changes when Expo publishes a patch, and it would fail a pull request that changed nothing. npm run doctor on a laptop still makes it.

Where this goes

This targets mobile, a long-lived branch for OpenBot Mobile, cut from main today. The work on the app lands there and comes to main in one merge later. main is merged into mobile often, so the two do not drift.

Before the build workflow can run

  • The workflow file must reach main. GitHub lists a hand-started workflow only when its file is on the default branch. Until then, a build is started from a terminal with eas build, which works from any branch.
  • A GitHub environment mobile-preview that holds EXPO_TOKEN, the token of a robot user of the Expo organization.
  • One person starts the first Android build and the first iOS build for a phone from a terminal. EAS creates the Android keystore and the iOS certificate then, and it keeps both.

Known, and not in this change

  • Xcode 27 does not build the Expo SDK the app is on (55). The SDK's CLI cannot find Xcode 27's simulator app, and one pod targets iOS 9. The move to SDK 58 is the next change. The README says what to do until then.
  • bun test ./mobile/tests shows 7 failures on main when the files run in one process: tolerant-reader.test.ts's mock.module leaks into generated-client.test.ts. Each file passes alone. This change does not touch either file.
  • Updates sent to installed apps without a store release, and uploads to the stores, are not set up yet.

Where it runs

Nothing here runs in the server.

  • New state that outlives a request? None.
  • What happens on the second replica? Nothing: no server code changes.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No. The new workflow runs only when a person starts it.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row. There are none.
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json.

Changelog

  • No line. A deployment behaves no differently afterwards: this is build tooling for an app that is not released yet.

Proof

Run on a Mac, on this branch after a rebase onto main:

  • npm ci --prefix mobile --ignore-scripts with npm 10.9 (Node 22's, as CI) and with npm 11: installs from the lockfile.
  • npm run --prefix mobile typecheck: passes.
  • npm run --prefix mobile doctor with CI's two variables: 19/19 checks passed. Before the expo-font fix it failed on duplicate native modules.
  • npm run --prefix mobile bundle: one Hermes bundle each for iOS and Android.
  • npx expo config --json: owner copilotkit, slug openbot, and the project id. With EXPO_PUBLIC_EAS_PROJECT_ID set: that id and no owner.
  • mobile/eas.json validates against the EAS CLI's JSON schema.
  • zizmor on ci.yml and mobile-build.yml with the repository's configuration: no findings.
  • bun test on tests/frozen-installs.test.ts, scripts/ci-changes.test.ts, desktop/scripts/signing-workflows.test.ts and mobile/tests/generated-client.test.ts: pass.

Not proven: the build workflow has never run, because it needs the environment and the token above. The Android run on a machine was not tried.

🤖 Generated with Claude Code

…ctor and bundle checks in CI

The phone app had no path to a build anybody could install, and CI only checked its types.

- mobile/app.config.ts names the app's Expo project (copilotkit/openbot). A company that builds
  the app for its own OpenBot still names its own project with EXPO_PUBLIC_EAS_PROJECT_ID.
- mobile/eas.json has the build profiles: development, development-simulator, preview and
  production, each built for OpenBot Cloud.
- The `native types` check also runs Expo's doctor and bundles the JavaScript for iOS and
  Android, so an import that does not resolve fails the pull request.
- .github/workflows/mobile-build.yml starts a build on Expo's build service, by hand.
- expo-font is a direct dependency at the SDK's version. expo-symbols asks for any version, so npm
  installed 57 beside the SDK's 55, and a native build takes one version of a native module.
- mobile/README.md says how to run the app, what CI checks and how a build is started.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@tylerslaton tylerslaton changed the title Phone app: its Expo project, build profiles, a build workflow, and doctor and bundle checks in CI OpenBot Mobile: its Expo project, build profiles, a build workflow, and doctor and bundle checks in CI Nov 25, 2026
@tylerslaton
tylerslaton changed the base branch from main to mobile November 25, 2026 04:46
tylerslaton added a commit that referenced this pull request Nov 25, 2026
GitHub lists a hand-started workflow only when its file is on the default branch. The work on
OpenBot Mobile is on the long-lived `mobile` branch, so this one file comes to main ahead of it.
The file is the same as the one on its way to `mobile` (#2176), so the later merge adds nothing.

Co-authored-by: Claude Fable 5.2 <[email protected]>
@tylerslaton
tylerslaton merged commit f45febb into mobile Nov 25, 2026
24 checks passed
@tylerslaton
tylerslaton deleted the openbot-mobile-local-dev-c00c6011 branch November 25, 2026 04:54
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