Skip to content

[Bug]: Inconsistent cron logs depending on whether no-agent script produces no output vs. wakeAgent=false #42851

Closed as not planned

Description

@Lx

Bug Description

When a Hermes cron job runs in no_agent mode and the detection script exits successfully with zero stdout (intended no work path), the corresponding run log file is created as an empty file under cron/output/<job-id>/....

When the same job returns {"wakeAgent": false} as output, the run log contains a non-empty status line.

This makes no-output silent ticks ambiguous in run history and monitoring, especially when comparing cron runs over time.

Steps to Reproduce

  1. Configure a no_agent cron job.
  2. Make the configured script print nothing to stdout but exit with status 0.
  3. Run manually: hermes cron run <job_id>
  4. Inspect the latest run log in ~/.hermes/cron/output/<job-id>/YYYY-MM-DD_HH-MM-SS.md
  5. Compare with a run where the script prints {"wakeAgent": false}.

Expected Behavior

  • Cron run logs should use consistent status formatting for all outcomes.
  • A zero-stdout no-work run shouldn’t create an empty file; it should record explicit status such as Script gate produced no output — agent skipped.
  • At minimum, no-output skip and wakeAgent=false skip should have comparable log semantics unless intentionally differentiated.

Actual Behavior

  • No-output run produced an empty file, e.g. ~/.hermes/cron/output/b6ec5c65ee6d/2026-06-09_22-59-18.md.

  • wakeAgent=false run produced a non-empty log entry, e.g. ~/.hermes/cron/output/b6ec5c65ee6d/2026-06-09_23-03-49.md:

    # Cron Job: [redacted]
    
    **Job ID:** b6ec5c65ee6d
    **Run Time:** 2026-06-09 23:03:49
    
    Script gate returned `wakeAgent=false` — agent skipped.
    

Affected Component

Agent Core (conversation loop, context compression, memory)

Messaging Platform (if gateway-related)

No response

Debug Report

--- hermes dump ---
version:          0.16.0 (2026.6.5) [57775e9e]
os:               Darwin 25.5.0 arm64
python:           3.11.15
openai_sdk:       2.24.0
profile:          la
hermes_home:      ~/.hermes/profiles/la
model:            @preset/owl-free-deepseek
provider:         openrouter
terminal:         local

api_keys:
  openrouter           set
  openai               not set
  anthropic            not set
  anthropic_token      not set
  nous                 not set
  google/gemini        not set
  gemini               not set
  glm/zai              not set
  zai                  not set
  kimi                 not set
  minimax              not set
  deepseek             set
  dashscope            not set
  huggingface          not set
  nvidia               not set
  opencode_zen         not set
  opencode_go          not set
  kilocode             not set
  firecrawl            not set
  tavily               not set
  browserbase          not set
  fal                  not set
  elevenlabs           not set
  github               not set

features:
  toolsets:           hermes-cli, computer_use
  mcp_servers:        0
  memory_provider:    built-in
  gateway:            running (launchd, pid 82921)
  platforms:          telegram
  cron_jobs:          0 active / 1 total
  skills:             94

config_overrides:
  tts.provider: neutts
  toolsets: ['hermes-cli', 'computer_use']
--- end dump ---

Operating System

macOS 26.5

Python Version

No response

Hermes Version

No response

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Activity

  1. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    comp/cronCron scheduler and job management
    on Jun 9, 2026
  2. liuhao1024 commented on Jun 9, 2026

    @liuhao1024

    This is fixed by #42893 — writes a consistent status doc when a non-no_agent script produces empty stdout, matching the wakeAgent=false path.

  3. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    Automated hermes-sweeper review: this is implemented on current main.

    • cron/scheduler.py:2589-2598 turns successful no-agent empty stdout into a non-empty metadata/status document (silent (empty output)).
    • cron/scheduler.py:2574-2587 gives wakeAgent=false the corresponding non-empty status document.
    • cron/scheduler.py:3475 persists the returned document through save_job_output, so both silent outcomes produce populated run logs.
    • Thanks for the linked fix(cron): write consistent status doc for empty script output in non-no_agent path #42893 discussion; that PR addressed the analogous non-no_agent path, while current main also covers the no-agent behavior reported here.
  4. Lx commented on Jul 14, 2026

    @Lx
    Author

    Sorry, again: if there has been a fix, why is this being closed as Not Planned?

    @teknium1: please show more respect for those who have taken the time to research and file valid bug reports by not marking these reports as essentially rejected when in fact the issues they’ve described have been acknowledged and corrected.

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 managementsweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions