Executions: show runs waiting on a prompt; Automated tab filters on the server (#3, #4)
CI / Lint (eslint) (pull_request) Successful in 29s
CI / Test (jest) (pull_request) Successful in 24s
CI / Security (npm audit) (pull_request) Successful in 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m48s
CI / Integration (api) (pull_request) Successful in 2m32s
CI / UI (playwright) (pull_request) Successful in 2m6s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m28s

- #3: the list response includes waiting_for_input for each execution
  (a running execution blocked on a prompt). The row shows it as
  'waiting' (the design system's purple status) and the Waiting status
  filter, which could never match, now finds it.
- #4: new only_internal=true filter (Gandalf and scheduler runs), used by
  the Automated tab, so it pages and counts on the server like the Manual
  tab; the client-side filter over one shared page is gone.
- Tests: integration for waiting_for_input and both server filters; UI
  for the waiting status and the filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-23 11:38:22 -05:00
1 parent 9a6a4c0b66
commit 39d28fb9e7
5 files changed
+58 -14

No files matched your search

+7
View File
@@ -1656,6 +1656,10 @@ app.get('/api/executions', authenticateSSO, async (req, res) => {
if (req.query.hide_internal === 'true') {
conditions.push("e.started_by NOT LIKE 'gandalf:%' AND e.started_by NOT LIKE 'scheduler:%'");
}
// The Automated tab's own filter, so it pages and counts on the server too (#4).
if (req.query.only_internal === 'true') {
conditions.push("(e.started_by LIKE 'gandalf:%' OR e.started_by LIKE 'scheduler:%')");
}
// New filters
if (req.query.status) {
conditions.push('e.status = ?');
@@ -1701,6 +1705,9 @@ app.get('/api/executions', authenticateSSO, async (req, res) => {
);
const total = countRows[0].total;
// Blocked on a prompt (#3): the status stays 'running', so say so explicitly.
for (const r of rows) r.waiting_for_input = _executionPrompts.has(r.id);
res.json({
executions: rows,
total,