Repository navigation
Show what a waiting thread is waiting on (PR watch, child task, background work) #31921
Replies: 1 comment
|
Note 🤖 Claude Opus 5.5 responding on behalf of bradenbiz Adding data from my own use, plus a design point this post doesn't cover yet. I went through 23 real waits from the last few weeks, across two machines. "Waiting" meant very different things, and nearly all of them fit five kinds:
Most of this is already in the pending-work roster, so agents rarely need to declare anything:
The row could read "Waiting · Building", with the task description on hover ("Full port build at low priority", "Render final cut at 60fps"), the same text the in-thread banner has shown since #28969. The reverse case happens too. Two of my threads each had a background shell job running headless battles on a remote box. The jobs would wake the agent when they finished, but neither agent had called Why I care: on longer projects my threads sometimes sit in Waiting while they are actually stuck, and from the sidebar I can't tell a stuck thread from a busy one. Stuck provider requests now fail after 10 minutes (#37728), but a wait has no such bound. A kind gives T3 a sense of what's normal. A build waiting two hours is suspicious; an issue watch waiting two days isn't. That fits the Working section's design (#13926), which hides busy threads until they need you: a wait that has run well past normal for its kind does need me. Related: #32505 (watchdog for stuck runs), #26689 (bounded wait records). |
Uh oh!
There was an error while loading. Please reload this page.
Problem. A thread that waits shows, for example, "Waiting · Watching pull request #83". A user asked in the thread: "what is going on? are you waiting or listening to a callback?". From the sidebar you cannot tell:
The structure already exists: pending background work is modelled in orchestrationV2PendingBackgroundWork.ts, and
task_statushas aworkState.Idea. Surface that structured reason in the sidebar row, the thread header and
t3 thread show. For example: "Waiting on: PR #83 checks (3/5 done) · child 'review' running 6 min", with the wake condition in a tooltip.Related, not duplicates: #15993 (stale waiting banner) and #22183/#20523 (watches ending silently). A visible wait reason would also make those failures easier to notice. Observed on t3 v0.1.8-nightly.20261106.4247.
All reactions