Repository navigation
Commit 20366fb
perf(web): hidden terminal drawers no longer keep full thread history in memory
Each thread with an open terminal keeps a drawer mounted while hidden (up
to 10 threads). The drawer used useThread, which holds a live thread
detail subscription, so every hidden thread kept its full message and
activity history in memory and kept growing while its agent ran.
The drawer only reads environmentId, projectId and worktreePath, which
are all on the thread shell. It now uses useThreadShell, so hidden
threads drop their detail after the normal idle TTL. Draft threads still
fall back to the draft record.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 2598ce7 commit 20366fb
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
920 | | - | |
921 | | - | |
922 | | - | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
923 | 925 | | |
924 | 926 | | |
925 | 927 | | |
| |||
1030 | 1032 | | |
1031 | 1033 | | |
1032 | 1034 | | |
1033 | | - | |
| 1035 | + | |
1034 | 1036 | | |
1035 | 1037 | | |
1036 | 1038 | | |
| |||
0 commit comments