Repository navigation
ref(chat): Shorten turn session retention - #1308
Conversation
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bde109e. Configure here.
Shared summary lists hold many sessions. A terminal write must not shorten their TTL to the one-hour record grace and expire unfinished siblings still under a resume lease.
|
is this just queued state? like the time window the agent has to ack the turn information? if so that can be reduced to like one hour |
|
not just queue ack. unfinished turn-session redis is the resume lease for non-terminal turns ( auth is the long tail today — MCP oauth attempts are already 24h ( if we drop unfinished to 1h, auth callbacks after that lose the lease and fail closed even when the oauth attempt is still valid. happy to cut to 1h if we also want that auth behavior (or a later split: short default + auth-reason keeps longer). terminal stays 1h either way. |

Turn-session Redis records and summary indexes no longer inherit chat-sdk's 30-day retention. Unfinished sessions retain a 24-hour resume lease; completed, failed, and abandoned sessions retain a one-hour diagnostic grace period.
Terminal cleanup
Terminal writes also drop volatile
runtimeContextimmediately, while SQL remains the durable history and execution authority. Explicit test TTL overrides remain supported.Refs #1267
Requested by David Cramer.
--
View Junior Session [Sentry]