char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
e21152dc9
char/aliceai-t5-moe
1export const AUTO_SCROLL_INTERVAL = 100 ; 2// Conversation landing: the page keeps growing after the first bottom pin 3// without DOM mutations (content-visibility size realizations, syntax 4// highlight passes), so the pin repeats every frame until the height holds 5// for this many consecutive frames, bounded by the time cap below. 6export const LANDING_STABLE_FRAMES = 10 ; 7export const LANDING_SETTLE_MAX_MS = 1000 ; 8// Chat main view: tight threshold because scroll-here events come from 9// discrete assistant-message appends. 10export const AUTO_SCROLL_AT_BOTTOM_THRESHOLD = 10 ; 11// Reasoning block: stickier because reasoning fires many small 12// incremental DOM writes that easily drift a few pixels off bottom. 13export const REASONING_SCROLL_AT_BOTTOM_THRESHOLD_PX = 64 ; 14// Syntax-highlighted code: stickier than the chat main view because line 15// wrap reflows while the highlight.js pass settles can drift a few pixels 16// off bottom. 17export const SYNTAX_CODE_SCROLL_AT_BOTTOM_THRESHOLD_PX = 32 ; 18// Streaming tool output (e.g. exec_shell_command): shell commands produce 19// lots of small line writes and the exit-code line appended at the tail 20// past the last user-visible frame is what triggers DOM drift, so use a 21// threshold generous enough to capture that tail flush. 22export const TOOL_RUNTIME_SCROLL_AT_BOTTOM_THRESHOLD_PX = 64 ;