[Feature]: Mobile — cache session history locally so long-lived sessions open faster (with clear/delete local cache) #6879
Replies: 2 comments
|
Clarification / offer to implement This is not a duplicate of #3601 or #2761.
Server pagination would help first load; this asks for device-side cache + user-controlled clear, so reopening the same session is fast after the first load. Happy to open a small, scoped PR for mobile local history caching (load from cache → delta sync → clear per-session / clear all) if maintainers want this direction. Prefer design/API notes first so the PR stays small and reviewable. |
|
Additional repro / comparison (same network path) When the host is reached over Tailscale:
So this doesn’t look like “Tailscale is slow” alone — same remote path, native app is much slower than Safari on large/history-heavy sessions. That points more at mobile app history load / lack of local persistence (or app-side hydration) than pure network latency. Happy to add device/OS/app version numbers if useful. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
On T3 Code mobile, opening a session that has accumulated a long history (e.g. actively used for ~a week) is noticeably slow every time the session is reopened. It feels like the full history has to be re-fetched / re-hydrated from the host each open.
Request: Cache session history on the device after first load, so reopening is fast, and let the user view / clear / delete that local cache when they want to free storage.
Problem
This is especially painful on mobile networks and when switching between a few large sessions during the day.
Related issues
Likely overlaps with large-thread performance work, but this is specifically about mobile client-side persistence + user control:
Even with server/pagination fixes, a local cache would still help repeat opens of the same session.
Proposed behavior
Cache
User controls
Nice-to-haves (optional)
Expected outcome
Environment
Notes
Happy to provide approximate history size / message counts or screen recordings if useful for triage.
All reactions