Skip to content

The agent that grows with you

docs(gateway): describe persistent sessions without reset timers

Teknium1481a0de96dd
diff --git a/cli-config.yaml.example b/cli-config.yaml.example
index 94ec7e5edad..c26d3309999 100644
--- a/cli-config.yaml.example
+++ b/cli-config.yaml.example
@@ -916,30 +916,10 @@ memory:
nudge_interval: 10 # Nudge every 10 user turns (0 = disabled)
# =============================================================================
-# Session Reset Policy (Messaging Platforms)
-# =============================================================================
-# Controls when messaging sessions (Telegram, Discord, WhatsApp, Slack) are
-# automatically cleared. Default is "none": sessions never auto-reset —
-# conversation context lives until you /reset or /new manually, or context
-# compression kicks in. Opt in to automatic resets if you prefer sessions to
-# clear on a schedule (long-lived context increases API cost per message,
-# though prompt caching and compression keep this manageable).
-#
-# When an automatic reset triggers, the agent first saves important
-# information to its persistent memory — but the conversation context is
-# wiped. The agent starts fresh but retains learned facts via its memory
-# system.
-#
-# Modes:
-# "none" - Never auto-reset (default); context lives until /reset or compression
-# "idle" - Reset after N minutes of inactivity
-# "daily" - Reset at a fixed hour each day
-# "both" - Reset on EITHER inactivity timeout or daily boundary
-#
-session_reset:
- mode: none # "none", "idle", "daily", or "both"
- idle_minutes: 1440 # Inactivity timeout in minutes (used by "idle"/"both")
- at_hour: 4 # Daily reset hour, 0-23 local time (used by "daily"/"both")
+# Session Continuity (Messaging Platforms)
+# =============================================================================
+# Conversations persist across inactivity and daily boundaries. Use /new or
+# /reset explicitly; context compression manages long conversations.
# Maximum number of simultaneously active chat sessions across CLI, TUI,
# dashboard chat, and messaging gateway. Set to null, 0, or omit to allow
diff --git a/gateway/run.py b/gateway/run.py
index 7557085b256..2fc8fec74d7 100644
--- a/gateway/run.py
+++ b/gateway/run.py
@@ -3154,29 +3154,12 @@ def _reconnect_needs_attention(info: dict, now: float) -> bool:
_SESSION_DB_UNPINNED = object()
-# Agent-facing sidecar note per auto-reset reason (default: idle).
+# Only explicit suspension can replace a routed conversation.
_AUTO_RESET_CONTEXT_NOTES = {
"suspended": "[System note: The user's previous session was stopped and suspended. This is a fresh conversation with no prior context.]",
- "daily": "[System note: The user's session was automatically reset by the daily schedule. This is a fresh conversation with no prior context.]",
- "resume_pending_expired": "[System note: The previous gateway session could not be recovered after a restart (API recovery timed out). This is a fresh conversation — use /resume to restore history if needed.]",
- "idle": "[System note: The user's previous session expired due to inactivity. This is a fresh conversation with no prior context.]",
}
-def _auto_reset_reason_text(reset_reason: str, policy) -> str:
- """Human-readable cause for the user-facing auto-reset notice."""
- if reset_reason == "suspended":
- return "previous session was stopped or interrupted"
- if reset_reason == "resume_pending_expired":
- return "gateway restart recovery timed out"
- if reset_reason == "daily":
- return f"daily schedule at {policy.at_hour}:00"
- hours = policy.idle_minutes // 60
- mins = policy.idle_minutes % 60
- duration = f"{hours}h" if not mins else f"{hours}h {mins}m" if hours else f"{mins}m"
- return f"inactive for {duration}"
-
-
def _write_runtime_status_quiet(**fields: Any) -> None:
"""Best-effort ``gateway_state.json`` write; status persistence must never abort the caller."""
try:
diff --git a/website/docs/developer-guide/context-engine-plugin.md b/website/docs/developer-guide/context-engine-plugin.md
index 6609158e076..6d33638ddbe 100644
--- a/website/docs/developer-guide/context-engine-plugin.md
+++ b/website/docs/developer-guide/context-engine-plugin.md
@@ -212,7 +212,7 @@ Only one engine can be registered. A second plugin attempting to register is rej
3. update_from_response() — after each API call
4. should_compress() — checked each turn
5. compress() — called when should_compress() returns True
-6. on_session_end() — session boundary (CLI exit, /reset, gateway expiry)
+6. on_session_end() — session boundary (CLI exit, /reset, gateway shutdown)
```
`on_session_reset()` is called on `/new` or `/reset` to clear per-session state without a full shutdown.
diff --git a/website/docs/guides/tips.md b/website/docs/guides/tips.md
index 693bcaaf420..03a8b55f194 100644
--- a/website/docs/guides/tips.md
+++ b/website/docs/guides/tips.md
@@ -174,7 +174,7 @@ Instead of manually collecting user IDs for allowlists, enable DM pairing. When
Use `/verbose` to control how much tool activity you see. In messaging platforms, less is usually more — keep it on "new" to see just new tool calls. In the CLI, "all" gives you a satisfying live view of everything the agent does.
:::tip
-By default, messaging sessions never auto-reset — context lives until you `/reset` or compression kicks in. If you want sessions to reset automatically (after idle time or daily at a fixed hour), opt in via the `session_reset` section in `~/.hermes/config.yaml`.
+Messaging sessions persist until an explicit `/new` or `/reset`. Context compression manages long conversations without an idle or daily reset.
:::
## Security
diff --git a/website/docs/reference/environment-variables.md b/website/docs/reference/environment-variables.md
index 76edd5cb223..0849306b17a 100644
--- a/website/docs/reference/environment-variables.md
+++ b/website/docs/reference/environment-variables.md
@@ -884,8 +884,6 @@ Unset the variable or remove it from `.env` to restore normal writes (still subj
| Variable | Description |
|----------|-------------|
-| `SESSION_IDLE_MINUTES` | Reset sessions after N minutes of inactivity (default: 1440) |
-| `SESSION_RESET_HOUR` | Daily reset hour in 24h format (default: 4 = 4am) |
| `HERMES_SESSION_ID` | **Exported automatically into every tool subprocess** Hermes spawns (`terminal`, `execute_code`, persistent shell, Docker/Singularity backends, delegated subagent runs). Set by the agent to the current session ID; user scripts called from tools can read it to correlate their output, telemetry, or side effects with the originating Hermes session. **You should not set this manually** — overriding it from a parent shell only takes effect outside an agent run, and is overwritten the moment the agent starts a session. |
| `AI_AGENT` | **Set to `hermes-agent` by the CLI and gateway entry points** (only when not already set by an outer harness), and exported into every terminal-tool shell — including remote backends (Docker, SSH, Modal, Daytona, Singularity, Vercel). The emerging cross-agent standard for child-process attribution — generic tooling (e.g. huggingface_hub's agent detection) reads it to know it runs under an AI agent. The value matches Hermes' id in the public agent-harness registry. Don't set manually. |
| `HERMES_AGENT` | **Set to `true` by the CLI and gateway entry points** and exported into every terminal-tool shell so child processes can detect they run inside Hermes specifically. Don't set manually. |
diff --git a/website/docs/user-guide/features/hooks.md b/website/docs/user-guide/features/hooks.md
index 8c6c773b25d..cb94d9130b4 100644
--- a/website/docs/user-guide/features/hooks.md
+++ b/website/docs/user-guide/features/hooks.md
@@ -457,7 +457,7 @@ Payload fields below are the exact event-specific fields supplied by each call s
| `transform_api_error_classification` | Transform | On each failed provider attempt, at the top of the built-in classifier; all callbacks run, then the first dict with a valid `reason` wins (run-all-then-pick-first), and skipped valid results log a runtime warning. Python plugins only. | `provider`, `model`, `status_code`, `error_type`, `error_code`, `error_message`, `error_body`, `error`, `approx_tokens`, `context_length`, `num_messages` | `error_message` and `error_body` may contain raw provider/user data. |
| `on_session_start` | Observer | First turn of a new session; return ignored. | `session_id`, `model`, `platform` | Identifiers and routing metadata only. |
| `on_session_end` | Observer | Canonically at each turn finalization; CLI/TUI exits have additional reduced legacy shapes. Return ignored. | Canonical: `session_id`, `task_id`, `turn_id`, `completed`, `failed`, `interrupted`, `turn_exit_reason`, `model`, `platform`; exit paths may add `reason`/`api_request_id` and omit fields. | IDs, model/platform, and outcome; canonical payload has no message body. |
-| `on_session_finalize` | Observer | CLI/TUI/gateway teardown through `finalize_session`; gateway shutdown or expiry may finalize without a reset. Return ignored. | Surface-dependent `session_id`, `platform`, optionally `reason`, `old_session_id`, `new_session_id` | Session and routing identifiers. |
+| `on_session_finalize` | Observer | CLI/TUI/gateway teardown through `finalize_session`; gateway shutdown may finalize without a reset. Return ignored. | Surface-dependent `session_id`, `platform`, optionally `reason`, `old_session_id`, `new_session_id` | Session and routing identifiers. |
| `on_session_reset` | Observer | CLI/TUI session boundary and gateway after the replacement session exists; return ignored. | CLI: `session_id`, `platform`, `reason`; TUI: `session_id`, `platform`; gateway: those plus `reason`, `old_session_id`, `new_session_id` | Session and routing identifiers. |
| `on_skill_lifecycle` | Observer | After an authoritative skill-usage state change; return ignored. | `action`, `skill_name`, `provenance`, `task_id`, `session_id`, `use_count`, `reused`, `reuse_after_patch` | Exposes the local skill name and provenance. |
| `subagent_start` | Observer | Child constructed and about to run; return ignored. | `parent_session_id`, `parent_turn_id`, `parent_subagent_id`, `child_session_id`, `child_subagent_id`, `child_role`, `child_goal` | Child goal may contain user/project content. |
@@ -1007,7 +1007,7 @@ def my_callback(session_id: str | None, platform: str, **kwargs):
| `session_id` | `str` or `None` | The outgoing session ID. May be `None` if no active session existed. |
| `platform` | `str` | `"cli"` or the messaging platform name (`"telegram"`, `"discord"`, etc.). |
-**Fires:** In CLI/TUI teardown and in gateway reset, shutdown, or idle-expiry paths. Gateway shutdown and expiry can finalize without a matching `on_session_reset`.
+**Fires:** In CLI/TUI teardown and in gateway reset or shutdown paths. Gateway shutdown can finalize without a matching `on_session_reset`.
**Return value:** Ignored.
diff --git a/website/docs/user-guide/messaging/index.md b/website/docs/user-guide/messaging/index.md
index d86ccd169f7..475fe2ce332 100644
--- a/website/docs/user-guide/messaging/index.md
+++ b/website/docs/user-guide/messaging/index.md
@@ -272,45 +272,15 @@ Semantics are honest at-least-once:
Disable with `gateway.delivery_ledger: false` in `config.yaml` (restores the
old behavior: in-flight responses are lost on crash).
-### Reset Policies
+### Session continuity
-**By default sessions never auto-reset** — context lives until you `/reset`
-manually or context compression kicks in. If you want automatic resets, opt in
-with the `session_reset` section in `~/.hermes/config.yaml`:
+Gateway conversations do not reset after inactivity or at a daily boundary. Use `/new`
+or `/reset` for an explicit new conversation; context compression remains automatic.
+Legacy `session_reset` settings, reset-policy overrides and reset-timer environment
+variables are ignored. Cached agents may be released to reclaim resources without
+replacing the durable conversation. Restart-recovery freshness limits automatic
+continuation, not the history loaded when you send a message.
-```yaml
-session_reset:
- mode: idle # "idle", "daily", "both", or "none" (default)
- idle_minutes: 1440 # for idle/both: minutes of inactivity before reset
- at_hour: 4 # for daily/both: hour of day (0-23, local time)
-```
-
-| Mode | Description |
-|------|-------------|
-| `none` | Never auto-reset (default) |
-| `daily` | Reset at a specific hour each day |
-| `idle` | Reset after N minutes of inactivity |
-| `both` | Whichever triggers first |
-
-A live background process (started with `terminal(background=true)`) normally
-protects its session from resetting so output isn't lost. To stop a forgotten
-process — say a preview server — from pinning a session open forever, a
-background process older than `bg_process_max_age_hours` (default **24**) no
-longer blocks reset. The process is **not** killed, only ignored by the reset
-guard. Set it to `0` to disable the cutoff (any live process blocks reset, the
-old behavior), or raise it if you run legitimate multi-day jobs whose liveness
-should keep the conversation open.
-
-Configure per-platform overrides in `~/.hermes/gateway.json`:
-
-```json
-{
- "reset_by_platform": {
- "telegram": { "mode": "idle", "idle_minutes": 240 },
- "discord": { "mode": "idle", "idle_minutes": 60 }
- }
-}
-```
## Per-Channel Model & System Prompt Overrides
diff --git a/website/docs/user-guide/messaging/telegram.md b/website/docs/user-guide/messaging/telegram.md
index deb60b4e727..720217ec7ef 100644
--- a/website/docs/user-guide/messaging/telegram.md
+++ b/website/docs/user-guide/messaging/telegram.md
@@ -736,7 +736,7 @@ unaffected.
Topics with a `skill` field automatically load that skill when a new session starts in the topic. This works exactly like typing `/skill-name` at the start of a conversation — the skill content is injected into the first message, and subsequent messages see it in the conversation history.
-For example, a topic with `skill: arxiv` will have the arxiv skill pre-loaded whenever its session resets (due to idle timeout, daily reset, or manual `/reset`).
+For example, a topic with `skill: arxiv` will have the arxiv skill pre-loaded whenever its session resets (after an explicit `/new` or `/reset`).
:::tip
Topics created outside of the config (e.g., by manually calling the Telegram API) are discovered automatically when a `forum_topic_created` service message arrives. You can also add topics to the config while the gateway is running — they'll be picked up on the next cache miss.
diff --git a/website/docs/user-guide/sessions.md b/website/docs/user-guide/sessions.md
index f90ea00f015..45a65a61a16 100644
--- a/website/docs/user-guide/sessions.md
+++ b/website/docs/user-guide/sessions.md
@@ -791,19 +791,15 @@ group_sessions_per_user: false
That reverts groups/channels to a single shared session per room, which preserves shared conversational context but also shares token costs, interrupt state, and context growth.
-### Session Reset Policies
+### Session continuity
-**By default gateway sessions never auto-reset** (`mode: none`). You can opt
-in to automatic resets via the `session_reset` section in `config.yaml`:
+Gateway conversations do not reset after inactivity or at a daily boundary. Use `/new`
+or `/reset` for an explicit new conversation; context compression remains automatic.
+Legacy `session_reset` settings, reset-policy overrides and reset-timer environment
+variables are ignored. Cached agents may be released to reclaim resources without
+replacing the durable conversation. Restart-recovery freshness limits automatic
+continuation, not the history loaded when you send a message.
-- **none** — never auto-reset (default; context managed by `/reset` and compression)
-- **idle** — reset after N minutes of inactivity
-- **daily** — reset at a specific hour each day
-- **both** — reset on whichever comes first (idle or daily)
-
-Before a session is auto-reset, the agent is given a turn to save any important memories or skills from the conversation.
-
-Sessions with **active background processes** are never auto-reset, regardless of policy.
### Continuity After Crashes and Restarts
@@ -820,9 +816,8 @@ holds across gateway crashes, restarts, and updates:
conversation you were actually having.
- Recovery **respects `/new` boundaries**: if the most recent event for a chat
is an intentional reset, recovery starts fresh rather than reaching behind
- the reset to resurrect an older session. Recovered sessions also keep their
- real idle time, so an opt-in idle/daily reset policy applies correctly to
- them instead of treating every recovered session as brand new.
+ the reset to resurrect an older session. Elapsed time alone never prevents
+ recovery of a durable conversation.
## Storage Locations
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/tips.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/tips.md
index 140a294ecf8..c258aa2e342 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/tips.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/tips.md
@@ -170,7 +170,7 @@ Hermes 在会话启动时从当前工作目录加载顶层 `AGENTS.md`。子目
使用 `/verbose` 控制工具活动的显示详细程度。在消息平台上,通常越简洁越好——保持"new"模式只查看新的工具调用。在 CLI 中,"all" 模式可以实时查看 agent 的所有操作。
:::tip
-默认情况下,消息平台的会话永不自动重置 —— 上下文会一直保留,直到你手动 `/reset` 或触发上下文压缩。如需自动重置(空闲超时或每天固定时间),可在 `~/.hermes/config.yaml` 的 `session_reset` 部分选择启用。
+消息平台的会话不会因空闲或每日时间边界重置。使用 `/new` 或 `/reset` 开始新对话;长对话仍由上下文压缩管理。
:::
## 安全
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md
index c39533eec5b..2076f2b0fd8 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md
@@ -611,8 +611,6 @@ export HERMES_WRITE_SAFE_ROOT=/path/to/project:/home/you/.hermes
| 变量 | 描述 |
|----------|-------------|
-| `SESSION_IDLE_MINUTES` | 不活动 N 分钟后重置会话(默认:1440) |
-| `SESSION_RESET_HOUR` | 24 小时制每日重置时间(默认:4 = 凌晨 4 点) |
| `HERMES_SESSION_ID` | **自动导出到 Hermes 生成的每个工具子进程**(`terminal`、`execute_code`、持久 shell、Docker/Singularity 后端、委托子 agent 运行)。由 agent 设置为当前会话 ID;从工具调用的用户脚本可读取它,以将其输出、遥测或副作用与原始 Hermes 会话关联。**不应手动设置**——从父 shell 覆盖仅在 agent 运行外生效,且 agent 启动会话时会被覆盖。 |
## 上下文压缩(仅 config.yaml)
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/hooks.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/hooks.md
index 6356bc10b0e..1b01af81d6b 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/hooks.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/hooks.md
@@ -391,7 +391,7 @@ def register(ctx):
| `api_request_error` | 观察者 | 每次失败的 provider attempt;忽略返回值。 | `task_id`, `turn_id`, `api_request_id`, `session_id`, `platform`, `model`, `provider`, `base_url`, `api_mode`, `api_call_count`, `api_duration`, `started_at`, `ended_at`, `status_code`, `retry_count`, `max_retries`, `retryable`, `reason`, `error`, `request` | Error 文本可能含 provider/用户数据;`request` 设计为已清理。 |
| `on_session_start` | 观察者 | 新 session 第一轮;忽略返回值。 | `session_id`, `model`, `platform` | 仅标识符和 routing metadata。 |
| `on_session_end` | 观察者 | Canonical 路径在每轮 finalize;CLI/TUI 退出还有精简 legacy shape。 | Canonical:`session_id`, `task_id`, `turn_id`, `completed`, `failed`, `interrupted`, `turn_exit_reason`, `model`, `platform`;退出路径可能增加 `reason`/`api_request_id` 并省略字段。 | ID、model/platform 和结果;canonical payload 无消息正文。 |
-| `on_session_finalize` | 观察者 | CLI/TUI/gateway 通过 `finalize_session` teardown;gateway 关闭或过期时可只 finalize 而不 reset。忽略返回值。 | 按 surface:`session_id`, `platform`,可选 `reason`, `old_session_id`, `new_session_id` | Session 和 routing 标识。 |
+| `on_session_finalize` | 观察者 | CLI/TUI/gateway 通过 `finalize_session` teardown;gateway 关闭时可只 finalize 而不 reset。忽略返回值。 | 按 surface:`session_id`, `platform`,可选 `reason`, `old_session_id`, `new_session_id` | Session 和 routing 标识。 |
| `on_session_reset` | 观察者 | CLI/TUI session boundary,或 gateway 创建替代 session 后;忽略返回值。 | CLI:`session_id`, `platform`, `reason`;TUI:`session_id`, `platform`;gateway:另有 `reason`, `old_session_id`, `new_session_id` | Session 和 routing 标识。 |
| `on_skill_lifecycle` | 观察者 | 权威 skill 使用状态变更后;忽略返回值。 | `action`, `skill_name`, `provenance`, `task_id`, `session_id`, `use_count`, `reused`, `reuse_after_patch` | 暴露本地 skill 名和 provenance。 |
| `subagent_start` | 观察者 | 子 agent 已构造、即将运行;忽略返回值。 | `parent_session_id`, `parent_turn_id`, `parent_subagent_id`, `child_session_id`, `child_subagent_id`, `child_role`, `child_goal` | Child goal 可能含用户/项目内容。 |
@@ -786,7 +786,7 @@ def my_callback(session_id: str | None, platform: str, **kwargs):
| `session_id` | `str` 或 `None` | 即将销毁的会话 ID。若无活跃会话则可能为 `None`。 |
| `platform` | `str` | `"cli"` 或消息平台名称(`"telegram"`、`"discord"` 等)。 |
-**触发位置:** CLI/TUI teardown,以及 gateway reset、关闭或空闲过期路径。Gateway 关闭和过期可只触发 finalize,而不触发对应的 `on_session_reset`。
+**触发位置:** CLI/TUI teardown,以及 gateway reset 或关闭路径。Gateway 关闭可只触发 finalize,而不触发对应的 `on_session_reset`。
**返回值:** 忽略。
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.md
index a5b70ccaf1a..f73c8e3ae11 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/index.md
@@ -161,34 +161,13 @@ hermes gateway status --system # 仅 Linux:显式检查系统服务
会话在消息之间持续保留,直到重置。Agent 会记住你的对话上下文。
-### 重置策略
+### 会话连续性
-**默认情况下会话永不自动重置** —— 上下文会一直保留,直到你手动 `/reset` 或触发上下文压缩。如果你希望会话自动重置,可在 `~/.hermes/config.yaml` 的 `session_reset` 部分选择启用:
+Gateway 不会因空闲时间或每日时间边界而重置对话。需要新对话时使用 `/new`
+或 `/reset`;上下文压缩仍会自动运行。旧的 `session_reset` 配置、重置策略覆盖和
+重置计时环境变量均被忽略。缓存中的 agent 可以释放资源,但不会替换持久化对话。
+重启恢复的新鲜度限制仅约束自动继续执行,不会清除用户发送消息时加载的历史。
-```yaml
-session_reset:
- mode: idle # "idle"、"daily"、"both" 或 "none"(默认)
- idle_minutes: 1440 # idle/both 模式:空闲多少分钟后重置
- at_hour: 4 # daily/both 模式:每天的重置时间(0-23,本地时间)
-```
-
-| 模式 | 说明 |
-|------|-------------|
-| `none` | 永不自动重置(默认) |
-| `daily` | 每天在指定时间重置 |
-| `idle` | 空闲 N 分钟后重置 |
-| `both` | 以先触发者为准 |
-
-在 `~/.hermes/gateway.json` 中配置各平台的覆盖设置:
-
-```json
-{
- "reset_by_platform": {
- "telegram": { "mode": "idle", "idle_minutes": 240 },
- "discord": { "mode": "idle", "idle_minutes": 60 }
- }
-}
-```
## 安全
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md
index 19c7b710ebf..471cb891875 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md
@@ -535,18 +535,13 @@ group_sessions_per_user: false
这会将群组/频道恢复为每个房间一个共享 session,保留共享的对话上下文,但也共享 token 费用、中断状态和上下文增长。
-### Session 重置策略
+### 会话连续性
-**默认情况下 Gateway session 永不自动重置**(`mode: none`)。你可以通过 `config.yaml` 中的 `session_reset` 部分选择启用自动重置:
+Gateway 不会因空闲时间或每日时间边界而重置对话。需要新对话时使用 `/new`
+或 `/reset`;上下文压缩仍会自动运行。旧的 `session_reset` 配置、重置策略覆盖和
+重置计时环境变量均被忽略。缓存中的 agent 可以释放资源,但不会替换持久化对话。
+重启恢复的新鲜度限制仅约束自动继续执行,不会清除用户发送消息时加载的历史。
-- **none** — 永不自动重置(默认;上下文由 `/reset` 和压缩管理)
-- **idle** — 在 N 分钟不活跃后重置
-- **daily** — 每天在特定时间重置
-- **both** — 以先到者为准(idle 或 daily)
-
-在 session 自动重置之前,agent 会有一轮机会保存对话中的重要记忆或技能。
-
-有**活跃后台进程**的 session 永远不会自动重置,无论策略如何。
## 存储位置