Luca448 commited on
Commit
bb8aae3
·
1 Parent(s): 7b75c21

Fix: Added debug injection for particle testing

Browse files
Files changed (2) hide show
  1. index.html +1 -1
  2. src/views/chat/chat-view.js +5 -0
index.html CHANGED
@@ -52,7 +52,7 @@
52
  </head>
53
  <body class="dark-theme in-chat-view">
54
 
55
- <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.139</div>
56
 
57
  <!-- SVG Filters for Liquid Glass Refraction -->
58
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
 
52
  </head>
53
  <body class="dark-theme in-chat-view">
54
 
55
+ <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.140</div>
56
 
57
  <!-- SVG Filters for Liquid Glass Refraction -->
58
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
src/views/chat/chat-view.js CHANGED
@@ -4913,6 +4913,11 @@ body { margin: 0; padding: 0; background: #000; overflow: hidden; display: flex;
4913
  // Wait for all image fetches to complete before saving the message
4914
  await Promise.allSettled(cardPromises);
4915
 
 
 
 
 
 
4916
  // 3. Save AI Message
4917
  const aiMsgId = 'msg_' + Date.now();
4918
  db.addMessage(aiMsgId, this.currentConversationId, 'assistant', processedResponseText, model, 'default');
 
4913
  // Wait for all image fetches to complete before saving the message
4914
  await Promise.allSettled(cardPromises);
4915
 
4916
+ // DEBUG INJECTION
4917
+ if (text.toLowerCase().includes('debug prag')) {
4918
+ processedResponseText += `\n\n[THEME_PARTICLE_SVG: <svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"><rect x="230" y="50" width="40" height="400"/><rect x="210" y="150" width="80" height="30"/><rect x="210" y="250" width="80" height="30"/><circle cx="250" cy="120" r="40"/><circle cx="210" cy="220" r="30"/><circle cx="290" cy="280" r="25"/></svg>]`;
4919
+ }
4920
+
4921
  // 3. Save AI Message
4922
  const aiMsgId = 'msg_' + Date.now();
4923
  db.addMessage(aiMsgId, this.currentConversationId, 'assistant', processedResponseText, model, 'default');