Commit History
-
Improve snapScrollToBottom action for user intent
Refactored snapScrollToBottom to better detect user scroll intent, handle force re-attachment, and optimize performance during streaming. Updated ChatWindow.svelte to use a combined scroll dependency and force re-attach when a user sends a new message, ensuring reliable auto-scroll behavior.cb00da9
-
Fix auto scroll behavior in message chat (#2000)
Unverified signature* fix: improve auto-scroll behavior for chat messages - Replace scroll position comparison with wheel/touch event detection to properly detect user scroll intent (fixes false detachment when content above viewport changes size) - Add IntersectionObserver on sentinel element for reliable bottom detection - Increase threshold from 10px to 50px to prevent edge-case issues - Include tool update count in scroll signal so tool calls and thinking blocks properly trigger scroll updates - Add passive event listeners for better scroll performance * fix: add scrollbar drag detection and race condition handling - Detect scrollbar drags by comparing scroll positions when not from wheel/touch events - Add 100ms grace period after programmatic scrolls to prevent false detachment from content resize race conditions - Update prevScrollTop on all scroll events to maintain accurate tracking * Improve snapScrollToBottom scroll handling and re-attachment Enhances the scroll logic to better h…2cab13e
-
Improve snapScrollToBottom with ResizeObserver and smoother scroll
Refactors the snapScrollToBottom action to use ResizeObserver for more reliable scroll-to-bottom behavior on content changes, and enhances scroll settling by waiting for animation frames to handle late layout shifts. Also improves detachment/reattachment logic and ensures cleanup of observers.d75ac4c
-
HuggingChat 2026 (#1875)
Unverified signature* refactor: remove tokenizer-related functionality and dependencies - Removed tokenizer dependencies from package.json. - Deleted TokensCounter component and its usages across the application. - Updated model configurations to exclude tokenizer properties. - Refactored model processing logic to support only OpenAI-compatible endpoints. - Adjusted API responses to omit tokenizer information. - Cleaned up related utility functions and imports. * Remove web search functionality and related components - Deleted endpoints for various web search APIs (serpApi, serpStack, serper, webLocal, youApi). - Removed generateQuery function and its usage in search. - Eliminated web search related types and interfaces from the codebase. - Updated Assistant and Conversation types to remove references to web search and embedding models. - Cleaned up related utility functions and message updates for web search. - Adjusted API routes and components to reflect the removal of web search features. - Updated…4331e77
-
Function calling (#996)
Unverified signature* Initial work on function calling * wip * Add websearch as a tool * lint * smol * Move tools to their own files * directly answer check * Add text2img tool * group tool calls together * show retry even if no message * fix trailing urls * Add image popup * format * wip * clean-up * better loading indicator * text colors * extra example to summarize * switch default model * Add fetchUrl tool * wip * Add latest gradio * fix types * version bump sharp * Basic tools menu * working menu * fix menu positioning * deps fix * add deps * cleanup * more cleanup * cleanup * package cleanups * moar cleanup * ui update * Update ChatMessage.svelte * upgrade gradio dep * lint * refactor and pass results to cohere * feat: code interpreter tool * fix: add e2b dependency * feat: working TGI endpoint with tool results * feat: allow image model to expand to 90dvw * fix: dont block on title gen * bump sharp * misc cleanup * fix url fetcher, adjust tool typing *…faa93d9
-
Reworked settings menu (#591)
Unverified signature* initial work on new settings page * new settings - fully working * tweak to settings layout * Added model links * lint * redirect on bad model * delete error page * fix links & reset button * add saving indicator * Make new settings work on mobile * small tweak mobile * Fix preprompt so it gets read correctly from the model.preprompt (#595) * 🔒️ Harden session ID generator (#599) * bump svelte & related to latest (#600) * Update dockerfile to node 20 (#601) * Only refresh cookie on post (#606) * Session management improvements: Multi sessions, renew on login/logout (#603) * wip: update sessionId on every login * comment out object.freeze * only refresh cookies on post * Add support for multiple sessions per user * fix tests * 🛂 Hash sessionId in DB * 🐛 do not forget about event.locals.sessionId * Update src/lib/server/auth.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * Add `expiresAt` field * remove index causing errors * Fix bug where sessions w…8176282
-
👷 Add CI to check types (#161)
Eliott CUnverified signature5c8753b
-
Fix intro layout mobile (#107)
Adrien Denat +1: Eliott C.Unverified signature* take ChatIntroduction outside of chatmessages so it doesn't scroll down automatically * fix chat intro not scrollable on mobile viewport * Revert "fix chat intro not scrollable on mobile viewport" This reverts commit 6f83f2eb6109614c487051573e8d72bebb13b425. * Revert "take ChatIntroduction outside of chatmessages so it doesn't scroll down automatically" This reverts commit 812f581271a7af73e38afdc1f90623fd1189e687. * update snapScrollToBottom so it only triggers if dependency is truthy * fix ambiguious boolean type Co-authored-by: Eliott C. <coyotte508@gmail.com> --------- Co-authored-by: Eliott C. <coyotte508@gmail.com>9e03f04
-
Fix scroll to bottom (#78)
Adrien Denat +1: Eliott C.Unverified signature* fix snap scroll to bottom not updating properly to bottom when switching conversation * scroll to bottom when a user sends a new message ( fixes #75) * update comment to be detailing the scroll offset Co-authored-by: Eliott C. <coyotte508@gmail.com> * use tick() instead of afterUpdate --------- Co-authored-by: Eliott C. <coyotte508@gmail.com>8025183
-
Prettier update (#54)
Unverified signature* Update .prettierrc * prettify everthing prettify everything1d04bf7 -
make sure conversations scroll back down on page change (#52)
Adrien DenatUnverified signature89fa02a
-
Chat snap scroll bottom (#10)
Adrien DenatUnverified signature* only snap scroll to bottom if user didn't scroll up * add scroll to bottom button when user scrolls up in the chat * remove unecessary export * rename scrollToBottom action to snapScrollToBottom + remove anim for now as it's stuttering34ff433