mindroot 8.11.0__py3-none-any.whl → 8.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mindroot/coreplugins/chat/static/js/chat-history.js +11 -0
- mindroot/coreplugins/chat/static/js/chat.js +2 -2
- {mindroot-8.11.0.dist-info → mindroot-8.12.0.dist-info}/METADATA +1 -1
- {mindroot-8.11.0.dist-info → mindroot-8.12.0.dist-info}/RECORD +8 -8
- {mindroot-8.11.0.dist-info → mindroot-8.12.0.dist-info}/WHEEL +0 -0
- {mindroot-8.11.0.dist-info → mindroot-8.12.0.dist-info}/entry_points.txt +0 -0
- {mindroot-8.11.0.dist-info → mindroot-8.12.0.dist-info}/licenses/LICENSE +0 -0
- {mindroot-8.11.0.dist-info → mindroot-8.12.0.dist-info}/top_level.txt +0 -0
|
@@ -21,6 +21,17 @@ export class ChatHistory {
|
|
|
21
21
|
setTimeout( () => {
|
|
22
22
|
window.initializeCodeCopyButtons()
|
|
23
23
|
}, 3000);
|
|
24
|
+
|
|
25
|
+
// Trigger re-render to ensure all messages are displayed
|
|
26
|
+
this.chat.requestUpdate();
|
|
27
|
+
|
|
28
|
+
// Scroll to bottom after loading history (no animation)
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
// Reset user scrolling flag and scroll to bottom
|
|
31
|
+
this.chat.userScrolling = false;
|
|
32
|
+
window.userScrolling = false;
|
|
33
|
+
this.chat._scrollToBottom(true);
|
|
34
|
+
}, 100);
|
|
24
35
|
|
|
25
36
|
} catch (error) {
|
|
26
37
|
console.error('Error loading history:', error);
|
|
@@ -345,7 +345,7 @@ class Chat extends BaseEl {
|
|
|
345
345
|
this.messages = [...this.messages, { content: html, sender: 'ai', spinning: 'no' }]
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
_scrollToBottom() {
|
|
348
|
+
_scrollToBottom(forceInstant = false) {
|
|
349
349
|
const chatLog = this.shadowRoot.querySelector('.chat-log');
|
|
350
350
|
if (!chatLog) return;
|
|
351
351
|
|
|
@@ -359,7 +359,7 @@ class Chat extends BaseEl {
|
|
|
359
359
|
if (window.access_token && window.access_token.length > 20) {
|
|
360
360
|
console.log('this is an embed probably, not scrolling messages')
|
|
361
361
|
} else {
|
|
362
|
-
lastEl.scrollIntoView({ behavior: 'instant', block: 'end' });
|
|
362
|
+
lastEl.scrollIntoView({ behavior: forceInstant ? 'instant' : 'instant', block: 'end' });
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
} else {
|
|
@@ -489,8 +489,8 @@ mindroot/coreplugins/chat/static/js/action.js,sha256=A26Cnwk8un8jSV1ujZeHMSBMNa4
|
|
|
489
489
|
mindroot/coreplugins/chat/static/js/auth.js,sha256=HbzBIz2yGdWQggVGzEsIzNG272T7xuxcEloDFBLtXLM,979
|
|
490
490
|
mindroot/coreplugins/chat/static/js/authfetch.js,sha256=a05Vj4pt6Qnu4WdF7jsismVijubUXZuR6ndWeYBOtZY,526
|
|
491
491
|
mindroot/coreplugins/chat/static/js/base.js,sha256=AtaHATjxpQNQ7Lv8RUlV0n3icrpmC2dmnkAdSI_v714,1285
|
|
492
|
-
mindroot/coreplugins/chat/static/js/chat-history.js,sha256=
|
|
493
|
-
mindroot/coreplugins/chat/static/js/chat.js,sha256=
|
|
492
|
+
mindroot/coreplugins/chat/static/js/chat-history.js,sha256=CwMQgVQQKCTEjOkM5O-BsBbCaJCr7UemDgrAkJXZH80,6378
|
|
493
|
+
mindroot/coreplugins/chat/static/js/chat.js,sha256=9Btd00L9108RCkJHUqFW4ov1qS41cD5dcfivbze-few,13194
|
|
494
494
|
mindroot/coreplugins/chat/static/js/chatform.js,sha256=hXluGkTIxCMzp_3v1IPBwcDvAdjQqcrP5ojJd95I1wA,17823
|
|
495
495
|
mindroot/coreplugins/chat/static/js/chatmessage.js,sha256=qoRb6XWKzzbMOIowIt3admWO8FaT2VqWGhN_anQlGSQ,1272
|
|
496
496
|
mindroot/coreplugins/chat/static/js/cmdprefixes.js,sha256=Gip5WQXYb_VFK51OYlNtxT1fKUATKLsuVUpaGBKBwig,1022
|
|
@@ -1821,9 +1821,9 @@ mindroot/protocols/services/stream_chat.py,sha256=fMnPfwaB5fdNMBLTEg8BXKAGvrELKH
|
|
|
1821
1821
|
mindroot/registry/__init__.py,sha256=40Xy9bmPHsgdIrOzbtBGzf4XMqXVi9P8oZTJhn0r654,151
|
|
1822
1822
|
mindroot/registry/component_manager.py,sha256=WZFNPg4SNvpqsM5NFiC2DpgmrJQCyR9cNhrCBpp30Qk,995
|
|
1823
1823
|
mindroot/registry/data_access.py,sha256=NgNMamxIjaKeYxzxnVaQz1Y-Rm0AI51si3788_JHUTM,5316
|
|
1824
|
-
mindroot-8.
|
|
1825
|
-
mindroot-8.
|
|
1826
|
-
mindroot-8.
|
|
1827
|
-
mindroot-8.
|
|
1828
|
-
mindroot-8.
|
|
1829
|
-
mindroot-8.
|
|
1824
|
+
mindroot-8.12.0.dist-info/licenses/LICENSE,sha256=8plAmZh8y9ccuuqFFz4kp7G-cO_qsPgAOoHNvabSB4U,1070
|
|
1825
|
+
mindroot-8.12.0.dist-info/METADATA,sha256=jb-xA54at8UQ4I2y_f35_LznB4ho3v5EoeYzktwe-w0,892
|
|
1826
|
+
mindroot-8.12.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1827
|
+
mindroot-8.12.0.dist-info/entry_points.txt,sha256=0bpyjMccLttx6VcjDp6zfJPN0Kk0rffor6IdIbP0j4c,50
|
|
1828
|
+
mindroot-8.12.0.dist-info/top_level.txt,sha256=gwKm7DmNjhdrCJTYCrxa9Szne4lLpCtrEBltfsX-Mm8,9
|
|
1829
|
+
mindroot-8.12.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|