Skip to content

Android: a thread with many subagent rows takes 8–13 s to show its messages, and its forks inherit the delay #39687

Open

Description

@ViaxCo

What happened

On the Android app, one thread takes 8–13 seconds to show its messages each time I open it. The screen stays blank under the header until then. A fork of that thread has the same delay. Other threads open at once, including a much larger one (1,752 items, about 23 MB) and a fork that inherits 2.2 MB of history.

Diagnosis

  • The server is not the cause. Each open sends orchestration.subscribeThread with a resume sequence. The server replays in about 1 ms, and no getThreadSnapshotWindow runs. All other RPCs in the window finished in under 15 ms.
  • The delay is in the app, between receiving the data and drawing the rows. On one open of the fork, the app subscribed to the parent thread 8 s after the fork. That subscribe comes from ThreadSubagentGroup (apps/mobile/src/features/threads/thread-subagent-group.tsx:120), which mounts only when the feed draws a subagent group row. So no rows were mounted for 8 s.
  • The phone's vcs.listRefs call came within 1 s of the content appearing on every open. It seems to follow the render; it does not cause the wait.
  • Settled state is not the cause. Unsettling the parent made no difference.
  • Size alone is not the cause:
    • Slow: 118 items, 1.1 MB, 24 subagent, 14 dynamic_tool, 23 command_execution, 2 compaction.
    • Fast: 412 items, 2.2 MB, 2 subagent, 43 dynamic_tool, 117 command_execution.
    • Fast: 1,752 items, 23 MB, 5 subagent. This one probably loads as a bounded window.
  • Unproven guess: the cost is in drawing many subagent rows, or in drawing the full history of a thread that is small enough to skip the bounded window. A JS profile from the device would confirm it.

Steps to reproduce

  1. On desktop, use a thread with about 24 subagent items and some large dynamic tool results, small enough to load in full (about 120 items).
  2. Open it in the Android app 2.3.0 over T3 Connect. The messages appear after 8–13 s.
  3. Fork it at a later run and open the fork. It has the same delay.
  4. Open a thread with few subagent rows but more data. It opens at once.

I have no minimal repro yet. The steps above describe the thread I have.

Version

Android app 2.3.0 (Play Store); server 0.1.11-nightly.20261119.4941

Environment

Samsung SM-S928U1 (Android), connected through T3 Connect; server on macOS arm64

Evidence

# open fork (parent settled)
10:32:00.433 subscribeThread fork        (resume, server work ~1 ms)
10:32:00.73-01.05 getThreadLinkMetadata x50, each <15 ms
               (no RPCs from the app for 7 s)
10:32:08.519 subscribeThread parent      <- subagent group row mounts; content visible

# open parent alone, unsettle, open fork, open parent again
11:46:19.891 subscribeThread parent
11:46:27.071 vcs.listRefs                <- content visible (~8 s)
11:46:30.582 dispatchCommand thread.unsettle parent
11:46:37.301 subscribeThread fork
11:46:37.601 subscribeThread parent
11:46:48.021 vcs.listRefs                <- content visible (~11 s)
11:46:51.901 subscribeThread parent
11:47:04.161 vcs.listRefs                <- content visible (~12 s)

Related issues

#34240 "Mobile sync is slow" (closed, no details). That issue is about sync in general. This one is one thread that is slow to draw while the server answers at once.

Fix applied or workaround

None found. Nothing was changed on the machine. The parent was unsettled for the test and then settled again.

Filed by

Claude Code (Claude Opus 5.5, claude-opus-5-5) inside T3 Code, following the t3 triage playbook

Activity

  1. added
    via-triage
    on Nov 20, 2026
  2. juliusmarminge commented on Nov 20, 2026

    @juliusmarminge
    Member

    @ViaxCo Could you record a JS (Hermes) profile on the phone while opening the slow thread, or, if that's hard, tell us which tools produced its 14 dynamic_tool items and how large the biggest results and subagent results are? A 24-subagent thread built on current main opens at once on Android, so the cost seems to come from something specific in that thread's content.

  3. added
    needs more info
    on Nov 20, 2026
  4. ViaxCo commented on Nov 20, 2026

    @ViaxCo
    ContributorAuthor

    Thanks for looking. I can't record a Hermes profile: the app is the Play Store release build (2.3.0), and as far as I know a release build can't record one. So here is the content data, from the local state DB.

    The 14 dynamic_tool items in the slow parent thread

    Tool Items Total size Largest item
    mcp__t3-code__t3_thread_list 7 653 KB 123 KB
    mcp__t3-code__t3_thread_read 3 102 KB 38 KB
    ToolSearch 3 3 KB
    Skill 1 1 KB

    The largest t3_thread_list result has:

    • content: one error string of about 1.5 K chars.
    • structuredContent: a page of 100 threads. This is almost all of the item's size. Each thread has a [title](t3-thread://v2/…) link. The page also has nextCursor: 200 and total: 334.

    Across the 7 calls, that is about 700 thread links in tool output.

    Subagent results

    24 subagents. The result sizes in KB are 16, 15, 13, 12, 12, 10, 9, 9, 9, 9, 8, 5, 3 and 3. The other 10 results are empty. The largest subagent item has a 17 KB result and a 2.4 KB prompt.

    Threads on the same phone that open fast

    • The parent of another fork, which opens fast, has only 1 t3_thread_list call (23 KB). It has more data in other tools: Read (23 items, 820 KB) and t3_thread_read (6 items, 390 KB).
    • A big thread that opens fast has Read (82 items, 18 MB) and device_screenshot (9 items, 1.8 MB).

    So total size does not explain it. The thing only the slow thread has is many large t3_thread_list results. My guess is that the client parses or renders the structuredContent of these results, with their hundreds of thread links, when the thread opens. I have not proved this.

  5. removed
    needs more info
    on Nov 20, 2026
  6. shivamhwp commented on Nov 20, 2026

    @shivamhwp
    Collaborator

    Thanks, the sizes help. Looking at how the Android app draws a thread, tool output is shown as plain text and is not rendered as Markdown. The app only looks up thread titles for t3-thread:// links in message text. The 50 getThreadLinkMetadata calls on the fork's open look like that lookup, one per link. So the likely cost is the link titles in messages, not the t3_thread_list output.

    Could you check two counts in the slow parent thread and in the fork, using message text only (user and assistant messages, not tool results):

    1. How many messages contain a t3-thread:// link.
    2. The largest number of such links in one message.

    If the largest is well above 20, that supports this. If it is near zero, I'll drop this theory and look elsewhere.

    Posted by an AI agent (Claude Haiku 5.5) in T3 Code's issue-watch triage.

  7. ViaxCo commented on Nov 20, 2026

    @ViaxCo
    ContributorAuthor

    Here are the counts, from message text only (user and assistant messages, not tool results or reasoning).

    Slow parent thread

    • Messages with a t3-thread:// link: 1 of 20 (15 assistant, 5 user).
    • Links in that one assistant message: 63, to 52 different threads. The message is about 17 K chars. It is a list of threads with a link for each.

    Fork

    • Its own messages: 0 links (1 user, 1 assistant).
    • The fork shows the parent's history above its own turn, so the same 63-link message is on screen when the fork opens too.

    52 different targets is close to the 50 getThreadLinkMetadata calls on the fork's open. So the counts support your theory: one message with many link titles to look up.

    For reference, in tool results the parent has 600 more t3-thread:// links (up to 100 in one t3_thread_list result). From what you say, the app shows these as plain text, so they should not matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions