Skip to content

[codex] Show attention state for broken recurring cron jobs#1133

Closed
franksong2702 wants to merge 2 commits intonesquena:masterfrom
franksong2702:franksong2702/cron-needs-attention
Closed

[codex] Show attention state for broken recurring cron jobs#1133
franksong2702 wants to merge 2 commits intonesquena:masterfrom
franksong2702:franksong2702/cron-needs-attention

Conversation

@franksong2702
Copy link
Copy Markdown
Contributor

@franksong2702 franksong2702 commented Apr 27, 2026

Summary

  • classify anomalous recurring cron jobs with no next run as needs attention instead of ordinary off
  • add a detail warning with resume/recalculate, run once, and copy diagnostics actions
  • add regression coverage for legacy broken recurring cron state and schedule-error state
  • keep i18n key coverage complete for the locale suites checked by CI

Context

Hermes Agent can currently persist recurring cron jobs as enabled=false, state=completed, and next_run_at=null when the scheduler cannot compute the next run. This WebUI change does not fix the scheduler; it prevents that anomalous persisted state from being presented as a normal user-disabled job.

Refs NousResearch/hermes-agent#16265.

Validation

  • node --check static/panels.js
  • node --check static/i18n.js
  • python -m pytest tests/test_cron_needs_attention.py -q
  • python -m pytest tests/test_korean_locale.py tests/test_russian_locale.py tests/test_spanish_locale.py -q
  • python -m pytest tests/test_cron_refresh_button_835.py tests/test_settings_navigation_and_detail_refresh.py -q
  • python -m pytest tests/test_sprint9.py::test_panels_js_served tests/test_sprint10.py::test_cron_history_button_in_panels_js tests/test_sprint10.py::test_cron_output_snippet_helper -q

Note: pytest was run locally with the Hermes Agent venv because the system Python on this machine does not have pytest installed. A full local python -m pytest tests/ -q run was also attempted; it passed the locale and cron changes but hit unrelated machine-state-dependent failures in legacy API tests.

@franksong2702 franksong2702 force-pushed the franksong2702/cron-needs-attention branch from d5dba51 to dff7082 Compare April 27, 2026 02:16
@franksong2702 franksong2702 marked this pull request as ready for review April 27, 2026 02:22
@nesquena-hermes nesquena-hermes added enhancement New feature or request tasks Cron jobs, task scheduling, background jobs merge soon Reviewed and queued for next release batch labels Apr 27, 2026
@nesquena-hermes
Copy link
Copy Markdown
Collaborator

Reviewed and cleared for merge queue. Detection logic is precise, tests are solid (Node-driven behavioral verification), all 6 existing locale blocks covered.

One small absorb needed at integration time: the Korean locale (ko, added in v0.50.222 after this fork branched) is missing the 7 new cron attention keys. We'll add those translations when building the stage branch. No action needed from you.

@nesquena-hermes
Copy link
Copy Markdown
Collaborator

Pushed 2cfef97 — Korean translations for all 7 cron-attention i18n keys:

  • cron_status_needs_attention → '주의 필요'
  • cron_attention_desc → '이 반복 작업에 다음 실행 시간이 없습니다…'
  • cron_attention_croniter_hint → 'Gateway 런타임에 croniter 패키지가 없을 수 있습니다…'
  • cron_attention_resume → '재개 및 재계산'
  • cron_attention_run_once → '지금 한 번 실행'
  • cron_attention_copy_diagnostics → '진단 정보 복사'
  • cron_diagnostics_copied → '크론 진단 정보가 복사되었습니다'

All Korean locale coverage tests pass (7/7). Branch is fully ready for the next batch release.

nesquena-hermes added a commit that referenced this pull request Apr 27, 2026
* feat: attention state for broken cron jobs + Korean i18n (#1133, @franksong2702)

* fix: pytest state isolation for direct session saves (#1136, @franksong2702)

* fix(#1095): image thumbnails in composer + lightbox in chat (#1135)

* fix(css): restore cron attention + detail-alert rules overwritten by style.css merge (absorb)

* docs: v0.50.225 release notes and version bump

---------

Co-authored-by: nesquena-hermes <[email protected]>
@nesquena-hermes
Copy link
Copy Markdown
Collaborator

Merged in v0.50.225 via PR #1137. Thank you @franksong2702 — great contribution (cron attention state for broken recurring jobs)! 🎉

JKJameson pushed a commit to JKJameson/hermes-webui that referenced this pull request Apr 29, 2026
…#1137)

* feat: attention state for broken cron jobs + Korean i18n (nesquena#1133, @franksong2702)

* fix: pytest state isolation for direct session saves (nesquena#1136, @franksong2702)

* fix(nesquena#1095): image thumbnails in composer + lightbox in chat (nesquena#1135)

* fix(css): restore cron attention + detail-alert rules overwritten by style.css merge (absorb)

* docs: v0.50.225 release notes and version bump

---------

Co-authored-by: nesquena-hermes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request merge soon Reviewed and queued for next release batch tasks Cron jobs, task scheduling, background jobs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants