Repository navigation
perf: mobile + hub performance — incremental reload, gzip, lazy highlight, session cache, Enter/Ctrl+Enter - #131
Open
vinicius-symetrix wants to merge 6 commits into
Open
vinicius-symetrix wants to merge 6 commits into
vinicius-symetrix wants to merge 6 commits into
Conversation
added 6 commits
November 15, 2026 06:40
…ight, session cache, Enter/Ctrl+Enter The whole team uses the hub from phones and laptops over the tailnet; the first paint and every stream event re-downloaded and re-rendered the whole session. This makes the hub fast on weak devices and keeps the server cool under research load. Server (Go): - gzip middleware (content-type aware, skips SSE + /static pre-compressed, never double-compresses; WriteHeader override so the auth 401 stays plain) - session result cache: full scans memoized 1.5s (800 NFS project dirs were re-walked on every poll, ~0.8s -> 2.6ms) - byte-budgeted session window (WindowEntries): byte-heavy sessions embed a tail that fits the budget instead of megabytes of HTML Frontend: - incremental live reload: fetch only the missing tail (?from=N) instead of the whole session on every stream event — the iPhone typing lag - highlight.js no longer in the entry static graph (~900KB off first paint) - load-earlier respects the byte budget via the shared WindowEntries - Enter sends everywhere; Ctrl/Cmd+Enter inserts a newline (mobile had no send-on-Enter) - /api/suggested-path + /?new=1&path= deep link pre-fills the caller shared folder in the new-session modal Tests: 782 frontend + all Go packages pass; the nightly patch applies clean on v0.0.1-beta.38.
…ot per navigation
… per visit on slow links
…ps typing responsive on mobile
…nged payloads cost a header round trip, not megabytes
…ssion cost a header round trip instead of re-downloading the shell (and embedded session payload)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The whole team uses the hub from phones and laptops over the tailnet; the first paint and every stream event re-downloaded and re-rendered the whole session. This makes the hub fast on weak devices and keeps the server cool under research load.
Server (Go):
/static/assets, never double-compresses;WriteHeaderoverride so the auth 401 stays plain (fixed the black screen)WindowEntries) — byte-heavy sessions embed a tail that fits the budget instead of megabytes of HTMLFrontend:
?from=N) instead of the whole session on every stream event → fixes the iPhone typing lag while the model generatesWindowEntries/api/suggested-path+/?new=1&path=deep link pre-fills the caller shared folder in the new-session modalTest plan