#6408: feat(ui): add job filtering and improve run history display
app: web-ui
Cluster:
Cron Job UI Enhancements
## Changes
- Add status filter (all/enabled/disabled) for jobs
- Add session filter (all/main/isolated) for jobs
- Display job name in run history section
- Use a more friendly duration format for cron job run history
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR extends the Cron UI to make the jobs list more usable: it adds job status (all/enabled/disabled) and session (all/main/isolated) filters, threads that state through the `OpenClawApp`/`AppViewState` into the cron view, and improves the run history section by showing the selected job’s name and formatting durations with a friendlier unit.
Changes are localized to the UI layer (`ui/src/ui/*`): new state fields in `app.ts`/`app-view-state.ts`, wiring in `app-render.ts`, and rendering logic in `views/cron.ts`, plus a small formatting helper and updated view tests.
<h3>Confidence Score: 4/5</h3>
- This PR is likely safe to merge; issues are mostly UI correctness/formatting edge cases.
- Core changes are straightforward state plumbing and view filtering, and tests were adjusted. Main concerns are (1) introduced tab characters that may break formatting/lint expectations, and (2) treating missing duration as 0ms can misrepresent run data in some API responses.
- ui/src/ui/views/cron.ts
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#9510: Feature/cron UI filter bar
by guxu11 · 2026-02-05
86.1%
#5977: fix(ui): handle optional agentId and add updateCronJob function
by xpnobug · 2026-02-01
85.7%
#7024: feat(ui/cron): add silent job indicator and no-runs hints
by sergi039 · 2026-02-02
85.5%
#13592: feat(ui): group cron jobs by name folders
by turanalemfilms-cloud · 2026-02-10
85.5%
#22627: control-ui: agent runner queue view
by vctorabrdge · 2026-02-21
79.2%
#7316: fix: /chat dashboard performance
by felipcsousa · 2026-02-02
79.0%
#17606: feat(ui): add Edit button for cron jobs in Control UI [AI-assisted]
by jgstaal · 2026-02-16
79.0%
#9088: fix(cron): ensure nextRunAtMs is computed when enabled is undefined...
by divol89 · 2026-02-04
78.8%
#21644: feat(control-ui): add runtime runs filters in cron tab
by frank8ai · 2026-02-20
78.6%
#7794: fix(tui): refresh session info periodically to reflect config changes
by GuoxiangZu · 2026-02-03
77.4%