Skip to content

feat(tui): retain cache when cycling between subagent/parent sessions for perf - #1981

Merged
adamdotdevin merged 1 commit into
anomalyco:devfrom
yihuikhuu:retain-cache-child-session-cycle
Aug 16, 2025
Merged

adamdotdevin merged 1 commit into
anomalyco:devfrom
yihuikhuu:retain-cache-child-session-cycle

Conversation

@yihuikhuu

Copy link
Copy Markdown
Contributor

fixes #1980

This PR updates the parts cache to not be cleared when switching between related sessions, i.e. parent/child sessions. This improves performance when cycling between subagent sessions, particularly with larger sessions.

The cache is still cleared when switching to unrelated sessions via the /sessions command

before:

slow.mov

after:

cached.mov

@adamdotdevin
adamdotdevin merged commit b3885d1 into anomalyco:dev Aug 16, 2025
@yihuikhuu
yihuikhuu deleted the retain-cache-child-session-cycle branch August 16, 2025 14:53
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cycling between subagent sessions becomes slow for larger sessions

2 participants