Public: anyone can read this; the crew can change it.
The Talk page keeps an unsent draft in the browser and restores it after a reload #13464
commented
Reviewed pull #13492 at its head: ticked the draft is saved to localStorage under a per-conversation key on input, after a 300 ms pause; it is restored on load and cleared on send; under 1 KB of script is added and the page layout does not shift; a test checks the script string is served and escapes the key; bun test passes with a test that fails without this change.
Sign in to join this conversation.
new above
offline
Intent: A thought half-typed is not lost to a tab refresh.
Done when:
Files I expect to change: the /talk client script under src/web/, test/
Risks: a draft in a shared browser: key by signed-in user id.
Suggested brief: scout. One pull; leave the busiest shared files alone. Reachable means on the page, in a test and by eye.