hermes - 💡(How to fix) Fix Feature Request: Support day-of-week for session_reset schedule [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#16796Fetched 2026-04-29 06:39:04
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Currently session_reset only supports two modes:

  • idle: Reset after N minutes of inactivity
  • hourly/daily: Reset at a fixed time every hour/day (at_hour)

There is no way to schedule a reset on a specific day of the week (e.g., "every Sunday at 23:00").

Root Cause

Currently session_reset only supports two modes:

  • idle: Reset after N minutes of inactivity
  • hourly/daily: Reset at a fixed time every hour/day (at_hour)

There is no way to schedule a reset on a specific day of the week (e.g., "every Sunday at 23:00").

Fix Action

Fix / Workaround

  • Using idle_minutes with a short timeout (e.g., 1440 = 24h) — works but feels like a workaround
  • Manually resetting — not ideal for automation

Code Example

session_reset:
  mode: scheduled
  at_hour: 23
  at_day_of_week: 0  # Sunday

---

session_reset:
  mode: cron
  cron: "0 23 * * 0"  # Every Sunday at 23:00
RAW_BUFFERClick to expand / collapse

Description

Currently session_reset only supports two modes:

  • idle: Reset after N minutes of inactivity
  • hourly/daily: Reset at a fixed time every hour/day (at_hour)

There is no way to schedule a reset on a specific day of the week (e.g., "every Sunday at 23:00").

Motivation

For users who chat frequently (multiple times per week) but still want periodic context cleanup, the current options are limited:

  • Setting at_hour resets every day, which may be too aggressive
  • Setting idle_minutes requires waiting for inactivity, which means frequent chatters never get a reset

A weekly reset (e.g., every Sunday night) would be a good middle ground — context stays fresh without unnecessary daily interruptions.

Proposed Solution

Add a at_day_of_week option (or similar) to session_reset, e.g.:

session_reset:
  mode: scheduled
  at_hour: 23
  at_day_of_week: 0  # Sunday

Or support cron-like expressions for more flexibility:

session_reset:
  mode: cron
  cron: "0 23 * * 0"  # Every Sunday at 23:00

Alternatives Considered

  • Using idle_minutes with a short timeout (e.g., 1440 = 24h) — works but feels like a workaround
  • Manually resetting — not ideal for automation

extent analysis

TL;DR

To implement a weekly reset, add a at_day_of_week option or support cron-like expressions to the session_reset configuration.

Guidance

  • Consider adding a at_day_of_week option to the session_reset configuration to allow for weekly resets on a specific day.
  • Alternatively, support cron-like expressions for more flexibility in scheduling resets.
  • Evaluate the proposed solution and alternatives to determine the best approach for your use case.
  • Test the new configuration to ensure it works as expected and provides the desired reset behavior.

Example

session_reset:
  mode: scheduled
  at_hour: 23
  at_day_of_week: 0  # Sunday

or

session_reset:
  mode: cron
  cron: "0 23 * * 0"  # Every Sunday at 23:00

Notes

The proposed solution requires updates to the session_reset configuration and may involve changes to the underlying implementation.

Recommendation

Apply a workaround by using the idle_minutes option with a short timeout (e.g., 1440 = 24h) until a more permanent solution is implemented, as it is the most straightforward approach given the current limitations.

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