fix(cli): keep provider-owned sessions through implicit expiry

This commit is contained in:
Ayaan Zaidi
2026-04-22 15:11:35 +05:30
parent e36e0e8ad2
commit 18869acf46
5 changed files with 124 additions and 2 deletions

View File

@@ -69,6 +69,10 @@ Sessions are reused until they expire:
When both daily and idle resets are configured, whichever expires first wins.
Sessions with an active provider-owned CLI session are not cut by the implicit
daily default. Use `/reset` or configure `session.reset` explicitly when those
sessions should expire on a timer.
## Where state lives
All session state is owned by the **gateway**. UI clients query the gateway for

View File

@@ -185,6 +185,9 @@ child process environment for the run.
follow-up turns reuse the live Claude process while it is active. If the
Gateway restarts or the idle process exits, OpenClaw resumes from the stored
Claude session id.
- Stored CLI sessions are provider-owned continuity. The implicit daily session
reset does not cut them; `/reset` and explicit `session.reset` policies still
do.
Serialization notes: