mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-22 13:37:32 +08:00
Storage: MAX_SESSION_STORAGE_BYTES was only ever checked and raised; nothing evicted by bytes. A 300-message cap cannot bound a session whose images are stored inline as data: URLs, so two large images hit the 8 MiB ceiling and the reply failed with "history has not been truncated". Evict the oldest messages until the payload fits and keep the newest ones. Console: the 5s poll only reloaded the session list and takeover status, never the conversation, so replies from the other side never appeared without switching sessions. Add a silent refresh that keeps the input enabled, preserves scroll unless already at the bottom, and yields to scroll-up pagination. Source was 0.1.7 while the shipped artifact is 0.2.7, so this also carries the intermediate work; version 0.2.8. Co-authored-by: multica-agent <github@multica.ai>