feat(desktop): keep running threads synced in the background (#13554)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
0c84b4289c
commit
99641fd09a
6 files changed
+320
-3
No files matched your search
@@ -61,6 +61,15 @@ stream, which stops when the last consumer unmounts; hidden mounted routes still
|
||||
count. A registry-local cache retains state and its replay cursor for five idle
|
||||
minutes so back navigation can resume without another snapshot download.
|
||||
|
||||
The desktop app adds one consumer: a
|
||||
[keep-alive](../../apps/web/src/state/threads.ts) mounts every thread whose
|
||||
session is starting or running, in each enabled environment. Opening a running
|
||||
thread then needs no replay. The shell and detail streams are independent, so
|
||||
the shell can report a stop before the detail loads or catches up. A stopped
|
||||
thread stays mounted until its own stream is live and shows the stop, and the
|
||||
stream then closes and saves the settled state.
|
||||
Web and mobile do not keep threads alive.
|
||||
|
||||
Retain state and cursor together only after an update finishes. Cancellation must
|
||||
not advance the cached cursor beyond the applied data, and an old scope must not
|
||||
overwrite its successor's cache. Preserve pagination data on reuse, but clear
|
||||
|
||||
Reference in new issue
Block a user