For this plan, same as always with the previous sprint since I didn't made that much progress the last time. To start with, I manage to partially got the auto scrolling feature work but it still have a lot of issues with it. One of which that it doesn't fully scroll down to the bottom of the scroll view. It is always just a bit on top of it. Another is that with more messages in the chat it starts the deteriorate. Like, making the chat laggy or slow while it streaming the message. So since this is proving very difficulty to fix, an alternative option is needed. Rather than making to scroll to the bottom, let it scroll until the top of the message is on top of the view. Similar with what is going on with chat gpt on how it handles message scrolling. So this is the alternative way for now. I think this is the better option, since it let the user to start reading from the top of the message rather than them having to scroll back up to it from the bottom. Or making them do an action first to start from the start.

Another issue that was found from this is that the AI message is being unrendered and rendered at the end of the stream. Causing it to disappear and reappear. Creating issues with the previous auto scrolling feature. I found the thing that's causing the issues. I'm not totally sure if its the cause but it tracked down to their. From what I can see, it unrenders the message when it saves or update itself to the database. It uses dixies to read data from the database. It is just saving it to the database, so it shouldn't unrenders the message, but it does. So I'm at a stomp with this one. After I finished the alternative to auto scrolling, I need to check if there's an alternative way to save it to the database without unrendering it. Generally it is not an issue but if the chat is slow enough when it has a lot of uncleared messages in chat, to unrender and rerender is very visible. It also messes up with the scroll height creating more issues with the thing I'm trying to fix. I'm not even sure if this is actually is causing the issue.

For now I can focus on making an alternative feature for the auto scrolling, it should be easier than trying to fix the old feature since I already made something similar before with another feature that scroll it to the top with a button.