Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge pull request #2437 from gardenZzz/fix/message-delete-scroll-anchor

Lizifd4239ab641d
diff --cc apps/desktop/src/renderer/components/chat/MessageStream.tsx
index 3a9552e864,3ff318e46d..1ad4d8695a
--- a/apps/desktop/src/renderer/components/chat/MessageStream.tsx
+++ b/apps/desktop/src/renderer/components/chat/MessageStream.tsx
@@@ -224,9 -285,11 +288,12 @@@ import
shouldUnpinOnWheel,
} from './autoFollowIntent';
import { countUnreadAdded } from './unreadCount';
- import { useNavigationKeyListener } from './useNavigationKeyListener';
+ import { NAVIGATION_KEYS, useNavigationKeyListener } from './useNavigationKeyListener';
+ export function isScrollNavigationKey(key: string): boolean {
+ return NAVIGATION_KEYS.has(key);
+ }
import { suppressScrollbarActivation } from '@/lib/scrollbarAutoHide';
+import { useAutomaticHistoryLoadBudget } from './useAutomaticHistoryLoadBudget';
import { collectAssistantTurnUsageDetails } from '@/lib/userTurnUsage';
import type { TurnUsageDetails } from '../../../shared/turnUsageDetails';
import { hasReviewableTurnChanges, type TurnChangeSetSummary } from '../../../shared/turnChangeSet';