beerbottle90 stops the new-chat box from eating your draft

Start typing a question, click away, come back, and your text is still there.

chat-ui

Anyone who has half-written a prompt in a chat tool, navigated off to check something, and returned to a blank box knows the small sting of it. beerbottle90's fork closes that gap on the standard mike-oss chat screen: the opening message box now quietly holds onto what you have typed and restores it if you leave and come back. Submit, and it clears as you would expect.

It is a narrow, deliberately low-risk change - only the new-chat screen opts in, so existing conversation views behave exactly as before, and saved drafts stay scoped to the tab you are working in rather than bleeding across windows. No grand feature, just one of those frictions that makes a tool feel finished.

So what Worth a look for anyone running the stock mike-oss chat UI who has heard users grumble about lost drafts - it is small and easy to lift.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from beerbottle90/mike-oss, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
8ecf40db fix(frontend): persist new-chat draft input across navigation beerbottle90 2026-06-07 ↗ GitHub
commit body
Add optional storageKey prop to ChatInput. When set, draft text is
saved to sessionStorage on every keystroke and restored on mount, so
navigating to another page and back does not clear the typed text.
Submit clears the stored draft. Only InitialView passes storageKey;
existing chat views are unaffected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-638.md from inside the repo you want the changes in.

⬇ Download capture-thread-638.md