Skip to content

Comments

[Amber] Fix: ChatInputBox: Persist draft messages across page navigation#648

Open
github-actions[bot] wants to merge 1 commit intomainfrom
amber/issue-646-chatinputbox-persist-draft-messages-across-page-na
Open

[Amber] Fix: ChatInputBox: Persist draft messages across page navigation#648
github-actions[bot] wants to merge 1 commit intomainfrom
amber/issue-646-chatinputbox-persist-draft-messages-across-page-na

Conversation

@github-actions
Copy link
Contributor

Automated Fix by Amber Agent

This PR addresses issue #646 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: 67ef001
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #646

…ation

Implements localStorage-backed persistence for chat input drafts using a new
useDraftInput hook. Follows the same pattern as useSessionQueue for consistency.

Changes:
- Created useDraftInput hook for draft message persistence
- Integrated hook in session detail page to replace chatInput useState
- Draft is automatically saved to localStorage on every change
- Draft is restored when user returns to the session page
- Draft is cleared when message is successfully sent

Benefits:
- Users can navigate away and return without losing their typed message
- Improves user experience for accidental navigation
- Follows established localStorage patterns in the codebase

Resolves: #646

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added amber-generated PR created by Amber background agent auto-fix labels Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amber-generated PR created by Amber background agent auto-fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ChatInputBox: Persist draft messages across page navigation

0 participants