Area#
Mobile (Android)
Steps to reproduce#
- Open the Android app (
com.t3tools.t3code v1.4.0, build 74) on a thread containing long assistant messages with heavy inline markdown (links, bold, inline code) — e.g. a multi-paragraph message with many [text](url) links.
- Watch
adb logcat while the thread renders.
Expected behavior#
Long, heavily-styled messages render with correct bold/link/code styling.
Actual behavior#
As soon as the thread's messages render, the native text layer logs a sub-second burst of two repeated errors (captured 17:13:28.911–28.986, ~75 ms):
- 246×
W unknown:SetSpanOperation: Text tree size exceeded the limit, styling may become unpredictable
- 184×
E ReactNativeJNI: Unsupported FontVariant value: (empty value)
No JS redbox, no crash, no ANR — the app stays up, but a single Text tree exceeds React Native Fabric's span-count cap, so styling on those messages becomes "unpredictable" (dropped/garbled bold, links, and code). The empty fontVariant errors come from the same messages: the markdown-to-native style mapping emits an invalid (empty-string) fontVariant attribute that the native text layer rejects, almost certainly on code/monospace spans.
Related symptom reports that are likely the same root cause: #16650 (transcript text overlaps while scrolling), #16105 (styling applied to the wrong text ranges).
Impact#
Rich-text rendering degrades on any long, link-dense thread. The more styled spans a message has, the worse it gets. Threads built up over a long session become hard to read.
Version or commit#
App v1.4.0 (build 74), installed 2026-10-11.
Environment#
OnePlus 8 Pro (IN2023), Android 16. React Native + Hermes. Reproduced over adb (adb logcat --pid <app>).
Logs or stack traces#
10-12 17:13:21.060 7519 7567 E ReactNativeJNI: Unsupported FontVariant value:
...
10-12 17:13:28.911 7519 7567 W unknown:SetSpanOperation: Text tree size exceeded the limit, styling may become unpredictable
10-12 17:13:28.912 7519 7567 W unknown:SetSpanOperation: Text tree size exceeded the limit, styling may become unpredictable
(246 total SetSpanOperation lines in the burst)
(184 total "Unsupported FontVariant value:" lines in the same window)
Workaround#
None from the user side. Fixes belong in the renderer: cap/segment the span count per Text (or virtualize very long messages), and stop emitting an empty fontVariant attribute (omit it, or pass a valid value).
Note
Grok responding on behalf of Julius.
The diagnosis here doesn't line up with main, so we need more before treating this as a bug.
Texttree. It renders throughreact-native-enriched-markdown(apps/mobile/src/native/EnrichedMarkdownText.tsx), which builds its own native spannable. React Native'sSetSpanOperationcap applies to FabricTexttrees, so those warnings are probably coming from another component.fontVariant. EveryfontVariantinapps/mobileis["tabular-nums"], and the markdown style map doesn't set one at all. Your log also puts the first FontVariant error at 17:13:21, 7 seconds before the span burst.Could you send: