Repository navigation
Replies: 2 comments
|
I ran into this exact problem and ended up building a small host plugin that It keeps:
Unfinished/interrupted steps keep all chunks, so partial rendering and For my own long sessions this reduced the If useful: More details in my showcase post: #2669 Happy to take feedback β especially about anything that might still need chunk-level data during history replay. |
|
We hit the same wall and ended up attacking it from the other side β at rest instead of at read time. Where it bit us: one long session's log was 26.89 MB on disk / 89k rows, and ~25k of those rows were So we wrote a plugin that, at startup and only while no session is being written, deletes the rows whose only consumer was a finished step β It is conservative on purpose, because deleting from someone's session log is not a small thing:
There is a complementary take on the same deltas worth knowing about: dsh-host-history-lite trims them at read time in Repo (MIT, offline test suite + mutation tests): https://github.com/mili1360/dsh-session-vacuum Curious what shape others see here β is the pain mostly payload size over the wire, or memory and load time on the server? |
Uh oh!
There was an error while loading. Please reload this page.
Environment: dsh 0.1.0-rc.6.
Repro: Opening history for a long session.
session.historywith the defaultmaxMessages=50returned 271,214 events (~64 MB JSON) for one page.The page includes every stream-delta event between the 50 message boundaries β
assistant/chunk,tool-call-chunks,reasoning-chunks,text-chunksβ even though the finalassistant/messageevents already carry the complete message content. In the observed page, ~270k of the 271k events wereassistant/chunk(~61 MB).Impact: the browser has to download/parse/render a ~64 MB response just to show one page of history, which makes the UI very slow on long sessions.
Suggestion: filter stream-delta event types out of history responses (they are only needed for live streaming), or bound pages by both message count and event volume.
All reactions