Re-entering a running task can surface the current round twice around
the attach window: REST backfill / locally archived messages and the
attach replay both carry the round's opening (decoded ids are freshly
generated, so key-based dedupe is impossible), which visually wedges the
round's user input into the middle of the streaming output. Cut history
at the live stream's first timestamped message - the active round is
sourced from the live stream only.
- fontCache 'none': MathJax's 'local' cache emits <defs>/<use> glyph refs,
and assembled tall delimiters (S4 segments) reference outer templates
from inside nested <svg> viewports - react-native-svg's template scope
breaks across nested svg, so brackets lost segments and the native side
spammed 'template not defined' warnings every streaming frame (which
also kept dirtying React's passive-update counter via LogBox updates,
resurfacing the Maximum update depth warning). Inlining every glyph
path removes cross-scope references entirely; the LRU caches absorb
the larger output.
- Separate block-math source budget (4096 chars vs 512 inline): multi-row
aligned derivations routinely exceed 512 and fell back to raw source;
the 60ex output-height clamp still bounds the rendered result.
- Promote whole-line single-line $$…$$ / \[…\] to block math (desktop
promotes display math via CSS; inline views clip at screen edge with
no way to scroll). Lines mixing text keep inline parsing.
- Scale inline math down to the available width; block math scales to
fit one screen (no in-list horizontal scrolling - the vertical list
always wins the gesture arbitration).
- Over-shrunk block formulas open a fullscreen viewer on tap: backdrop
and ScrollView are siblings (a Pressable ancestor steals the drag on
Android and closes the modal on release), wide hit strip, back-key
close.
- pointerEvents:none on all math SVGs: react-native-svg's Android
SvgView.interceptsTouchEvent() unconditionally claims touches, which
blocked scrolling, tap-to-expand and long-press copy over formulas.
- Raise the output height clamp to 60ex so multi-line aligned
derivations survive while \rule bombs (100ex) stay rejected.
Two probabilistic duplication vectors (decoded message ids are freshly
generated per decode, so duplicates cannot be deduped by key):
- loadEarlier guarded re-entry with async React state; the auto-prefill
effect and the inverted list's initial onEndReached could both pass the
guard in the same frame and fetch the same cursor page twice. Guard
with a ref (synchronous).
- In cursorless sessions, handleSend archives the previous live round
locally, then the REST fallback seeded a cursor that still covered the
archived rounds, so paging up re-fetched them. Track archived round
count, skip that many when seeding, drop stale seeds, and stop hc
re-seeding once local archives exist.
Review-driven batch on top of the math feature:
- Ask-card custom answer: scroll the card above the keyboard on input
focus (inverted-list scrollToIndex, viewPosition 0).
- Inline math boundaries: closing-$ guard switched to a negated class so
bold-wrapped/operator-adjacent formulas (**$E=mc^2$**, $a$-$b$) and
han-adjacent Chinese phrasing render; CJK/full-width punctuation
excluded from $-content to kill currency false positives.
- Clamp MathJax output size (rule-bomb guard), reject empty $$ blocks,
clamp throttle elapsed against clock steps, and gate O(n^2) slicing in
the inline tokenizer behind a first-char check.
- Streaming perf: stable body root key + content-hash node keys keep
top-level formulas mounted across re-parses; TeX->SVG and parsed-AST
LRU caches; memoized markdown style object.
- Android: scale inline formulas into the fixed line box and drop the
baseline shift (CustomLineHeightSpan overlaps oversized inline views).
- handleSend snapshots the disconnect() return so throttled tail chunks
are archived; effect cleanup also disconnects the newRound client;
failPendingToolCalls replaces message objects so memoized tool cards
observe the status flip.
- Swap @babel/plugin-transform-dynamic-import to the ^7 line (the ^8
line is Babel-8/ESM-only and breaks installs and jest on older Node).
Replaying long conversations emits hundreds of per-chunk state updates,
driving back-to-back commits whose passive-effect flushes keep React's
nested-update counter climbing (Maximum update depth exceeded warning).
Throttle TaskStreamClient.emit with a leading+trailing 50ms window
(flushed on disconnect so terminal states still land), and key the
context-usage effect on primitive values instead of the per-emit
contextUsage object identity.
Tokenize $...$, $$...$$, \(...\) and \[...\] via a markdown-it plugin
(delimiter semantics aligned with desktop), render TeX to SVG with a
lazily-loaded MathJax pipeline (LRU-cached, budget-guarded) and draw it
natively through react-native-svg; inline math flows with text baseline,
block math centers and scrolls horizontally. Falls back to source text
until MathJax is ready or when conversion fails.
UIVisualEffectView's gaussian blur spreads ~one blur radius beyond its
bounds. After 6423056 removed the outer clip (required to fix the iOS 26
first-mount blur failure), that bleed escapes above the composer's top
edge and frosts the last line of the agent reply — RN-level clipping
cannot contain it since clipping the effect view's host is documented
undefined behavior.
Switch Glass to expo-glass-effect's GlassView (system UIGlassEffect) on
iOS 26+, which renders strictly within its corner-configured shape, and
keep the BlurView path as fallback for older iOS / non-liquid-glass
builds. The module is lazy-required with a try/catch so OTA bundles
running on binaries without the native module fall back instead of
crashing. colorScheme follows the in-app theme toggle rather than the
system appearance.
RN overflow:'hidden' on the Glass outer container puts a native clip on
the UIVisualEffectView's superview, which Apple documents as undefined
behavior. On iOS 26+ the effect's backdrop capture fails when the view
mounts during a navigation push transition: entering the task detail
screen the first time shows no blur at all, while re-entering renders
correctly.
Corner clipping stays on the blur/veil layers themselves (radiusStyle,
introduced in #815), which is the supported cornerRadius+clipsToBounds
path, so rounded corners are unaffected.