Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(desktop): r1-l2 document chat scroll threshold
Josuéc99cd1e4544e
diff --git a/desktop-app/ui/src/constants/agents.ts b/desktop-app/ui/src/constants/agents.tsindex 94b43ad69..306205058 100644--- a/desktop-app/ui/src/constants/agents.ts+++ b/desktop-app/ui/src/constants/agents.ts@@ -1,5 +1,9 @@export const MAX_VISIBLE_SESSIONS = 6export const SESSION_PREVIEW_LIMIT = 9+/**+ * Distance (px) from the bottom within which a reader still follows the chat.+ * Beyond it, appended content must not pull them away from older history.+ */export const CHAT_NEAR_BOTTOM_THRESHOLD_PX = 120export const AGENT_ERROR_CODE_LABELS: Record<string, string> = {diff --git a/desktop-app/ui/src/hooks/domain/useChatScroll.ts b/desktop-app/ui/src/hooks/domain/useChatScroll.tsindex b6c7a6618..c6cde4caa 100644--- a/desktop-app/ui/src/hooks/domain/useChatScroll.ts+++ b/desktop-app/ui/src/hooks/domain/useChatScroll.ts@@ -2,11 +2,6 @@ import { useCallback, useEffect, useRef } from 'react'import { CHAT_NEAR_BOTTOM_THRESHOLD_PX } from '@constants/agents'import type { AgentChatMessage, TaskProgress } from '../../uiTypes'-/**- * Distance (px) from the bottom of the scroll container within which we still- * treat the user as "following" the conversation and auto-scroll on new content.- * Beyond it, the user is reading history and we must NOT yank them down (B4-a).- */interface UseChatScrollParams {selectedAgent: string | nullactiveChatId: string | null