[PR #1981] feat(tui): retain cache when cycling between subagent/parent sessions for perf #10145

Closed
opened 2026-02-16 18:14:45 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/1981

State: closed
Merged: Yes


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:

https://github.com/user-attachments/assets/7f94c276-6d8e-4bae-9091-193fc8789b63

after:

https://github.com/user-attachments/assets/8be54208-5712-46ad-87b6-9ea2abfcc4b0

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/1981 **State:** closed **Merged:** Yes --- 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: https://github.com/user-attachments/assets/7f94c276-6d8e-4bae-9091-193fc8789b63 after: https://github.com/user-attachments/assets/8be54208-5712-46ad-87b6-9ea2abfcc4b0
yindo added the pull-request label 2026-02-16 18:14:45 -05:00
yindo closed this issue 2026-02-16 18:14:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10145