Skip to content

feat(sessions): add channelIdleMinutes config for per-channel session idle durations#1353

Merged
steipete merged 3 commits intoopenclaw:mainfrom
cash-echo-bot:main
Jan 21, 2026
Merged

feat(sessions): add channelIdleMinutes config for per-channel session idle durations#1353
steipete merged 3 commits intoopenclaw:mainfrom
cash-echo-bot:main

Conversation

@cash-echo-bot
Copy link
Copy Markdown
Contributor

Summary

Add new channelIdleMinutes config option to allow different session idle timeouts per channel. For example, Discord sessions can now be configured to last 7 days (10080 minutes) while other channels use shorter defaults.

Config Example

"sessions": {
  "channelIdleMinutes": {
    "discord": 10080
  }
}

Implementation

The channel-specific idle is passed as idleMinutesOverride to the existing resolveSessionResetPolicy, integrating cleanly with the new reset policy architecture.

Changes

  • src/config/types.base.ts - Add channelIdleMinutes type
  • src/config/zod-schema.session.ts - Add schema validation
  • src/auto-reply/reply/session.ts - Pass override to reset policy
  • src/commands/agent/session.ts - Wire up channel-specific idle
  • src/web/auto-reply/session-snapshot.ts - Include in session snapshots
  • Tests added

Closes #1352

CashWilliams and others added 3 commits January 21, 2026 19:09
… idle durations

Add new `channelIdleMinutes` config option to allow different session idle
timeouts per channel. For example, Discord sessions can now be configured
to last 7 days (10080 minutes) while other channels use shorter defaults.

Config example:
  sessions:
    channelIdleMinutes:
      discord: 10080  # 7 days

The channel-specific idle is passed as idleMinutesOverride to the existing
resolveSessionResetPolicy, integrating cleanly with the new reset policy
architecture.
@steipete steipete merged commit c415cca into openclaw:main Jan 21, 2026
@steipete
Copy link
Copy Markdown
Contributor

Landed via temp rebase onto main (squash merge).\n\n- Gate: pnpm lint && pnpm build && pnpm test\n- Land commit: b7c6627\n- Merge commit: c415cca\n\nThanks @cash-echo-bot!

zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
… idle durations (openclaw#1353)

* feat(sessions): add channelIdleMinutes config for per-channel session idle durations

Add new `channelIdleMinutes` config option to allow different session idle
timeouts per channel. For example, Discord sessions can now be configured
to last 7 days (10080 minutes) while other channels use shorter defaults.

Config example:
  sessions:
    channelIdleMinutes:
      discord: 10080  # 7 days

The channel-specific idle is passed as idleMinutesOverride to the existing
resolveSessionResetPolicy, integrating cleanly with the new reset policy
architecture.

* fix

* feat: add per-channel session reset overrides (openclaw#1353) (thanks @cash-echo-bot)

---------

Co-authored-by: Cash Williams <cashwilliams@gmail.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: per-channel session idle timeout configuration

3 participants