Repository navigation
Conversation
ffi-rs@1.3.2 fails to load on Android arm64 because its prebuilt binary references an undefined __clear_cache symbol, breaking @ff-labs/fff-node at startup. Upgrade ffi-rs to 1.3.7 across apps/server, apps/desktop, packages/shared, and pnpm-lock.yaml so the Android arm64 native addon loads and indexes cleanly. Co-authored-by: Antigravity (Gemini 4 Neon) <noreply@google.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
On Android arm64 (Termux, Node
v26.13.1),ffi-rs@1.3.2fails to load at server startup with:This prevents
@ff-labs/fff-nodefrom loading at startup even though@ff-labs/fff-node@0.11.0already ships@ff-labs/fff-bin-android-arm64.Change
Bump
ffi-rsfrom1.3.2to1.3.7acrossapps/server/package.json,apps/desktop/package.json,packages/shared/package.json, andpnpm-lock.yaml. Upstreamffi-rs@1.3.7fixes the Android arm64 build to linklibclang_rt.builtinsvia the Android NDK, allowing@ff-labs/fff-nodeto load and index natively on Android/Termux.Split out from #42200 so each fix is reviewed independently (see #42200 for the companion Android SELinux hardlink fallback; full native Termux setup also depends on upstream microsoft/node-pty#1019). Creating the fork, commits, and this PR were all done using T3 Code itself running inside Termux via
t3 serveand controlled from the T3 Code Android app (the web UI was also tested and used to configure Antigravity).Scope
Patch-level dependency bump (
ffi-rs1.3.2->1.3.7) across the three workspace manifests that pinffi-rspluspnpm-lock.yaml, with no source code changes. No prior issue was filed because the failure is a straightforward missing-symbol crash on Android arm64 already fixed upstream inffi-rs@1.3.7.Verification
Verified directly on Android arm64 (Termux, Node
v26.13.1, pnpm12.14.0):@ff-labs/fff-node@0.11.0+ffi-rs@1.3.7end-to-end: RanFileFinder.create,waitForIndexReady(5000), andfileSearch("package.json")against the liveapps/servercheckout and in a clean temporary directory: returnedfff-node ready: { ok: true, value: true }andfff-node search ok: true items: [ 'package.json' ]with no__clear_cacheerror.t3 servedirectly withffi-rs@1.3.7(without any lazy-loading workaround inWorkspaceSearchIndex), controlled it from the T3 Code Android app, and tested the web UI directly.pnpm install --lockfile-only --ignore-scriptspassed pnpm's supply-chain policy check (2205 entries) withpnpm-lock.yamldiff strictly limited toffi-rsand@yuuang/ffi-rs-*(1.3.2->1.3.7);oxfmt --checkpassed on all 3 modifiedpackage.jsonfiles.vp(vite-plus) does not ship anandroid-arm64native binding yet, sovp run check:changedrelies on GitHub Actions CI.Written with Gemini 4 Neon via Antigravity (running inside T3 Code on Android/Termux).