[GH-ISSUE #342] Conversation cache slots are consumed by successive turns of the same subagent, evicting the parent conversation #165

Closed
opened 2026-11-04 01:40:35 +07:00 by bsakaguchi · 2 comments
Owner

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?

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?
Author
Owner

@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.

<!-- gh-comment-id:5925968464 --> @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.
Author
Owner

@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!

<!-- gh-comment-id:5936874075 --> @Niko1221 commented on GitHub (Oct 1, 2026): Fixed in [0.1.32](https://github.com/Niko1221/Strata/releases/tag/v0.1.32): a turn's parked copy replaces the previous copies of the same conversation, so the parent isn't evicted. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#165
No description provided.