Commit Graph

77 Commits

Author SHA1 Message Date
cogwheel0 8a8ba76298 refactor: update providers to use keepAlive for enhanced state management
- Changed multiple provider annotations to `@Riverpod(keepAlive: true)` to improve state retention and management across the application.
- This update aligns with recent enhancements in state management practices, ensuring better performance and user experience throughout the app.
2025-10-01 18:32:16 +05:30
cogwheel0 21cff39c1c Revert "refactor: remove unused code"
This reverts commit 03bb03446b.
2025-10-01 00:47:29 +05:30
cogwheel0 03bb03446b refactor: remove unused code 2025-10-01 00:35:56 +05:30
cogwheel0 46bd057089 refactor: enhance chat message handling and scrolling behavior
- Added `sendMessageWithContainer` function to facilitate message sending with a ProviderContainer.
- Updated `_ChatPageState` to improve scroll behavior, ensuring smoother auto-scrolling when near the bottom of the chat.
- Refactored scroll logic to simplify conditions for showing and hiding the scroll-to-bottom button.
- Adjusted the `OptimizedList` widget to correctly handle item indexing based on the reverse property, enhancing list performance and usability.
2025-09-30 21:17:11 +05:30
cogwheel0 7debb7a055 chore: update markdown dependency and refactor streaming handling
- Added `markdown` dependency version `^7.2.1` in `pubspec.yaml`.
- Updated `pubspec.lock` to reflect the direct dependency change.
- Refactored `streaming_helper.dart` to utilize `StreamingResponseController` for better stream management.
- Enhanced `ChatMessagesNotifier` to handle message streams with improved formatting and error handling.
- Updated `StreamingMarkdownWidget` to streamline markdown rendering and support new configurations.
2025-09-30 20:49:02 +05:30
cogwheel0 375c961412 fix: add comment for ChatMessagesNotifier class
Resolves analyzer errors from previous commit.
2025-09-30 15:04:20 +05:30
cogwheel0 c4b1d10801 docs: revert chatMessagesProvider migration attempt
ChatMessagesNotifier is extremely complex (2400+ lines) and requires
a dedicated, careful migration session with comprehensive testing.

Current status: 38/39 providers migrated (97%)
Remaining: chatMessagesProvider only

All other Phase 5 providers successfully migrated!
2025-09-30 15:04:04 +05:30
cogwheel0 a63739db6b refactor: migrate Phase 1 providers (2-7/10) to @riverpod
Migrated providers:
- selectedModelProvider → SelectedModel
- isManualModelSelectionProvider → IsManualModelSelection
- reviewerModeProvider → ReviewerMode
- isLoadingConversationProvider → IsLoadingConversation
- prefilledInputTextProvider → PrefilledInputText
- inputFocusTriggerProvider → InputFocusTrigger
- composerHasFocusProvider → ComposerHasFocus
- batchModeProvider → BatchMode
- reducedMotionProvider → ReducedMotion

All provider names unchanged, no breaking changes.
Build runner successful, analyzer passing.
Only 1 WARNING (keepAlive usage) and 2 INFO items remaining.
2025-09-30 14:31:56 +05:30
cogwheel0 3dfa5c6ec8 refactor: sockets to use riverpod 2025-09-29 00:22:12 +05:30
cogwheel0 cb86ad8cd2 refactor: redesign status history 2025-09-28 15:58:46 +05:30
cogwheel0 ea8eda6784 refactor: remove debuglogs 2025-09-27 16:57:42 +05:30
cogwheel0 9411c81424 fix: followups not arriving issue 2025-09-27 16:50:16 +05:30
cogwheel0 0d5fcabea8 fix: streaming issues 2025-09-27 16:34:37 +05:30
cogwheel0 0c2bd5b4f9 refactor: login and streaming issues 2025-09-26 20:57:54 +05:30
cogwheel0 3c959c83bf refactor: use background only flows 2025-09-26 13:59:28 +05:30
cogwheel0 5f03610f35 fix: streaming 2025-09-26 01:38:00 +05:30
cogwheel0 3124bccfeb refactor: more logs 2025-09-25 23:22:48 +05:30
cogwheel0 9210b2155a refactor: all logging 2025-09-25 22:36:42 +05:30
cogwheel0 db0261ffed refactor: titles 2025-09-25 21:15:47 +05:30
cogwheel0 bfa5ff6363 feat: followups 2025-09-25 18:25:39 +05:30
cogwheel0 637274133f refactor: removing legacy socket code 2025-09-25 12:28:02 +05:30
cogwheel0 7ab1ec3acf fix: image and files previews on the web 2025-09-22 23:17:23 +05:30
cogwheel0 462bf4cde2 refactor: migrate to riverpod 3 2025-09-21 22:31:44 +05:30
cogwheel0 37e5633c5c fix: tts 2025-09-21 20:18:21 +05:30
cogwheel0 c05644f731 feat: text to speech 2025-09-20 23:58:18 +05:30
cogwheel0 e8416d28e8 fix: bugs with system prompt 2025-09-20 18:47:38 +05:30
cogwheel0 f73d308e06 fix: adhere to system prompts 2025-09-20 18:28:12 +05:30
cogwheel0 f80930685c refactor: fix lints 2025-09-16 18:15:44 +05:30
cogwheel0 7e6009d2cc refactor: text streaming 2025-09-13 10:16:58 +05:30
cogwheel0 5195d42039 feat: show errors in response 2025-09-08 13:22:28 +05:30
cogwheel0 30fc460d08 fix: keyboard close on modal opens 2025-09-08 01:15:31 +05:30
cogwheel0 30f1650faf feat: inactivity watchdog for sockets 2025-09-07 23:17:26 +05:30
cogwheel0 a850a567a1 feat: inline user message editing 2025-09-07 22:37:52 +05:30
cogwheel0 679eac4dd6 refactor: regen and socket flows 2025-09-07 21:41:13 +05:30
cogwheel0 15a514d385 refactor: chats drawer ui/ux tweaks 2 2025-09-07 18:51:59 +05:30
cogwheel0 a16fb86e27 feat: enhanced sockets, tuned retries and polling fallback 2025-09-07 11:13:05 +05:30
cogwheel0 ca8b27b2fb refactor: socket fallbacks 2025-09-05 23:08:23 +05:30
cogwheel0 2580bf961e fix: image gen during streaming 2025-09-05 21:05:58 +05:30
cogwheel0 045e637196 refactor: create preseed helper 2025-09-05 11:48:43 +05:30
cogwheel0 8245a69796 fix: title gen 2025-09-05 11:20:39 +05:30
cogwheel0 58d5cf076b refactor: pre seed responses 2025-09-05 11:15:39 +05:30
cogwheel0 f20cc55535 refactor: image gen 2025-09-05 02:54:59 +05:30
cogwheel0 093ba353fd refactor: web search and message history 2025-09-02 22:17:54 +05:30
cogwheel0 9f546f203e feat: socket connect on app start 2025-09-02 21:19:07 +05:30
cogwheel0 77e6a15215 refactor: more flows 2025-09-02 13:20:02 +05:30
cogwheel0 dc231cfa52 refactor: migrate image gen to task based 2025-09-02 11:12:48 +05:30
cogwheel0 66935d1b0f refactor: cleanup 2025-09-02 00:04:21 +05:30
cogwheel0 1b65743b06 feat: task based send flow 2025-09-01 23:41:22 +05:30
cogwheel0 53e16237df fix: stop button 2025-09-01 20:26:29 +05:30
cogwheel0 047a67a0c5 fix: model name inconsistencies 2025-09-01 18:49:43 +05:30