Skip to content

Desktop Cron view doesn't render script/no_agent jobs (blank prompt, script never shown, empty run history despite completed runs) #42433

Description

@Burhanawan90

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

  1. 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 have prompt: "", so the description area is empty.
  2. script is 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.
  3. Run history is empty for script jobs. getCronJobRuns → GET /api/cron/jobs/<id>/runs
    returns {"runs":[]} because no_agent jobs don't create agent run-sessions; the UI then
    shows "No runs" (cron/index.tsx:684-685) even when repeat.completed is large.
  4. Create/Edit requires a prompt. The editor errors without a prompt
    (cron/index.tsx:777, CronJobCreatePayload.prompt is 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 prompt is empty, render script plus schedule_display, next_run_at, last_run_at,
    last_status, and repeat.completed instead of a blank description.
  • For run history on no_agent jobs, fall back to last_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 prompt for them.

Repro

  1. Create a cron job via CLI/config with a script and no prompt (no_agent).
  2. Open the Desktop Cron view → the job shows a blank description and "No runs", and can't be
    edited.

Activity

  1. liuhao1024 commented on Jun 8, 2026

    @liuhao1024

    @/tmp/issue_link.md

  2. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    comp/cronCron scheduler and job management
    comp/tuiTerminal UI (ui-tui/ + tui_gateway/)
    on Jun 8, 2026
  3. GottZ commented on Jul 30, 2026

    @GottZ

    This was generated by AI during triage.

    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

    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"
    
    Loading

    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.

  4. andrexibiza commented on Aug 3, 2026

    @andrexibiza

    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:

    1. Blank-detail half → PR fix(desktop): show script field in Cron detail when prompt is empty #77382 (andrexibiza): jobDescription() = prompt || script, muted script badge via jobIsScriptOnly, i18n keys in all five locales, unit tests. Implements the salvage path the AI triage prescribed for stale PR fix(desktop): show script field in Cron detail when prompt is empty #42440 (which is CONFLICTING, untested, non-i18n — reconciliation comment posted there).
    2. Run-history half → PR fix: show script-only cron run history in desktop #61403 (LeonSGP43, sweeper keep_open salvageability=high): output-document + last-run-metadata fallback rows when no session-backed runs exist. Currently CONFLICTING on main; needs rebase (note: reviewer maxmilian flagged a filename-timestamp correctness issue to fix during rebase).

    Remaining gap after both merge: editor still hard-requires prompt for script jobs (cron/index.tsx:777 / CronJobCreatePayload) — could be a follow-up issue.

  5. GottZ commented on Aug 3, 2026

    @GottZ

    This was generated by AI during triage.

    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_agent jobs require a non-SessionDB history source.

    Changed pull requests

    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 changedSince
    
    Loading

    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).
    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.

  6. 3 remaining items

  7. added 4 commits that reference this issue on Sep 25, 2026
    62d8e44
    776ff0a
    879b0d0
    a02d4ab
  8. added 2 commits that reference this issue on Sep 26, 2026
    c2182f6
    4f11ac2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/cronCron scheduler and job managementcomp/desktopElectron desktop app (apps/desktop/*)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions