Repository navigation
Description
Desktop Cron view doesn't render script / no_agent jobs: empty prompt shown blank, script never displayed, run history empty despite completed runs
Component: apps/desktop — Cron view (src/app/cron/index.tsx, sidebar cron-jobs-section.tsx)
Version: Hermes v0.16.0 (Desktop + backend both 0.16.0, confirmed via /api/status)
Symptom
Cron jobs that are script-based (no_agent: true, a populated script, empty prompt)
appear in the Desktop Cron page/sidebar with essentially no details — blank description and
"No runs" in history — even though the jobs are enabled, scheduled, and have run successfully
many times. (Jobs created via the app's "New cron" prompt flow render fine; backend-/CLI-created
script jobs do not.)
Root cause
- Description = prompt only. The view renders the job's
prompt, and only when non-empty:
jobPrompt(job)(cron/index.tsx:84,548) and{prompt && <p ...>{prompt}</p>}
(cron/index.tsx:601). Script jobs haveprompt: "", so the description area is empty. scriptis never shown. The field that says what the job actually does
(e.g.sync_quillreach_cron.sh) is not rendered anywhere in the job detail. So the one
meaningful detail is invisible.- Run history is empty for script jobs.
getCronJobRuns→GET /api/cron/jobs/<id>/runs
returns{"runs":[]}becauseno_agentjobs don't create agent run-sessions; the UI then
shows "No runs" (cron/index.tsx:684-685) even whenrepeat.completedis large. - Create/Edit requires a prompt. The editor errors without a prompt
(cron/index.tsx:777,CronJobCreatePayload.promptis required), so script jobs can't be
created or edited from the Desktop app.
Evidence (live /api/cron/jobs on a 0.16.0 backend)
All 6 jobs returned no_agent: true, prompt: "", with script set and full metadata, e.g.:
name: "Quillreach mirror sync", script: "sync_quillreach_cron.sh",
schedule_display: "*/15 * * * *", enabled: true, state: "scheduled",
last_status: "ok", next_run_at: "2026-06-09T02:00:00+03:00",
repeat: { completed: 282 }
…yet GET /api/cron/jobs/<id>/runs?limit=5 → {"runs":[]} for that 282-completion job, and the
Desktop UI shows the job with a blank body and "No runs".
Impact
Script jobs are a fully supported, first-class job type (the API returns them with complete
metadata: name, schedule, next/last run, status, completion count, script), but the Desktop UI
surfaces none of it, making them look broken/empty and leaving them unviewable and unmanageable.
Suggested fix
- When
promptis empty, renderscriptplusschedule_display,next_run_at,last_run_at,
last_status, andrepeat.completedinstead of a blank description. - For run history on
no_agentjobs, fall back tolast_run_at/last_status/repeat.completed
(or label "No agent runs (script job)") rather than a bare "No runs". - Allow at least read-only viewing of script jobs; don't hard-require
promptfor them.
Repro
- Create a cron job via CLI/config with a
scriptand noprompt(no_agent). - Open the Desktop Cron view → the job shows a blank description and "No runs", and can't be
edited.
Activity
liuhao1024 commentedon Jun 8, 2026
@/tmp/issue_link.md
fix(cron): record no_agent runs as sessions so they show in run history
GottZ commentedon Jul 30, 2026
Summary
Four PRs are associated with this issue complex, but they cover distinct Cron surfaces: #42440 supplies the script-description fallback for the blank detail view, #61403 supplies output-backed history for script-only jobs, #43233 concerns agent-session transcript rendering, and #43310 concerns the Cron sidebar. Together, #42440 and #61403 address separate parts of #42433’s reported cause; neither alone resolves the full issue.
Related pull requests
best fix— (+9/-2) — partial fix; best existing fix for the blank-detail portion: it falls back from an empty prompt to the job’s script, but it does not address script-only run history or editor validation. Consistent with the keep_open maintainer-bot review, the salvage path is to usejobIsScriptOnly(job)for the badge and add regression coverage.unrelated— (+208/-302) — adjacent partial overlap recorded for this issue edge, but not a direct fix for Desktop Cron view doesn't render script/no_agent jobs (blank prompt, script never shown, empty run history despite completed runs) #42433: its stated scope is completed agent-session transcript rendering under [Desktop] Cron sessions render only user prompt — tool calls and LLM response invisible until gateway restart #43121, whereas Desktop Cron view doesn't render script/no_agent jobs (blank prompt, script never shown, empty run history despite completed runs) #42433 also concerns jobs that deliberately create no agent session. The available record is insufficient for further diff-specific conclusions; retain it under [Desktop] Cron sessions render only user prompt — tool calls and LLM response invisible until gateway restart #43121 and address the contributor keep_open review there rather than consolidating it into this fix.unrelated— (+0/-0) — unrelated to Desktop Cron view doesn't render script/no_agent jobs (blank prompt, script never shown, empty run history despite completed runs) #42433’s blank script details and sessionless run-history causes: it is linked to the separate sidebar regression in [Desktop] Cron jobs section jumps position on zoom — visual regression from sidebar rework #42537 #43309. No usable diff is present here, so no stronger implementation claim is supported; its contributor keep_open review should remain handled under [Desktop] Cron jobs section jumps position on zoom — visual regression from sidebar rework #42537 #43309.partial— (+327/-26) — partial fix for the run-history portion: it adds output-document and last-run-metadata fallback rows when no session-backed runs exist, but it does not expose the script description or fix editor validation. Consistent with both contributor reviews and the keep_open maintainer-bot review, its salvage path must correct filename timestamps using the configured IANA timezone or date-appropriate local timezone and add mismatch/DST assertions.Duplicates
No PRs are direct duplicates: #42440 and #61403 address complementary parts of #42433, while #43233 belongs primarily to #43121 and #43310 to #43309.
Suggested consolidation
Keep #42440 open with a salvage path as the best existing fix: update its badge logic to use
jobIsScriptOnly(job)and add focused rendering coverage. Keep #61403 separately salvageable for the complementary history gap after its documented timezone/DST defect is fixed and tested. Do not consolidate #43233 or #43310 into #42433, and do not close any of these PRs as duplicates; #42433 still needs the editor’s script-only create/edit validation addressed before the full issue can be considered resolved.Complex graph
flowchart LR classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937 classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151 classDef best stroke-width:3px,stroke:#b45309 classDef target stroke-width:3px,stroke:#4338ca I42433(["issue #42433 (open)"]) I43121(["issue #43121 (open)"]) I43309(["issue #43309 (open)"]) I61031(["issue #61031 (open)"]) I62341(["issue #62341 (open)"]) P42440["PR #42440 (open)"] P43233["PR #43233 (open)"] P43310["PR #43310 (open)"] P61403["PR #61403 (open)"] P42440 -->|best fix| I42433 P61403 -.->|partial| I42433 P43233 -->|best fix| I43121 P43310 -->|best fix| I43309 P61403 -->|best fix| I61031 P61403 -->|best fix| I62341 class I42433 open class I43121 open class I43309 open class I61031 open class I62341 open class I42433 target class P42440 open class P43233 open class P43310 open class P61403 open class P42440 best class P43233 best class P43310 best class P61403 best class P61403 best click I42433 "https://github.com/NousResearch/hermes-agent/issues/42433" click I43121 "https://github.com/NousResearch/hermes-agent/issues/43121" click I43309 "https://github.com/NousResearch/hermes-agent/issues/43309" click I61031 "https://github.com/NousResearch/hermes-agent/issues/61031" click I62341 "https://github.com/NousResearch/hermes-agent/issues/62341" click P42440 "https://github.com/NousResearch/hermes-agent/pull/42440" click P43233 "https://github.com/NousResearch/hermes-agent/pull/43233" click P43310 "https://github.com/NousResearch/hermes-agent/pull/43310" click P61403 "https://github.com/NousResearch/hermes-agent/pull/61403"Graph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed (state tag in the node label).
Cross-PR triage: Reviewed 4 pull requests and 5 issues in this complex. Each diff was read against this issue; Assessment working set: 51 kB of PR diffs, 32 kB of issue/PR text, 9 kB of discussion (13 comments), 13 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.
andrexibiza commentedon Aug 3, 2026
Dedup campaign triage (verified against current main a01f979):
Cluster: canonical #42433; duplicates confirmed — #62341 (run-history facet, already duplicate-labeled) and #44080 (same desktop display layer for no_agent jobs). #46979 is NOT a duplicate (agent jobs whose /runs API returns rows but UI shows nothing — distinct v0.16.0 regression, keep open).
Premise CONFIRMED on current main: apps/desktop/src/app/cron/index.tsx:654 renders
{prompt ? (...) : null}— script-only jobs (prompt="") get a blank detail body, and the script field is never displayed.Fixes, split across the two facets the issue reports:
Remaining gap after both merge: editor still hard-requires prompt for script jobs (cron/index.tsx:777 / CronJobCreatePayload) — could be a follow-up issue.
GottZ commentedon Aug 3, 2026
Delta since our previous triage comment
Since our previous comment, @andrexibiza reported that current main still has both script-only facets and identified #77382 as a current-main replacement for #42440, while #61403 remains the run-history candidate but is now conflicting. @jeff-mettel independently reproduced the sessionless-history mechanism on current main and a live install, strengthening the evidence that
no_agentjobs require a non-SessionDB history source.Changed pull requests
best fix— (+9/-2) — partial fix, superseded: this remains Verify's best listed fix because its diff directly adds the missingprompt || scriptfallback, but it covers neither history nor editor support. Despite the keep_open review on fix(desktop): show script field in Cron detail when prompt is empty #42440, its requestedjobIsScriptOnly()predicate and regression coverage are still absent, while the new reconciliation identifies fix(desktop): show script field in Cron detail when prompt is empty #77382 as implementing those changes against current main; close fix(desktop): show script field in Cron detail when prompt is empty #42440 as superseded if that replacement is confirmed.best fix— (+327/-26) — partial fix, rework required: the output-document/metadata fallback still directly fixes the sessionless-history facet, and the new reproduction reinforces that approach. Keep it open in line with its keep_open review, but rebase the now-conflicting branch and resolve the contributor-blocking configured-timezone/DST timestamp defect before merge.Duplicates
The issue-level structure changed: new triage places #62341 directly under canonical #42433 rather than only through #61031, and also identifies #44080 as a duplicate; #46979 remains separate.
Suggested consolidation
Recommendation changed: although #42440 remains Verify's best listed fix, do not merge it from the backlog lane; close it as superseded by #77382 once that replacement is confirmed, and retain #61403 for rebase and timezone-correct rework, with no listed PRs closed as implementation duplicates.
Complex graph
flowchart LR classDef open fill:#dbeafe,stroke:#1d4ed8,color:#1e3a8a classDef merged fill:#dcfce7,stroke:#15803d,color:#14532d classDef closed fill:#e5e7eb,stroke:#6b7280,color:#1f2937 classDef unverified fill:#f3f4f6,stroke:#9ca3af,color:#374151 classDef best stroke-width:3px,stroke:#b45309 classDef target stroke-width:3px,stroke:#4338ca I42433(["issue #42433 (open)"]) I43121(["issue #43121 (open)"]) I43309(["issue #43309 (open)"]) I61031(["issue #61031 (open)"]) I62341(["issue #62341 (open)"]) P42440["PR #42440 (open)"] P43233["PR #43233 (open)"] P43310["PR #43310 (open)"] P61403["PR #61403 (open)"] P42440 -->|best fix| I42433 P61403 -->|best fix| I42433 P43233 -->|best fix| I43121 P43310 -->|best fix| I43309 P61403 -->|best fix| I61031 P61403 -->|best fix| I62341 class I42433 open class I43121 open class I43309 open class I61031 open class I62341 open class I42433 target class P42440 open class P43233 open class P43310 open class P61403 open class P42440 best class P43233 best class P43310 best class P61403 best class P61403 best class P61403 best click I42433 "https://github.com/NousResearch/hermes-agent/issues/42433" click I43121 "https://github.com/NousResearch/hermes-agent/issues/43121" click I43309 "https://github.com/NousResearch/hermes-agent/issues/43309" click I61031 "https://github.com/NousResearch/hermes-agent/issues/61031" click I62341 "https://github.com/NousResearch/hermes-agent/issues/62341" click P42440 "https://github.com/NousResearch/hermes-agent/pull/42440" click P43233 "https://github.com/NousResearch/hermes-agent/pull/43233" click P43310 "https://github.com/NousResearch/hermes-agent/pull/43310" click P61403 "https://github.com/NousResearch/hermes-agent/pull/61403" classDef changedSince stroke:#dc2626,stroke-width:3px,stroke-dasharray: 6 3 class I42433,P61403 changedSinceGraph: solid arrow = fixes / best fix, dashed arrow = partial or unverified (see edge label); boxed group = PRs duplicating each other; amber border = best fix; indigo border = target; gray node = closed (state tag in the node label).
Dashed red border = changed since our previous triage comment (1 added/updated, 1 removed graph elements).
Cross-PR triage: Reviewed 4 pull requests and 5 issues in this complex. Each diff was read against this issue; Assessment working set: 51 kB of PR diffs, 32 kB of issue/PR text, 15 kB of discussion (19 comments), 14 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch.
3 remaining items
fix(cron): show run history for script-only jobs via per-fire output …
fix(desktop): render script-only cron jobs in the detail view and sid…
fix(cron): show run history for script-only jobs via per-fire output …
fix(desktop): render script-only cron jobs in the detail view and sid…
fix(cron): show run history for script-only jobs via per-fire output …
fix(desktop): render script-only cron jobs in the detail view and sid…