Skip to content

feat(ui): add inline rename for chat sessions in sidebar#1

Open
tulsi-builder wants to merge 1 commit into
mainfrom
feat/inline-rename-chat
Open

feat(ui): add inline rename for chat sessions in sidebar#1
tulsi-builder wants to merge 1 commit into
mainfrom
feat/inline-rename-chat

Conversation

@tulsi-builder

Copy link
Copy Markdown
Owner

Summary

  • Add double-click inline editing for chat session names in the sidebar
  • Improves UX by allowing quick renames without opening a modal
  • Maintains compatibility with existing modal-based rename

Implementation

  • Created reusable InlineEditText component with validation and keyboard shortcuts
  • Integrated into sidebar session list with double-click activation
  • Pointer cursor indicates clickability, text cursor when editing
  • Recipe sessions protected from renaming (read-only)
  • Updates synced across components via SESSION_RENAMED event

User Experience

  • Double-click session name in sidebar to edit
  • Enter to save, Escape to cancel
  • Click away (blur) also saves
  • Error handling with toast notifications
  • Max 200 characters, auto-trims whitespace

Testing

  • Manual testing completed
  • Works alongside existing session history modal
  • Recipe sessions remain read-only
  • Error cases handled gracefully

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Related Issues

Relates to #ISSUE_ID
Discussion: LINK (if any)

Screenshots/Demos (for UX changes)

Before:

After:

Add double-click inline editing for chat session names in the sidebar,
improving UX by allowing quick renames without opening a modal.

- Create reusable InlineEditText component with validation and keyboard shortcuts
- Integrate inline editing into sidebar session list with double-click activation
- Use pointer cursor to indicate clickability, switching to text cursor when editing
- Protect recipe sessions from renaming (read-only for sessions with recipe titles)
- Sync updates across all components via SESSION_RENAMED event
- Support Enter to save, Escape to cancel, and blur to save
- Handle errors with toast notifications and automatic revert
- Validate max 200 characters and trim whitespace
- Maintain compatibility with existing modal-based rename in session history page

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant