Skip to content

A run blocked on an approval request shows as running and is missing from the pending-request list #275

Backlog

Description

@immakermatty

What happened

A working thread in full-access runtime mode issued a shell command (a throwaway container plus inline curl calls on loopback) that turned into an approval request. Nobody sits at that Environment's Chat, so the request stayed open for 5.5 hours (2026-11-28 15:28Z reading). During that time:

  • the thread's status was running, in t3 thread show, t3 thread list and t3_thread_read;
  • t3_pending_request with action: list returned an empty list, because approvals are not listed;
  • t3 thread show printed "Waiting for 1 answer(s).", the only outward sign, and it reads like a question, not an approval;
  • three messages sent to the thread sat in the queue behind the blocked run.

A coordinator reading thread states hourly saw a healthy running thread. Only t3_thread_read with view: activity showed the last item as approval_request in status waiting.

Why it matters

Coordinators and watchers decide by thread status. A run that waits on an approval nobody can give is indistinguishable from one that works, so the stall is found only when someone notices the pull request has not moved.

What would fix it

  1. Show a run blocked on an approval as waiting (or a state of its own), the same as a run blocked on a question.
  2. List approvals in t3_pending_request list (read-only; answering them can stay with the person), or expose pendingRequestCount and the kind of the request in t3 thread list --json.
  3. Say in t3 thread show what the thread waits for: an answer or an approval, and since when.
  4. Separately worth reading: why a thread in full-access mode got an approval request at all.

Verified

  • t3 thread show: line 2 running, line 3 "Waiting for 1 answer(s)."
  • t3_pending_request list: {"requestIds":[]}
  • t3_thread_read (view: activity): pendingRequestCount: 1, last item type: approval_request, status: waiting; active run started 5.5 hours earlier, three later runs queued.
  • After t3 thread interrupt the queued run started within seconds.

T3 Code version on that Environment: 0.1.10-lazurio.6.

Agent: environment ec61b02f-e7cf-44e6-80a5-d4b92ded247c · T3 thread b564be70-5d63-405a-8acf-c6244f774ac2

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions