Repository navigation
Description
If you haven't already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.4.25-1 (native shell) / stale NewDot bundle 9.3.91-0
Reproducible in staging?: Needs Reproduction (Unable to reproduce — single isolated server-side event)
Reproducible in production?: Needs Reproduction
If this was caught during regression testing, add the test name, ID and link from BrowserStack:
Email or phone of affected tester (no customers): cole@expensify.com
Logs: VictoriaLogs investigation — request_id a143bbd4a9ef3335-SJC on 2026-07-01T07:35:23Z
Expensify/Expensify Issue URL:
Issue reported by: @vit (internal investigation)
Slack conversation: #Expensify Bugs — cole reported 2026-07-02 ~4:39 PM
Action Performed:
- Open the iOS native app on the latest TestFlight staging build
- Use the app normally (background/resume)
- Observe the full-screen Update required blocker
Expected Result:
Users on the latest staging build should never see the forced-update screen.
Actual Result:
cole@expensify.com saw the Update required / Please update to the latest version of New Expensify screen on iOS native TestFlight while already on the latest staging build. Hard-quitting the app cleared the screen and the app worked normally afterward.
Workaround:
Force-quit and reopen the app.
Platforms:
Select the officially supported platforms where the issue was reproduced:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
Issue observed in the following devices
- iOS (TestFlight staging)
- Native shell:
Expensify/9.4.25.1 CFNetwork/3860.600.12 Darwin/25.5.0 - Screenshot attached in Slack thread (
IMG_3948.PNG)
Screenshots/Videos
See Slack thread screenshot — full-screen Update Required blocker with green Update button.
Investigation summary (for implementers)
What triggered the screen
The forced-update UI is shown when any authenticated API returns jsonCode: 426:
- Backend (Web-Expensify/lib/Request.php) compares
appversionparam againstMINIMUM_APP_VERSION(9.4.9at time of incident) - Frontend (App/src/libs/HttpUtils.ts) calls
alertUser()→ setsONYXKEYS.RAM_ONLY_UPDATE_REQUIRED - App/src/Expensify.tsx throws
CONST.ERROR.UPDATE_REQUIRED→ error boundary renders App/src/pages/ErrorPage/UpdateRequiredView.tsx
The flag is RAM-only (App/src/setup/index.ts ramOnlyKeys) and is never cleared in-session — only a process restart resets it. That explains the self-recovery after hard-quit.
Server logs for cole@expensify.com (2026-07-01)
Exactly one request triggered the 426 across the entire Jun 15 – Jul 3 window:
| Field | Value |
|---|---|
| Timestamp | 2026-07-01T07:35:23Z |
| request_id | a143bbd4a9ef3335-SJC |
| command | ReconnectApp |
| platform | ios |
| referer | ecash |
| appversion in request body | 9.3.91-0 |
| nginx User-Agent (native shell) | Expensify/9.4.25.1 |
| minimum at time | 9.4.9 |
| needsUpgrade | true |
| jsonCode | 426 |
Log sequence:
[ForceAppUpgrade] Comparing app version to minimum ~~ appVersion: '9.3.91-0' minimum: '9.4.9' needsUpgrade: '1'
Deprecated app version detected - forcing the user to upgrade
API threw ExpError ... exceptionJsonCode: '426'
All other cole requests that day used current versions (ecash9.4.24-0, ecash9.4.25-1, iphone9.4.25-1). The stale ecash9.3.91-0 source appeared once total.
Root cause hypothesis
The iOS HybridApp ran a stale NewDot JS bundle (9.3.91-0) inside a current native shell (9.4.25.1). The appversion sent on API calls comes from bundled package.json (App/src/libs/Network/enhanceParameters.ts → appversion: pkg.version), so it reflected the old JS bundle, not the native binary version.
On app resume, ReconnectApp fired with the stale version → backend correctly returned 426 → client stuck on Update Required until restart loaded a fresh bundle.
Open question for implementer: How did HybridApp retain/serve bundle 9.3.91-0 after a TestFlight update to 9.4.25? Investigate bundle loading, OTA update, and cache invalidation in Mobile-Expensify / @expensify/react-native-hybrid-app.
What this is NOT
- Not a backend false positive —
version_compare('9.3.91-0', '9.4.9', '<')is correct - Not cole running an actually outdated build — native User-Agent confirms
9.4.25.1 - Not related to the recent minimum-version bump logic being wrong — the stale bundle predates the bump
Proposed fix direction
- Investigate HybridApp bundle lifecycle — ensure NewDot JS bundle version always matches or is invalidated when native app updates (TestFlight/OTA)
- Add defensive logging — when native shell version ≠ bundled
pkg.version, log/Sentry so future occurrences are diagnosable - (Optional follow-up, separate issue) — auto-recover from transient 426 if subsequent requests succeed with current version
Key files
- App/src/libs/Network/enhanceParameters.ts — sends
appversion - App/src/libs/HttpUtils.ts — detects 426
- App/src/libs/actions/UpdateRequired.ts — sets RAM-only flag
- App/src/pages/ErrorPage/UpdateRequiredView.tsx — UI
- Mobile-Expensify / HybridApp bundle loading (primary investigation target)
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022072936567612010703
- Upwork Job ID: 2072936567612010703
- Last Price Increase: 2026-07-03
Issue Owner
Current Issue Owner: @mkhutornyiMetadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Jul 3, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh (
External)[-]Update required screen shown on latest iOS staging build after stale NewDot bundle sends outdated appversion[/-][+][$250] Update required screen shown on latest iOS staging build after stale NewDot bundle sends outdated appversion[/+]melvin-bot commentedon Jul 3, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022072936567612010703
kitvasyl commentedon Jul 3, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
A current iOS TestFlight build can incorrectly show the blocking Update Required screen when a stale NewDot JavaScript bundle sends its bundled version to the API.
What is the root cause of that problem?
src/libs/Network/enhanceParameters.tsalways setsappversionfrompackage.json. In HybridApp, that value describes the loaded JavaScript bundle rather than the installed native shell. Therefore, a stale bundle can send an outdated version, receive a 426 response, and triggeralertUser()insrc/libs/HttpUtils.tseven though the native app is current.What changes do you think we should make in order to solve the problem?
Add a platform-specific app-version helper and use it in
enhanceParameters(). Its native implementation should returnDeviceInfo.getVersion()fromreact-native-device-info, while the web implementation should continue returningpackage.json's version. This ensures native requests report the installed binary version used to determine whether an App Store/TestFlight update is required, regardless of which embedded JS bundle is currently loaded.Add focused tests confirming that
enhanceParameters()uses the native shell version on native platforms and retains the package version on web.What alternative solutions did you explore? (Optional)
Clearing or ignoring the update-required flag after a 426 would hide this incident, but it would also allow genuinely unsupported native versions to bypass the required-update screen. Correcting the version sent by native requests addresses the false 426 without weakening that protection.
shivang-goliyan commentedon Jul 3, 2026
🚨 Edited by proposal-police: This proposal was edited at 2026-07-03 07:00:53 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
A user on the latest iOS staging build got stuck on the full-screen "Update required" blocker even though they were already on the newest binary. Force-quitting and reopening cleared it. So the app is telling people to update when they don't need to, and once it happens they can't get out of it without killing the process.
What is the root cause of that problem?
There are two separate things going on here, and it helps to split them.
First, why the 426 fired at all. Every API request tags on
appversion: pkg.versioningetBaseRequestParametersatsrc/libs/Network/enhanceParameters.ts:72, wherepkgis the bundledpackage.json(line 10). That is the JS bundle's version, not the native binary version. In this incident the native shell was current (User-AgentExpensify/9.4.25.1) but the running NewDot JS bundle was stale (9.3.91-0), soReconnectAppadvertised the old version and the backend correctly returned 426. The backend was right. The request just carried a version that didn't match the shell it was running in. Why a stale bundle survived the TestFlight update is a HybridApp bundle-lifecycle question (OTA / cache invalidation) that lives in Mobile-Expensify and@expensify/react-native-hybrid-app, not in this repo.Second, and this is the part the App repo owns: once that 426 lands, the session can never recover on its own.
HttpUtils.ts:197callsalertUser()onJSON_CODE.UPDATE_REQUIRED, which does a singleOnyx.set(RAM_ONLY_UPDATE_REQUIRED, true)insrc/libs/actions/UpdateRequired.ts:6.Expensify.tsx:65reads that flag and throwsCONST.ERROR.UPDATE_REQUIRED, and the error boundary rendersUpdateRequiredView. I grepped every reference toRAM_ONLY_UPDATE_REQUIREDand nothing anywhere sets it back tofalse. It's a RAM-only key (src/setup/index.ts:70), so the only thing that clears it is a process restart. That's exactly the "hard-quit fixes it" behavior in the report. A single stale/transient 426 permanently bricks the session until the app is killed, even after later requests go out with a perfectly current version.What changes do you think we should make in order to solve the problem?
The bundle-serving cause is native and should be tracked in Mobile-Expensify. What we can fix on the App side is the stuck-forever behavior and the blind spot that made this hard to diagnose.
Clear
RAM_ONLY_UPDATE_REQUIREDwhen a later authenticated request comes back healthy with a current version. Add a smallclearAlert()inUpdateRequired.tsthat sets the flag back tofalse, and call it from theHttpUtils.tsresponse handler on the non-426 success path so a good response undoes a stale one. That turns a permanent block into a self-healing one without weakening the real forced-upgrade case, since a genuinely outdated client keeps getting 426 and the flag stays set.Alongside that, add defensive logging in
enhanceParameters(or right beforealertUser()): compare the native binary version fromreact-native-device-infoDeviceInfo.getVersion()against bundledpkg.version, and log/Sentry when they diverge on HybridApp. We already usereact-native-device-infoelsewhere, so this is a small addition that would have named this exact mismatch immediately. Neither area has a test asserting 426 recovery today, so I'd add one covering set-then-clear on a subsequent successful request.What alternative solutions did you explore? (Optional)
Fix it purely in Mobile-Expensify by never serving a stale bundle after a native update. That addresses the trigger but leaves the App session with no way to recover if any transient 426 ever slips through, so it's worth doing but not sufficient on its own. I also considered logging-only (the version-mismatch signal) with no recovery change, but that just makes the next occurrence diagnosable while still forcing every affected user to force-quit.
nabi-ebrahimi commentedon Jul 3, 2026
Proposal
What is the root cause of that problem?
The API
appversionparameter is using the loaded NewDot JS bundle version instead of the installed native shell version.getBaseRequestParameters()always sendspkg.versionforappversion, so a stale HybridApp bundle can report an old version even when the TestFlight binary is current ([source](https://github.com/Expensify/App/blob/main/src/libs/Network/enhanceParameters.ts#L60-L73)). Queued requests also seedrequest.data.appversionfrom the same JS package version ([source](https://github.com/Expensify/App/blob/main/src/libs/Network/index.ts#L49-L54)). When that stale value is below the backend minimum, the API returnsjsonCode: 426; the client treats any 426 as update-required ([source](https://github.com/Expensify/App/blob/main/src/libs/HttpUtils.ts#L195-L198)), thenExpensifyreadsRAM_ONLY_UPDATE_REQUIREDand throws the blocking update error ([source](https://github.com/Expensify/App/blob/main/src/Expensify.tsx#L65-L65), [source](https://github.com/Expensify/App/blob/main/src/Expensify.tsx#L281-L283)). That makes a current native app look outdated until the process restarts and the RAM-only flag is reset.What changes do you think we should make in order to solve the problem?
Add a small platform-specific app-version helper and use it everywhere we populate the API
appversionfield. The default/web implementation should keep returningpkg.version. The native implementation should return the installed native app version, not the JS bundle version.For Android, the native version source can use
DeviceInfo.getVersion()because Android’sversionNamealready matches the API/package format like9.4.26-6([source](https://github.com/Expensify/App/blob/main/android/app/build.gradle#L114-L115)). For iOS, use the native bundle version and normalize it to the JS/API format by replacing the last dot with a hyphen, matching the existing native Sentry release formatting logic ([source](https://github.com/Expensify/App/blob/main/ios/SentryNativeSDKManager.m#L49-L54)); the iOS bundle currently storesCFBundleVersionas9.4.26.6while the API/package format is9.4.26-6([source](https://github.com/Expensify/App/blob/main/ios/NewExpensify/Info.plist#L25-L47)).Then update
getBaseRequestParameters()to setappversionfrom this helper instead ofpkg.version, so every request enhanced through the normal network path reports the installed app version on native ([source](https://github.com/Expensify/App/blob/main/src/libs/Network/enhanceParameters.ts#L60-L80)). Also update the queued-request seed inNetwork.post()to use the same helper instead ofpkg.version, so persisted/queued request data is consistent with the enhanced request metadata ([source](https://github.com/Expensify/App/blob/main/src/libs/Network/index.ts#L49-L54)). Finally, update the existingenhanceParametersunit coverage to mock the helper and assert thatappversioncomes from the helper rather than directly frompackage.json.What alternative solutions did you explore? (Optional)
I considered clearing or ignoring
RAM_ONLY_UPDATE_REQUIREDafter a restart/resume, but that would weaken the valid forced-update flow for genuinely unsupported native builds. I also considered fixing only the HybridApp stale-bundle cache, but the App API layer would still trust the wrong source of truth whenever a stale bundle is loaded.samranahm commentedon Jul 3, 2026
Proposal
What is the root cause of that problem?
On native HybridApp the version reported to the API describes the loaded JS bundle, not the installed native shell. In
Network/index.tsevery request hardcodesappversion: pkg.version:App/src/libs/Network/index.ts
Lines 51 to 56 in 3ad48ca
pkg.versioncomes from the bundledpackage.json. When a stale NewDot bundle (9.3.91-0) runs inside a current shell (9.4.25.1), the reconnect request carries9.3.91-0. The backend correctly compares that againstMINIMUM_APP_VERSIONand returns426, so the client is punished for a version the user is not actually running.HttpUtils.tsthen reacts to any426by unconditionally callingalertUser():App/src/libs/HttpUtils.ts
Lines 195 to 199 in 3ad48ca
alertUser()setsRAM_ONLY_UPDATE_REQUIRED:App/src/libs/actions/UpdateRequired.ts
Line 5 in 3ad48ca
That key is RAM-only (
setup/index.tsramOnlyKeys), so it is never persisted and, more importantly, never cleared mid-session:App/src/setup/index.ts
Lines 67 to 73 in 3ad48ca
Expensify.tsxreads the flag and keeps rendering the blocker until a process restart loads a fresh bundle, which is why hard-quit self-recovers:App/src/Expensify.tsx
Lines 62 to 67 in 3ad48ca
What changes do you think we should make in order to solve the problem?
Network/index.tsso native requests report the installed shell version, not the bundle. The native device version is already collected by the platform-specific device info module (getDeviceInfo,BaseInfo):App/src/libs/actions/Device/getDeviceInfo/types.ts
Line 3 in 3ad48ca
Add a small platform-specific
getAppVersion(native readsreact-native-device-info, web returnspkg.version) and use it whereappversionis assembled:App/src/libs/Network/index.ts
Lines 51 to 56 in 3ad48ca
Because the shell version stays current across bundle swaps, a stale JS bundle can no longer send an outdated
appversion, so the backend stops returning a false426.426branch ofHttpUtils.tsso any remaining occurrence is diagnosable, capturing the version actually sent alongsidepkg.version:App/src/libs/HttpUtils.ts
Lines 195 to 199 in 3ad48ca
This surfaces the shell-vs-bundle mismatch that caused this incident instead of silently blocking the user.
What alternative solutions did you explore? (Optional)
Before calling
alertUser(), re-issue a single lightweight authenticated command and only trigger the blocker if it also returns426. This confirms the version is genuinely below minimum and filters out a one-off transient reconnect, but it adds retry complexity and does not fix the wrong version being sent, so correcting the source version is preferable.Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
KJ21-ENG commentedon Jul 3, 2026
github-actions commentedon Jul 3, 2026
proposal: Expensify#95258
23 remaining items
mkhutornyi commentedon Jul 13, 2026
New nitro fetch PR is not merged yet
mountiny commentedon Jul 17, 2026
@chrispader have you been able to identify what from the native fetch pr caused this issue?
melvin-bot commentedon Jul 17, 2026
@chrispader @mountiny @staszekscp @mkhutornyi this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
melvin-bot commentedon Jul 17, 2026
@mkhutornyi Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Jul 21, 2026
@mkhutornyi 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
chrispader commentedon Jul 23, 2026
Addressed in #95518
melvin-bot commentedon Jul 23, 2026
@mkhutornyi Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!