You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
t3 thread show --json: list pending request ids and say who sent each message
#49661
A coordinator agent watches the threads it started from a small script that runs t3 thread show <thread> --json on a schedule and alerts the coordinator only when something changed. That keeps the coordinator asleep unless a thread needs it. Two gaps in the JSON make the script guess:
Pending requests are only a count.thread.pendingRequestCount says how many approvals or questions are open, not which ones. If one request is answered and a new one opens between two reads, the count doesn't change, so the script can't tell the new request from the old one. It either alerts on every read while the count is non-zero, which is noise, or misses the new request.
Messages don't say who sent them. Each message in messages has only role, runId and text. A user message can be typed by a person, sent by another thread with t3_thread_send, or created by T3 itself: the "continue" prompt after a server restart, a usage-limit resume, or a PR-watch wake. The script wants to know whether a thread still owes its coordinator a reply. It can't tell the coordinator's message from one T3 or a person sent, so it falls back to text heuristics.
Proposal
In t3 thread show --json, and in the matching t3_thread_read MCP output:
Add the open requests' ids, for example pendingRequests: [{ requestId, kind, createdAt }], next to pendingRequestCount.
Give each message its origin, for example sender: { kind: "user" | "thread" | "system", threadId? }. t3_thread_send already records senderThreadId, so the thread case may only need it exposed.
Both are additive and read-only.
Related: #28181, about wakes for threads started without delegate_task, would remove much of the need for polling. This request covers the polling that's still needed for failures a thread can't report itself, such as a provider outage or a server restart mid-run.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
A coordinator agent watches the threads it started from a small script that runs
t3 thread show <thread> --jsonon a schedule and alerts the coordinator only when something changed. That keeps the coordinator asleep unless a thread needs it. Two gaps in the JSON make the script guess:thread.pendingRequestCountsays how many approvals or questions are open, not which ones. If one request is answered and a new one opens between two reads, the count doesn't change, so the script can't tell the new request from the old one. It either alerts on every read while the count is non-zero, which is noise, or misses the new request.messageshas onlyrole,runIdandtext. Ausermessage can be typed by a person, sent by another thread witht3_thread_send, or created by T3 itself: the "continue" prompt after a server restart, a usage-limit resume, or a PR-watch wake. The script wants to know whether a thread still owes its coordinator a reply. It can't tell the coordinator's message from one T3 or a person sent, so it falls back to text heuristics.Proposal
In
t3 thread show --json, and in the matchingt3_thread_readMCP output:pendingRequests: [{ requestId, kind, createdAt }], next topendingRequestCount.sender: { kind: "user" | "thread" | "system", threadId? }.t3_thread_sendalready recordssenderThreadId, so the thread case may only need it exposed.Both are additive and read-only.
Related: #28181, about wakes for threads started without
delegate_task, would remove much of the need for polling. This request covers the polling that's still needed for failures a thread can't report itself, such as a provider outage or a server restart mid-run.All reactions