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
[Feature]: workflows: typed kinds on questions and tags on runs, with filtering in Needs you #41640
The Workflows page can narrow runs by state (Needs you, Running, All) and by workflow. Nothing narrows by what a run or a question is about. With one workflow that asks several kinds of questions ("do you want this feature?", "is this a bug or intended?", "partly fixed, close it?"), "Needs you" becomes one long flat list, and the only way to tell the kinds apart is to read each title. Encoding the kind in the title and matching on the string is not something to build on.
t3 workflow list has the same limit: --status only.
Proposal
Let a workflow declare a typed category, and let the page and the CLI group and filter by it.
On a question:ask(name, { kind: "feature", title, choices, data }). One run can ask different kinds of questions, so the kind belongs on the ask, not only on the run.
On a run (optional):tags(["pr", "backlog"]) next to title(...), or a tags option when a run is started, for filtering runs that are not waiting on anyone.
Declared up front: a workflow lists the kinds it can ask (asks: { feature: "Feature wanted?", intended: "Bug or intended?" }), so the page can show a label and a stable order, and an unknown kind is an error at load time rather than a typo in production.
In the app
"Needs you" shows the kinds as a second filter with counts (Feature wanted? 12 · Bug or intended? 4 · Partly fixed 3), and can group the list by kind.
The filter is remembered per viewer.
Answering several questions of one kind in a row keeps the filter.
CLI and API
t3 workflow questions --kind feature, t3 workflow list --tag backlog, both in --json output too.
runs({ workflow, kind?, tag? }) inside steps.
Acceptance
A workflow file with two ask kinds shows both kinds, with counts, under "Needs you"; picking one hides the other's questions.
A question without a kind still shows, under "Other".
An ask using a kind the workflow did not declare fails when the file loads, with the workflow and kind named.
Change to the acceptance list above, decided while reviewing #42008: an ask whose kind the workflow did not declare is not an error. The question is asked normally and is listed under Other in Needs you, next to questions without a kind. So the point "An ask using a kind the workflow did not declare fails when the file loads" no longer applies. The declaration itself stays, for the labels and their order.
Activity
juliusmarminge commentedon Nov 24, 2026
Change to the acceptance list above, decided while reviewing #42008: an
askwhose kind the workflow did not declare is not an error. The question is asked normally and is listed under Other in Needs you, next to questions without a kind. So the point "Anaskusing a kind the workflow did not declare fails when the file loads" no longer applies. The declaration itself stays, for the labels and their order.