Agent creation and editing support via UI

This commit is contained in:
Shivering Ocelot committed 2025-07-13 03:53:43 -05:00
1 parent f8edd01c37
commit 0f7384cc1d
7 files changed
+267 -15

No files matched your search

+6 -5
View File
@@ -66,10 +66,10 @@
}
// This won't fire when called, the mounted callback will take care
watch(() => props.id, newChatId => {
watch(() => props.id, newId => {
if (_isMounted) {
unloadChatState();
loadChatState(newChatId);
loadChatState(newId);
}
})
@@ -154,7 +154,7 @@
// === UI Helper Functions === //
function requestRescroll ({forceBottom=false, bottomRelative=false}) {
function requestRescroll ({forceBottom=false, bottomRelative=false}={}) {
const elem = chatContainerElem.value;
const scroll = elem.scrollTop;
@@ -166,13 +166,14 @@
// Chat was fully scrolled down
if (forceBottom || scroll == max) {
elem.scrollTop = elem.scrollTopMax;
} else if (bottomRelative) {
// TODO: Keep scroll at the same distance from the bottom.
// This will be used when the user scrolls to the top and previous messages are loaded
} else {
// Do nothing, scroll remains in place
}
});
});
// Something different has to be done when previous messages are added
}
function msgClass (msg) {