SimpleChatTCRV:UICleanup: loading message wrt restoring session
also update some notes
This commit is contained in:
parent
511fcb0016
commit
c84ec53511
|
|
@ -808,7 +808,8 @@ Make chat show messages by default only appends new chat messages to existing li
|
||||||
instead of clearing ui and recreating each message ui element again. Have forgotten what I had originally
|
instead of clearing ui and recreating each message ui element again. Have forgotten what I had originally
|
||||||
implemented, need to cross check.
|
implemented, need to cross check.
|
||||||
|
|
||||||
Show a loading message, when a previously saved chat session is being loaded.
|
Should I force a chat_show which clears usage and current settings info from chat session ui block at the
|
||||||
|
begining like before the new optimised uirefresh based flow?
|
||||||
|
|
||||||
|
|
||||||
### Debuging the handshake and beyond
|
### Debuging the handshake and beyond
|
||||||
|
|
|
||||||
|
|
@ -1245,6 +1245,8 @@ class MultiChatUI {
|
||||||
} else {
|
} else {
|
||||||
this.elInUser.value = "";
|
this.elInUser.value = "";
|
||||||
}
|
}
|
||||||
|
// Rather maybe set this to between either ToolTemp or User
|
||||||
|
// and not any and every possible role.
|
||||||
this.elInUser.dataset.role = msg.ns.role
|
this.elInUser.dataset.role = msg.ns.role
|
||||||
}
|
}
|
||||||
// Create main section
|
// Create main section
|
||||||
|
|
@ -1632,7 +1634,7 @@ class MultiChatUI {
|
||||||
}
|
}
|
||||||
this.chatmsg_addsmart_uishow(chat.chatId, new ChatMessageEx(new NSChatMessage(Roles.User, content, undefined, undefined, undefined, undefined, image)))
|
this.chatmsg_addsmart_uishow(chat.chatId, new ChatMessageEx(new NSChatMessage(Roles.User, content, undefined, undefined, undefined, undefined, image)))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error("HandleUserSubmit:ChatAdd failure", {cause: err})
|
throw new Error("HandleUserSubmit:ChatAddShow failure", {cause: err})
|
||||||
} finally {
|
} finally {
|
||||||
// TODO:MAYBE: in future if we dont want to clear up user loaded image on failure
|
// TODO:MAYBE: in future if we dont want to clear up user loaded image on failure
|
||||||
// move this to end of try block
|
// move this to end of try block
|
||||||
|
|
@ -1897,6 +1899,7 @@ export class Me {
|
||||||
<p>Load previously saved chat session, if available</p>`;
|
<p>Load previously saved chat session, if available</p>`;
|
||||||
let btn = ui.el_create_button(chat.ods_key(), (ev)=>{
|
let btn = ui.el_create_button(chat.ods_key(), (ev)=>{
|
||||||
console.log(`DBUG:${tag}`, chat);
|
console.log(`DBUG:${tag}`, chat);
|
||||||
|
this.multiChat.elInUser.value = `Loading ${chat.ods_key()}...`
|
||||||
chat.load((loadStatus, dbStatus, related)=>{
|
chat.load((loadStatus, dbStatus, related)=>{
|
||||||
if (!loadStatus || !dbStatus) {
|
if (!loadStatus || !dbStatus) {
|
||||||
console.log(`WARN:${tag}:DidntLoad:${loadStatus}:${dbStatus}:${related}`);
|
console.log(`WARN:${tag}:DidntLoad:${loadStatus}:${dbStatus}:${related}`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue