fix(frontend): persist new-chat draft input across navigation
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>
| Repository | beerbottle90/mike-oss |
|---|---|
| Author | beerbottle90 <demirertug@gmail.com> |
| Authored | |
| Parents | bc264883 |
| Stats | 2 files changed , +27 , -2 |
| Part of | Persist new-chat draft input across navigation |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-8ecf40db.md
from inside the repo you want the change in.