hermes - ✅(Solved) Fix [Feature]: Customizable cron delivery header/footer templates [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#13771Fetched 2026-04-22 08:04:11
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×1

PR fix notes

PR #13779: feat(cron): add configurable header/footer templates (Closes #13771)

Description (problem / solution / changelog)

Summary

Add cron.header_template and cron.footer_template config options so deployments can customize cron delivery wrapper text. Both support {task_name} and {job_id} placeholders. Empty/false disables that section.

Config example

cron:
  wrap_response: true
  header_template: "Cronjob: {task_name} (id={job_id})\n---\n"
  footer_template: "\n\nReply to manage."

Changes

  • cron/scheduler.py: Read header_template/footer_template from config; use .format() to fill placeholders; defaults preserve existing wording

Closes #13771

Changed files

  • cron/scheduler.py (modified, +20/-7)

Code Example

cron:
  wrap_response: true
  header_template: "Cronjob Response: {task_name}\n(job_id: {job_id})\n-------------\n\n"
  footer_template: "\n\nTo stop or manage this job, send me a new message."
RAW_BUFFERClick to expand / collapse

Problem or Use Case

cron.wrap_response only supports on/off. When wrapping is enabled, the cron delivery header/footer text is hardcoded in cron/scheduler.py, so deployments can't customize the wording/branding.

Proposed Solution

Add configurable templates, e.g.

cron:
  wrap_response: true
  header_template: "Cronjob Response: {task_name}\n(job_id: {job_id})\n-------------\n\n"
  footer_template: "\n\nTo stop or manage this job, send me a new message."

Support at least {task_name} and {job_id}. Empty/false should disable either section.

Alternatives Considered

cron.wrap_response: false removes the wrapper entirely, but that loses useful context instead of making it customizable.

Feature Type

Configuration option

Scope

Small (single file, < 50 lines)

extent analysis

TL;DR

Implement configurable templates for the cron delivery header and footer to allow for customization of the wording and branding.

Guidance

  • Review the proposed solution and consider adding support for additional template variables, such as {task_description} or {execution_time}, to provide more context.
  • Update the cron/scheduler.py file to parse the new template configuration options and apply them to the cron delivery header and footer.
  • Test the new template configuration options to ensure they are working as expected and do not introduce any formatting issues.
  • Consider adding validation for the template configuration options to prevent errors if the templates are not properly formatted.

Example

# cron/scheduler.py
import yaml

# Load configuration
config = yaml.safe_load("""
cron:
  wrap_response: true
  header_template: "Cronjob Response: {task_name}\n(job_id: {job_id})\n-------------\n\n"
  footer_template: "\n\nTo stop or manage this job, send me a new message."
""")

# Apply template configuration
header = config['cron']['header_template'].format(task_name='My Task', job_id='123')
footer = config['cron']['footer_template']

Notes

This solution assumes that the cron/scheduler.py file has access to the necessary task and job information to populate the template variables.

Recommendation

Apply workaround by implementing the proposed configurable templates, as this will provide the necessary customization options for deployments.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - ✅(Solved) Fix [Feature]: Customizable cron delivery header/footer templates [1 pull requests, 1 participants]