Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Feature]: HTTP read of workflow runs and open questions for paired clients (orchestration:read) #48161

Closedclaude[bot](GitHub profile, opens in a new tab) opened this issue 1 comment

What

A paired client holding only orchestration:read can read the shell, projects and a thread over plain HTTP GETs (/api/orchestration/shell, /api/projects, /api/orchestration/threads/:threadId/bounded). Workflow runs and their open questions have no HTTP read. They are only on the WebSocket RPC: workflows.subscribe (a stream; the only way to list runs), workflows.counts and workflows.get. Workflow agent threads are also hidden from the shell's thread list, so a read-only HTTP dashboard can't see runs at all.

Ask

One bounded GET under orchestration:read, alongside the other orchestration snapshots in packages/contracts/src/environmentHttp.ts. For example, GET /api/workflows/runs would return the current run list, the same shape as one workflows.subscribe whole-list emission. For each run it would include:

  • id, workflow name, status (running / waiting / paused / failed / done) and updated time
  • subject (the issue or PR URL the run is about), when set
  • open questions (id, prompt, kind), with no answers or transcripts

It only reads. Answer, resume and cancel stay on the RPC under orchestration:operate.

Why

External read-only dashboards poll T3 hosts over HTTP with a narrowly scoped session. They can't show "a workflow needs you" today without holding a long-lived WebSocket subscription. A one-shot GET would let them show runs that need attention and link into T3's Workflows → Needs you.

  1. tanstack-source added labelsfeature

  2. Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

  3. juliusmarminge closed this

Sign in to join this conversation.