Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: iOS app lists cross-machine t3_thread_launch (delegatedFrom) threads as top-level Done threads while desktop and MCP hide them #41642

Closeditsjeremyjohnson(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

  • I searched existing issues and did not find a duplicate. (Checked #26854 [closed], #27004 [open, desktop sidebar/Lineage only], #35263 [closed, duplicate of #30320], and #36956 [closed, MCP t3_thread_list].)
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. Link two T3 Code environments: host A (0.1.10-nightly.20261112.4580, Linux x64) and host B (0.1.12-nightly.20261121.5024, Linux x64).
  2. From a thread on host A, launch child threads on host B over the environment link with t3_thread_launch carrying delegatedFrom pointing to the parent thread on host A (producing mcp:launch:<hash> threads on host B with parentThreadId: null, relationshipToParent: null, and delegatedFrom: { environmentId: <A>, threadId: <parent>, title: ... }).
  3. Let those child threads complete on host B, and settle the parent threads on host A.
  4. Compare the thread list on desktop/web and t3_thread_list(includeSubagents: false, settled: false) against the T3 Code iOS app (Alpha).

Expected behavior

Desktop/web, MCP (includeSubagents: false), and the iOS mobile app should agree on which threads are visible in the top-level Threads list. Cross-machine delegated mcp:launch:* threads that are hidden as subagents on desktop/MCP should not leak into the top-level mobile Threads list as standalone unsettled "Done" rows, and settling the parent on host A should not leave orphaned unsettled remote children surfacing on mobile.

Actual behavior

All 8 completed cross-machine mcp:launch:* threads on host B appeared as standalone top-level Done threads in the T3 Code iOS app's main Threads list, while none of them appeared on desktop or in t3_thread_list(allProjects: true, includeSubagents: false, settled: false) on host B.

Related context:

  • #26854 was closed for delegate_task nesting on mobile, and #35263 / #30320 covered older settled parents for delegate_task.
  • #27004 (open) covers t3_thread_launch + delegatedFrom being hidden from the desktop sidebar and missing from the parent's Lineage panel.
  • On iOS mobile, those same t3_thread_launch + delegatedFrom threads still surface as top-level unsettled "Done" rows even after their parent on host A has been settled, creating a mismatch between mobile and desktop.

Impact

Minor bug or occasional failure

Version or commit

Host B (target): 0.1.12-nightly.20261121.5024 (Linux x64) Host A (origin): 0.1.10-nightly.20261112.4580 (Linux x64) Client: T3 Code iOS (Alpha)

Environment

Two linked Linux x64 T3 Code servers (0.1.12-nightly.20261121.5024 and 0.1.10-nightly.20261112.4580) viewed from T3 Code iOS (Alpha) and desktop/web.

Logs or stack traces

{
  "threadId": "mcp:launch:<redacted>",
  "createdBy": "agent",
  "creationSource": "mcp",
  "status": "completed",
  "settled": false,
  "parentThreadId": null,
  "relationshipToParent": null,
  "delegatedFrom": {
    "environmentId": "<host-a-env-id>",
    "threadId": "mcp:launch:<parent-redacted>",
    "title": "<parent thread title>"
  }
}
  • t3_thread_list(allProjects: true, includeSubagents: false, settled: false) on host B returned 6 threads (0 of the 8 delegatedFrom threads).
  • t3_thread_list(allProjects: true, includeSubagents: true, settled: false) on host B returned all 8 delegatedFrom threads with parentThreadId: null and settled: false.
  • All 8 appeared as top-level "Done" items on iOS mobile until manually settled on host B.

Workaround

List unsettled threads with includeSubagents: true on the target host, filter for entries with delegatedFrom set and status: "completed", and settle each one individually via t3_thread_organize(action: "settle").

  1. tanstack-source added labelsbug

  2. @itsjeremyjohnson In the iOS app, is host A (the machine the parent threads live on) also added and connected, so its threads show up in the app, or is the app only connected to host B?

  3. juliusmarminge added labelsneeds more info

  4. @juliusmarminge Yes — host A is also added and connected in the same iOS app, and host A's threads were showing up in the same Threads list at the time (there was an unsettled host A thread visible in the same list right alongside the 8 host B delegatedFrom threads).

    One detail that may help: the parent threads on host A had already been settled earlier (so those parents were no longer in the active/unsettled list), while their cross-machine delegatedFrom child threads on host B remained unsettled and appeared as standalone top-level Done rows on iOS — whereas desktop and t3_thread_list(includeSubagents: false, settled: false) still hid them.

  5. juliusmarminge removed labelsneeds more info

  6. This is the same problem as #42197, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  7. juliusmarminge closed this

Sign in to join this conversation.