Spaces:
Paused
Paused
Savestate: Fix critical bug where any H2 tag wiped the entire chat history
Browse files- index.html +1 -1
- src/views/chat/chat-view.js +3 -2
index.html
CHANGED
|
@@ -74,7 +74,7 @@
|
|
| 74 |
</head>
|
| 75 |
<body class="dark-theme in-chat-view">
|
| 76 |
|
| 77 |
-
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.
|
| 78 |
|
| 79 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 80 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
|
|
|
| 74 |
</head>
|
| 75 |
<body class="dark-theme in-chat-view">
|
| 76 |
|
| 77 |
+
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.8.236</div>
|
| 78 |
|
| 79 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 80 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
src/views/chat/chat-view.js
CHANGED
|
@@ -3524,9 +3524,10 @@ body { margin: 0; padding: 0; background: #000; overflow: hidden; display: flex;
|
|
| 3524 |
const messagesContainer = document.getElementById('chat-messages');
|
| 3525 |
|
| 3526 |
// Remove welcome message if exists
|
| 3527 |
-
|
|
|
|
| 3528 |
// DO NOT call cleanupParticleLogo here! We want the particles to survive and fly to the typing indicator.
|
| 3529 |
-
|
| 3530 |
}
|
| 3531 |
|
| 3532 |
const wrapper = document.createElement('div');
|
|
|
|
| 3524 |
const messagesContainer = document.getElementById('chat-messages');
|
| 3525 |
|
| 3526 |
// Remove welcome message if exists
|
| 3527 |
+
const emptyState = messagesContainer.querySelector('.empty-state-container');
|
| 3528 |
+
if (emptyState) {
|
| 3529 |
// DO NOT call cleanupParticleLogo here! We want the particles to survive and fly to the typing indicator.
|
| 3530 |
+
emptyState.remove();
|
| 3531 |
}
|
| 3532 |
|
| 3533 |
const wrapper = document.createElement('div');
|