fewer statefulset
Some checks failed
CI/CD Pipeline / build (push) Failing after 3s

This commit is contained in:
2026-03-10 09:23:22 -06:00
parent d57fa82c9b
commit d01ae816d2
3 changed files with 9 additions and 3 deletions

View File

@@ -77,6 +77,9 @@ Hooks.ScrollBottom = {
if (this.isNearBottom()) this.scrollToBottom()
})
this.observer.observe(this.el, {childList: true, subtree: true})
this.handleEvent("scroll_to_bottom", () => {
this.scrollToBottom()
})
},
updated() {
if (this.isNearBottom()) this.scrollToBottom()

View File

@@ -5,12 +5,12 @@ metadata:
namespace: ai-ha-elixir
spec:
serviceName: ai-ha-elixir-headless
replicas: 3
replicas: 2
podManagementPolicy: Parallel
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 2
maxUnavailable: 1
selector:
matchLabels:
app: ai-ha-elixir

View File

@@ -104,7 +104,10 @@ defmodule ElixirAiWeb.ChatLive do
end
def handle_info({:user_chat_message, message}, socket) do
{:noreply, update(socket, :messages, &(&1 ++ [message]))}
{:noreply,
socket
|> update(:messages, &(&1 ++ [message]))
|> push_event("scroll_to_bottom", %{})}
end
def handle_info(