Hermes Switch UI — Cron Job Lifecycle

From wizard creation to execution history — requires `jobs` capability on the gateway

FEATURE GATE Requires `jobs` capability on hermes-agent gateway · useFeatureAvailable('jobs') → BackendUnavailableState if missing · Start `hermes dashboard` on port 9119 ① Defined CronsWizard name · prompt · schedule skill assignment POST /api/jobs ② Scheduled active state cron expression stored gateway watches clock cron tick ③ Triggered gateway fires job or "Run now" button dispatch to agent start run ④ Running hermes-agent executes prompt + skill live status: running success fail ⑤ Logged status: success run duration + output ⑤ Logged status: error error message captured ⑥ History view CronDetailDrawer past runs + timestamps edit · trigger · pause · delete Paused pause/resume button on CronCard or drawer resume UI COMPONENTS JobsScreen header Cron Jobs + live counts Total · Active · Paused · Error New Cron button → CronsWizard Filter bar search input Status: All · active · paused · error Cadence: hourly · daily · weekly · custom CronCard name · status pill · schedule last run · skill badge Run now · Pause · Edit · Delete CronDetailDrawer slide-in drawer full metadata + run history edit · trigger · pause · delete CronsWizard multi-step creation form name · prompt · cron schedule skill assignment Legend defined / viewed in UI scheduled / success triggered / running error state pause / resume loop

Feature gate

  • · useFeatureAvailable('jobs') checked on route load
  • · Missing capability → BackendUnavailableState shown
  • · Requires `hermes dashboard` running on port 9119
  • · Gateway must expose the /api/jobs endpoint

Job states

  • · active — scheduled, watching the clock
  • · paused — skips cron ticks until resumed
  • · running — currently executing
  • · error — last run failed, details in history

CronDetailDrawer

  • · Slide-in panel, opened by clicking a CronCard
  • · Shows full metadata: name, prompt, schedule expression
  • · Run history with timestamps and status per run
  • · Actions: edit, trigger now, pause/resume, delete