openclaw - 💡(How to fix) Fix Feature Request: Add configurable dashboard session retention duration

Official PRs (…)
ON THIS PAGE

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…

Code Example

{
  session: {
    dashboardRetentionDuration: "8760h"  // 1 年 = 365 * 24h
  }
}

---

{
  session: {
    dashboardRetentionDays: 365  // 保留 365 天内的 Dashboard 会话
  }
}
RAW_BUFFERClick to expand / collapse

Feature Request: 增加 Dashboard 会话保留时长配置项

问题描述

当前 Control UI 聊天界面的会话选择器(Session Picker)只会显示最近约 24 小时内有活动的 Dashboard 会话(如 WebChat 0521WebChat 0518-A 等)。超过此时间窗口的 Dashboard 会话虽然仍存在于 sessions.json 和对应的 .jsonl 文件中,但在 UI 会话选择器中不再可见。

期望行为

增加一个配置项,允许用户自定义 Dashboard 会话在会话选择器中的保留时长。例如:

{
  session: {
    dashboardRetentionDuration: "8760h"  // 1 年 = 365 * 24h
  }
}

或者作为一个整数型的天数配置:

{
  session: {
    dashboardRetentionDays: 365  // 保留 365 天内的 Dashboard 会话
  }
}

使用场景

用户希望在网页版 Control UI 中自由切换不同的历史对话,像 ChatGPT 的侧边栏一样随时回到之前的对话。对于长期项目,Dashboard 会话可能包含重要的上下文和分析结果,24 小时的过期窗口太短。

当前行为(截至 2026.5.21)

  • sessions.json 中记录了 9 个会话(含 6 个 Dashboard 会话)
  • sessions.list API 只返回 2 个(主会话 + 1 个较新的 Dashboard 会话)
  • Dashboard 会话约 24 小时后从会话选择器中消失
  • session.maintenance 中有 maxEntriespruneAfter 等配置,但不影响 Dashboard 会话在 UI 选择器中的可见性

建议实现

session 配置下增加一个新字段(如 dashboardRetentionDuration),控制 Dashboard 会话在 UI 选择器中可见的时间窗口。默认值可以保持当前行为(如 24h),用户可自定义为更长的时长。

环境信息

  • 版本: OpenClaw 2026.5.18
  • 运行模式: local gateway
  • OS: Ubuntu 26.04 (Linux 7.0.0-15-generic)

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

openclaw - 💡(How to fix) Fix Feature Request: Add configurable dashboard session retention duration