Load history images via query, not lazy getImages() (WS path)

FixAIService
Ya
17 Julai 2026, 08:26 UTC
Mwandishi
Kamo
Ahadi ya
c7d0181

**************** runs on the WebSocket path (called from AiChatWebSocketHandler), which is NOT an HTTP request, so open-session-in-view does not apply. Iterating the loaded history and touching msg.getImages() (a LAZY @OneToMany) on those detached entities threw LazyInitializationException ("could not initialize proxy - no Session"), which surfaced to the client as the assistant reply — breaking every AI chat send. Fetch the images with the existing **************** query instead, so they load in their own session. (The HTTP history endpoint keeps working via OSIV.)

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei