Commit Graph
4021 Commits
Author SHA1 Message Date
Innei ae0c6c39a6 chore: bump version to 1.1.1 in package.json
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 16:48:58 +08:00
Innei b927383e93 fix(ai): should stop when switch session
- Changed the `destroy` method in `ZustandChat` to be asynchronous, ensuring proper cleanup with `await`.
- Updated `newChat` and `switchToChat` actions to await the destruction of the old chat instance before creating a new one.
- Initialized `#eventEmitter`, `#status`, and `#error` in `ZustandChatState` constructor for better state management.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 16:25:38 +08:00
Innei 9cc55c8765 feat(ai-chat): update ChatHeader and AIEnhancedTimelineLayout for improved panel visibility
- Added logic to control AI panel visibility based on the current view in ChatHeader.
- Enhanced AIEnhancedTimelineLayout to automatically show the AI panel when in 'All' view.
- Refactored imports for better organization and clarity.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 16:17:50 +08:00
Innei 0a42795377 refactor(ai-chat): enhance AISmartSidebar with spring animations and improved mouse interaction handling
- Replaced mouse position tracking with spring-based intensity for smoother animations.
- Introduced multiple transform properties for layered visual effects.
- Improved event handling for pointer movements and visibility of the prompt.
- Cleaned up code for better readability and performance.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 15:22:05 +08:00
Innei 3832e21b7c fix: can close ai panel
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 15:07:28 +08:00
Innei a1b2a5840b fix: ai preview peek modal wrong navigation entry url
- Integrated subscription view retrieval in usePeekModal for improved modal routing.
- Updated AnimatedMarkdown to utilize subscription view when navigating entries.
- Cleaned up EntryContentForPreview by removing unnecessary class names for better styling consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-07 21:38:38 +08:00
DIYgod 698ba883a4 fix(ai): incorporate isInMASReview hook in RateLimitNotice and useAutoTimelineSummaryShortcut 2025-11-07 20:22:19 +08:00
DIYgod f5628c954a Merge remote-tracking branch 'origin/dev' into release/desktop/1.1.0 2025-11-07 20:07:44 +08:00
lawvs bffe2cd0df fix(ai): lint 2025-11-07 17:39:28 +08:00
Whitewater 26d7e3cb1a fix: handle chatId encoding in reconnectToStream (#4670)
* fix: handle chatId encoding in reconnectToStream

* fix: ensure chatId is always encoded in reconnectToStream
2025-11-07 17:15:09 +08:00
Innei e972598982 Merge remote-tracking branch 'origin/dev' into release/desktop/1.1.0 2025-11-07 17:06:44 +08:00
Innei 520ea60f2a fix(ai): detect resume tip after consume chat
- Introduced ChatBottomPanel component to manage chat input, shortcuts, and rate limit notices.
- Refactored ChatInterface to utilize ChatBottomPanel, enhancing the structure and readability of the chat layout.
- Created ChatMessageContainer to handle message display and scrolling behavior, improving user experience.
- Added ScrollToBottomButton for easier navigation in long chat histories.
- Consolidated message rendering logic into a new Messages component for better maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-07 16:59:40 +08:00
lawvs 2332ae2bb4 fix: lint 2025-11-07 16:18:17 +08:00
lawvs c25539f51a fix(ai-chat): add unread session indicator to dropdowns 2025-11-07 16:07:12 +08:00
Innei 8ee2e92993 fix(ai): rate limit notice message logic
- Renamed the configuration parameter for clarity and simplified checks for rate limiting.
- Consolidated logic for generating rate limit messages, enhancing readability and maintainability.
- Improved handling of remaining requests and reset times for better user feedback.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-07 15:50:52 +08:00
DIYgod 73261ccf74 chore: update changelog for v1.1.0 with new features and fixes 2025-11-07 15:11:26 +08:00
DIYgod fd55f86766 release(desktop): release v1.1.0 2025-11-07 10:53:22 +08:00
Innei 77f04b9753 feat(ai-chat): add interruption notice and retry functionality
- Implemented a notice for users when the session is interrupted, prompting them to retry their last message.
- Added localization for the interruption message in English, Japanese, and Chinese.
- Enhanced the chat interface to handle message retries effectively, improving user experience during connection issues.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-07 00:43:19 +08:00
lawvs 500814ad3a fix: simplify type usage in rate limit functions 2025-11-07 00:10:14 +08:00
Innei 8794dcbce9 chore: lint
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 23:58:20 +08:00
Innei 60f4ce2355 feat(ai): rate limit indicator 2025-11-06 23:42:25 +08:00
Innei c465843bd9 feat(ai-chat): merge ChatHistoryDropdown and TaskReportDropdown
- Refactored session handling by introducing shared components for session items and empty states.
- Added functionality to filter and display both chat and task sessions in ChatHistoryDropdown.
- Implemented loading states and delete session capabilities for better user experience.
- Improved task session management with the ability to create new tasks directly from the dropdown.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 22:47:14 +08:00
Innei ec672495b3 fix(ai): fix load ai history session
- Changed RateLimitNotice from a div to a button for better accessibility and interaction.
- Added an "Upgrade Plan" button to encourage users to upgrade their plan directly from the notice.
- Improved layout styling for better visual clarity.

fix(useChatHistory): streamline loading state checks

- Simplified loading state condition in loadHistory function to improve performance.

fix(ai-chat-session): remove unnecessary localization logic in fetchRemoteSessions

- Cleaned up fetchRemoteSessions function by removing unused i18n imports and related code.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 22:24:24 +08:00
DIYgod 3492de2c3c fix: downgrade vite version from 7.2.0 to 7.1.11 2025-11-06 21:55:28 +08:00
Innei e0a2e6c49c fix(chat): chat bottom input container calcultion
- Removed the rateLimitNoticeRef from ChatInterface, simplifying the height calculation.
- Updated RateLimitNotice component to eliminate the ref prop, streamlining its implementation.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 21:26:11 +08:00
DIYgod 7ca97e0208 fix: types 2025-11-06 21:16:06 +08:00
Innei ad1d4d9635 feat(ai-chat): add unread message indicator to TaskReportDropdown and SessionItem components
Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 21:13:33 +08:00
DIYgod 68fb09eb03 chore: update dependencies (#4667)
* chore: update dependencies

* Implement code changes to enhance functionality and improve performance
2025-11-06 21:09:46 +08:00
lawvs 7d6df0ec17 fix: correct token usage message logic 2025-11-06 20:57:36 +08:00
Whitewater b6787a79f4 feat(rateLimit): enhance RateLimitNotice to display token usage info (#4662)
* feat(rateLimit): enhance RateLimitNotice to display token usage information

Updated RateLimitNotice component to accept token usage data and display it alongside error messages. Modified related components to utilize the new token usage prop for improved user feedback on rate limits.

* fix: remove rate limit notice for onboarding

* fix: handle negative reset time

* fix: correct reset time check in RateLimitNotice component

* refactor(rateLimit): refactor RateLimitNotice to utilize chatConfig for message display

- Removed tokenUsage prop and normalized token data logic.
- Integrated chatConfig to build messages for free usage and token usage.
- Improved message rendering logic for better clarity on rate limits and resets.

* chore: clean code

* refactor: update RateLimitNotice handling and layout adjustments
2025-11-06 20:45:19 +08:00
songkeys 46d8fccd2f feat(onboarding): compatible with json 2025-11-06 19:11:58 +08:00
DIYgod 959904d72e feat(chat): enhance resumeStream handling to manage transient status during stream resumption 2025-11-06 17:41:15 +08:00
DIYgod 264bd711e6 refactor(debug-registry): streamline debug registry entries for error simulation and app upgrade notifications 2025-11-06 17:14:24 +08:00
DIYgod 5ee4817cb6 fix(ai-chain-of-thought): update title rendering logic and improve heading extraction 2025-11-06 17:12:43 +08:00
songkeys 84380d5c1a feat(onboarding): add skip button 2025-11-06 17:04:32 +08:00
DIYgod 6748801e4e feat(ai): add max height and auto scroll support to AIReasoningPart component 2025-11-06 17:03:33 +08:00
Innei 3439180c6c feat(updater): implement distribution update handling and external link opening
- Added a new method to open external URLs in the app.
- Enhanced the updater to check for distribution updates and notify users.
- Updated the updater status types to include distribution updates.
- Refactored the update notice component to handle distribution store updates.
- Added localization for distribution update notifications.

This update improves the user experience by allowing seamless updates from distribution stores and providing clear notifications for available updates.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-06 16:37:33 +08:00
DIYgod fef048fc2c feat(about): integrate EnvironmentDebugModalContent and enhance renderer version click handling 2025-11-06 16:25:40 +08:00
songkeys 6f02b5142a fix(onboarding): missing step 2025-11-06 12:28:02 +08:00
DIYgod 0634a79780 fix: types 2025-11-06 09:51:38 +08:00
DIYgod ae97aa2b1a refactor(ai): drop floating chat panel and simplify timeline layout 2025-11-06 09:09:06 +08:00
Innei f6a8691e3a fix(translation): update user role checks for translation prefetching
Refactored translation prefetching logic across multiple components to utilize the new isFreeRole function. This change ensures that users with Free roles do not trigger translation prefetching, optimizing performance and enhancing user experience. Updated relevant imports and conditions in EntryItemImpl, useEntryContent, and various EntryList components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 21:41:56 +08:00
DIYgod f7b648f25e feat(aiChat): conditionally render floating panel based on view type
style: adjust padding in ListItem component for better spacing
2025-11-05 17:33:57 +08:00
DIYgod aee647197b refactor: remove aiColWidthAll from UISettings interface 2025-11-05 17:12:53 +08:00
DIYgod 9bd586345c feat: new ai layout for all view 2025-11-05 17:03:43 +08:00
DIYgod b0fdc29688 feat(context): remove feedId from timeline summary context and related functions 2025-11-05 15:38:28 +08:00
Innei 61398f72f1 feat(mcp): add Fabric AI workspace integration to MCP presets
Introduced a new MCP preset for Fabric AI, including configuration details such as transport type and API URL. This addition enhances the functionality of the MCP by allowing users to connect their Fabric AI workspace, enabling features like reading and searching workspaces, creating, and updating notes.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 14:44:58 +08:00
Innei 053f680dc0 fix(translation): implement user role-based translation prefetching
Enhanced translation prefetching logic across multiple components by incorporating user role checks. Users with the Free role will no longer trigger translation prefetching, optimizing performance and resource usage. Updated relevant hooks and components to utilize the new logic for improved user experience.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 01:24:34 +08:00
Innei e9553e40d0 feat(payment): implement upgrade prompt for AI summary and enhance error handling
Added functionality to suggest an upgrade when payment-related errors occur in the AI summary component. Introduced a new UpgradeRequiredDialog for user prompts and integrated it with existing error handling. Updated localization for upgrade messages in multiple languages. Refactored related components to improve clarity and maintainability.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-05 01:06:36 +08:00
Innei cd99ec9179 feat(error-handling): enhance error parsing and localization updates
Updated the error parsing logic in the error-parser.ts file to include additional status handling for FollowAPIError. Improved the toastFetchError function to utilize status codes for payment-related errors. Additionally, localized new error messages in English, Japanese, and Chinese, including updates for trial user limits and AI memory errors.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-04 23:18:35 +08:00