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
[Bug]: Workflows: Needs you leaves out questions on runs older than the newest 500 #42482
Under Workflows → Needs you, the list is built on the client from a snapshot of the newest 500 runs (store.runs(undefined) in WorkflowEngine.ts, capped in WorkflowStore.ts). The open questions are sent in full next to it, but a question whose run is not among those 500 is dropped when the list is put together (WorkflowRunsView.tsx). The badge still counts it.
So with more than 500 runs, older waiting questions are counted but cannot be found or answered in the app. t3 workflow questions has no such cap and lists them all.
Steps
Have a workflow that asks a question, and start it more than 500 times without answering (or start 500 other runs after one that is waiting).
Open Workflows → Needs you.
Expected
Every open question is listed and can be answered, however old its run is. The badge and the list agree.
Proposal
Build Needs you from the open questions themselves, on the server:
the server answers "open questions, page N", with the kind filter (and the workflow filter) applied in the query, in a stated order (oldest first or newest first, chosen on the server, not by sorting a partial list on the client);
the client pages or virtualizes the list;
the counts per kind that the kind picker shows come from the same query, so they cover all open questions and not only the loaded page.
No change for workflow authors.
Acceptance
With 600 runs each waiting on a question, Needs you shows 600 (scrolling or paging), and each can be answered.
Picking a kind shows exactly the open questions of that kind, with the same count as the picker.
A test at the store level proves the query returns open questions regardless of how many newer runs exist.
Activity