mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #342] Conversation cache slots are consumed by successive turns of the same subagent, evicting the parent conversation #165
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Anhelone on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/342
Conversation cache slots are consumed by successive turns of the same subagent, evicting the parent conversation
I’m testing v0.1.30 with:
--conversation-cache-mib 8192 --conversation-cache-slots 4
Workload is serial agent handoff:
MAIN → SUB → MAIN, one inference request at a time.
Before delegation, MAIN is hot:
70756 prompt = 70285 reused
Strata then parks MAIN:
parked 72122 tokens, parked=4, evictions=100.
The SUB is one linear conversation, but during its 9 successive requests the eviction counter increases on every turn:
101, 102, ... 109.
When SUB finishes and MAIN resumes:
prompt 77539 tokens = 0 reused + 77539 read
98497 ms
So the parent MAIN state was evicted even though the intervening requests were successive turns of the same SUB conversation.
A short auxiliary/vision request does restore MAIN correctly, so multi-conversation restore itself works.
Would it make sense for successive linear continuations of the same conversation to replace/coalesce their previous parked entry, instead of consuming additional conversation-cache slots? Alternatively, could the cache track conversation lineage/session identity or protect the most recently switched-out conversation?
@Niko1221 commented on GitHub (Oct 1, 2026):
Confirmed: each subagent turn parks a new copy of itself and the oldest entry (the parent) is evicted. 0.1.32 drops older copies of the same conversation that the new snapshot covers.
@Niko1221 commented on GitHub (Oct 1, 2026):
Fixed in 0.1.32: a turn's parked copy replaces the previous copies of the same conversation, so the parent isn't evicted. Thanks!