[Bug]: Android work-log list crashes with "Maximum update depth exceeded" during active subagent work

Đang mở
#34,031 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react-native, typescript
Lĩnh vực
frontend, mobile

Hướng nghiên cứu

Start in the mobile app’s ThreadWorkGroupList and trace its use of AnimatedLegendList; the issue localizes the update-depth error there but does not identify a root cause. Compare the list’s subscription and layout updates while work-log activity streams, then reproduce on Android with an active helper if possible. Done means the thread view stays usable during streamed tool activity without the update-depth error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/mobile

Steps to reproduce

A deterministic minimal reproduction has not yet been isolated. Observed scenario:

  1. Use the T3 Code Android app to view a long-running thread connected to a Windows host.
  2. The thread has a running Claude Agent turn with an active helper/subagent producing tool activity.
  3. The mobile thread view fails with Maximum update depth exceeded. The component stack runs through ThreadWorkGroupList and its nested AnimatedLegendList, under a DisclosureRow.

The thread had approximately 2,633 top-level timeline items across 50 runs when inspected. The active helper had performed over 100 tool uses. These are context, not established reproduction requirements. The exact gesture or update immediately preceding the error (opening, expanding, scrolling, or a streamed update) is unknown.

Expected behavior

The Android thread view remains usable while the agent and its helper stream tool activity.

Actual behavior

React throws an update-depth error in the mobile work-log list.

Read-only inspection of the host immediately afterward confirmed that the affected run and its helper were still running, with fresh tool results and a subsequent test-game launch in the provider log. The failure therefore affected the client display while backend work continued.

No host restart, thread interruption, data deletion, or configuration changes were performed during diagnosis.

Impact

Major degradation or frequent failure

The affected Android thread view fails; backend work continues. Reproduction frequency has not been established.

Version or commit

Windows host desktop/server installation: 0.1.9-nightly.20261110.4465, read from the host's desktop-last-started-version.

Android client version/build and commit: not yet captured. The host version should not be treated as the Android client version.

Environment
  • Client: native T3 Code Android app (com.t3tools.t3code), Expo bundle.
  • Phone model and Android version: not yet captured.
  • Host: Windows; T3 Code Nightly.
  • Provider: Claude Agent, with an active helper/subagent.
  • Observed November 10, 2026, around 19:15–19:17 UTC.
Logs or stack traces

Relevant excerpt of the user-visible error below. Identical repeated frames are abbreviated; bundle offsets are retained.

Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
    at enqueueConcurrentRenderForLane (bundle:1:2656200)
    at updateStoreInstance (bundle:1:2662076)
    at commitHookEffectListMount (bundle:1:2694735)
    at commitPassiveMountOnFiber (bundle:1:2707897)
    at recursivelyTraversePassiveMountEffects (bundle:1:2706866)
    ... repeated passive-mount traversal frames; original trace skips 602 frames ...
    at flushPassiveEffects (bundle:1:2727716)
    at flushPendingEffects (bundle:1:2727499)
    at flushSpawnedWork (bundle:1:2727214)
    at commitRoot (bundle:1:2726179)
    at completeRootWhenReady (bundle:1:2713817)
    at performWorkOnRoot (bundle:1:2713082)
    at flushSyncWorkAcrossRoots_impl (bundle:1:2652976)
    at anonymous (bundle:1:7828190)

Component stack:
    at ContainersLayer2 (bundle:1:6621412)
    at Containers2 (bundle:1:6621928)
    at RCTView
    at View (bundle:1:2598473)
    at RCTScrollView
    at ScrollView (bundle:1:2946037)
    at ScrollView (bundle:1:2949105)
    at ScrollView (bundle:1:2911254)
    at AnimatedComponent(ScrollView) (bundle:1:7956644)
    at ScrollView (bundle:1:7956701)
    at AnimatedScrollView (bundle:1:3146147)
    at ReanimatedScrollBridgeComponent (bundle:1:6555513)
    at ListComponent2 (bundle:1:6622933)
    at LegendListInner2 (bundle:1:6626035)
    at StateProvider (bundle:1:6559227)
    at LegendList2 (bundle:1:6625770)
    at LegendListForwardedRef2 (bundle:1:6557277)
    at AnimatedComponent(Component) (bundle:1:7956644)
    at Component (bundle:1:7956701)
    at AnimatedLegendList2 (bundle:1:6557680)
    ... View wrappers ...
    at ThreadWorkGroupList (bundle:1:7017735)
    ... View wrappers ...
    at WorkLogBlock (bundle:1:7042214)
    at ThreadWorkLog (bundle:1:7015012)
    at ThreadMediaVisibility (bundle:1:7189355)
    at MessageImageGalleryScope (bundle:1:7204101)
    ... View / animated View wrappers ...
    at DisclosureRow (bundle:1:7202939)
    ... View wrappers ...
    at PositionViewState2 (bundle:1:6618328)
    at Container2 (bundle:1:6619875)
    at ContainerSlotBase (bundle:1:6605679)
    at ContainerSlot2

Here bundle stands for:
/data/user/0/com.t3tools.t3code/files/.expo-internal/42bac505bc3eda455134bc0b498d30dc.

Investigation notes

The stack localizes the failure to the grouped work-log list, but does not establish the root cause. A list snapshot/subscription or layout feedback loop is a hypothesis, not a confirmed diagnosis. No source patch or Android reproduction was attempted.

Related reports found during duplicate search:

  • #21866: Android update-depth crash in the sidebar/inspector path; this trace instead contains ThreadWorkGroupList.
  • #15704: mobile grouped tool-call scrolling problem in the same component, but a different symptom.
Workaround

No workaround has been verified on the affected Android client. Using desktop/web or collapsing the work-log group was suggested, but not tested. The running host and thread were deliberately left untouched.

Private conversation text, thread/environment identifiers, local project paths, and raw provider logs are omitted.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
10 giờ 56 phút
Pull request đã merge (30 ngày)
226

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.