bucket capture docs by 6h utc window#59
Merged
Merged
Conversation
Prasanna721
marked this pull request as ready for review
June 18, 2026 02:43
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
swaps the per-session customId for a 6h UTC time bucket (session__b0..b3). turns inside the same window share one customId so the backend appends them into one doc, rolls over every 6h. containerTag still separates users.
side effect: drops the sessionKey / session_start plumbing entirely, which is the exact code PR #39 touched. so the "session_start never fires -> customId drops -> every turn becomes its own doc" path is gone.
append-on-same-customId behavior confirmed, so a stable bucket id is all that's needed (no capture change).
still draft for one open thing: confirm customId is scoped per containerTag not global (else two users collide on the same bucket id). not run end to end yet - needs the openclaw runtime + a supermemory key to exercise the agent_end hook.