-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Add comprehensive UI improvements and session management features #366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
iFlyTwice
wants to merge
6
commits into
winfunc:main
Choose a base branch
from
iFlyTwice:feature/ui-improvements-and-session-deletion
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: Add comprehensive UI improvements and session management features #366
iFlyTwice
wants to merge
6
commits into
winfunc:main
from
iFlyTwice:feature/ui-improvements-and-session-deletion
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit introduces multiple user experience improvements and new functionality: ## ✨ New Features ### Auto-scroll Control - Add auto-scroll setting in Settings panel to control conversation auto-scrolling behavior - Implement `useAutoScroll` hook with dual-storage (localStorage + SQLite) for persistence - Allow users to manually scroll through conversation history without being forced to bottom - Setting persists across sessions and is immediately applied ### Session Deletion Functionality - Add individual session deletion with confirmation dialog - Add bulk session deletion with multi-select mode - Implement proper async confirmation handling for Tauri environment - Add session persistence cleanup when sessions are deleted - Support for hierarchical session deletion (primary + child sessions) ### Collapsible Tool Widgets - Make SystemInitializedWidget, ReadWidget, WriteWidget, and EditWidget collapsible - Prevent UI freezing with large file content previews - Add expand/collapse functionality with smooth animations - Maintain functionality while improving performance ### Image Placeholder System - Replace long image file paths with clean `[image]` placeholders in UI - Support multiple images with `[image winfunc#2]`, `[image winfunc#3]` numbering - Maintain actual file paths for backend processing - Add image preview functionality above prompt input - Implement proper path mapping between placeholders and actual files ## 🔧 Backend Improvements - Add `delete_session` and `delete_sessions_bulk` Tauri commands - Add `save_pasted_image` command for handling image uploads - Implement session persistence service with conversation tracking - Add proper error handling and logging for all new operations - Update API layer with new session management endpoints ## 🎨 UI/UX Enhancements - Improve message display with clean image path presentation - Add hierarchical session organization with expand/collapse - Add proper loading states and error handling - Implement smooth animations for better user experience - Add proper confirmation dialogs with clear messaging ## 🛠️ Technical Details - Update session store with deletion capabilities - Add proper TypeScript types for all new functionality - Implement proper cleanup of localStorage data - Add comprehensive error handling and user feedback - Follow existing code patterns and conventions ## 🧪 Testing - All features tested in development environment - Confirmed proper persistence across app restarts - Verified error handling and edge cases - Tested with various file types and sizes Breaking Changes: None Deprecations: None Fixes: Session deletion confirmation, image preview display, large file UI freezing
Hi can you review the merge conflicts? |
done @123vivekr |
…uilds - Adds fix-path-env dependency to ensure PATH environment is inherited in macOS DMG apps - Resolves issue where MCP servers showed is_active: false in production builds - Minimal change that fixes the core PATH inheritance problem for GUI applications - Enables devtools feature for development debugging
…//github.com/iFlyTwice/opcode into feature/ui-improvements-and-session-deletion
you got discord @123vivekr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces multiple user experience improvements and new functionality for better session management and UI interactions.
✨ New Features
Auto-scroll Control
useAutoScroll
hook with dual-storage (localStorage + SQLite) for persistenceSession Deletion Functionality
Collapsible Tool Widgets
Image Placeholder System
[image]
placeholders in UI[image #2]
,[image #3]
numbering🔧 Backend Improvements
delete_session
anddelete_sessions_bulk
Tauri commandssave_pasted_image
command for handling image uploads🎨 UI/UX Enhancements
Test plan
Breaking Changes
None
Related Issues
Addresses user feedback regarding: