Skip to content

docs(cron): warn self-sending no_agent scripts to use deliver: local - #82799

Open
ericcaiwx-star wants to merge 1 commit into
NousResearch:mainfrom
ericcaiwx-star:docs/cron-self-send-deliver-local
Open

docs(cron): warn self-sending no_agent scripts to use deliver: local#82799
ericcaiwx-star wants to merge 1 commit into
NousResearch:mainfrom
ericcaiwx-star:docs/cron-self-send-deliver-local

Conversation

@ericcaiwx-star

Copy link
Copy Markdown

Summary

  • Document that no_agent scripts which already call a messaging API themselves must use deliver: local, otherwise Hermes also posts script stdout to the chat target after the run.
  • Cross-link the Script-Only guide from the cron feature reference.

Why

In production we had a Weixin daily-report script that already sent text + Excel via send_weixin_direct. The cron job still used deliver: origin, so after a successful script run Hermes attempted a second stdout delivery. That second push failed with iLink ret=-2 errmsg=prepare failed (often mislabeled as rate limit; see #80125 / #80426) and polluted last_delivery_error, even though the user-facing report had already been delivered.

This is not a scheduler bug — deliver: origin is working as designed for the common case where stdout is the message. The missing piece was docs for the self-sending script pattern.

Test plan

  • Docs render locally / on the site preview
  • Anchor #scripts-that-already-send-messages-themselves resolves from the cron feature page link

Made with Cursor

@ericcaiwx-star

Copy link
Copy Markdown
Author

Related Weixin mislabel / recovery discussion: #80125, preferred recovery PR #80426.

@alt-glitch alt-glitch added type/docs Documentation improvements P3 Low — cosmetic, nice to have comp/cron Cron scheduler and job management labels Aug 9, 2026
Scripts that already call a messaging API (e.g. multi-part Weixin reports)
should not also use deliver: origin, or Hermes posts stdout again after the
run. That second push is often unwanted and can fail independently of the
script's own successful sends.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor
cursor Bot force-pushed the docs/cron-self-send-deliver-local branch from 96598f6 to acafacb Compare August 26, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management P3 Low — cosmetic, nice to have type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants