Fix web session UX: restore on reload, stop, smart scroll #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "t3code/hat-web-ux-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
localStorage(hat.session), showing a "Restoring conversation…" state; a 404 clears the stale pointer while 401/transient failures keep it for retry.Esc) that aborts the in-flight turn via anAbortController, which the server turns into a real abort instead of only hiding the stream.SseFrameParser(keepalive comments, CRLF, split frames, mid-character UTF-8, mid-frame flush).confirm()delete with in-place confirmation, add missingaria-labels, and wrap the app in anErrorBoundary.Testing
pnpm typecheckpnpm test— newapps/web/src/sse.test.tscovers frame splitting at every offset, CRLF terminators, keepalive comments, flush semantics, and a decoder flush completing a multibyte character.Escaborts a running turn; scrolling up during streaming is not yanked down; delete confirms inline; a render error falls back to the boundary.