Update index.html
Browse files- index.html +3 -8
index.html
CHANGED
|
@@ -1096,6 +1096,8 @@
|
|
| 1096 |
|
| 1097 |
}
|
| 1098 |
|
|
|
|
|
|
|
| 1099 |
function fillPrompt(text) {
|
| 1100 |
|
| 1101 |
userInputEl.value = text;
|
|
@@ -1867,7 +1869,6 @@
|
|
| 1867 |
setAssistantContent(fullText);
|
| 1868 |
|
| 1869 |
}
|
| 1870 |
-
|
| 1871 |
});
|
| 1872 |
|
| 1873 |
removeTypingIndicator();
|
|
@@ -1896,8 +1897,6 @@
|
|
| 1896 |
|
| 1897 |
}
|
| 1898 |
|
| 1899 |
-
renderMessages(); // Renders the final state showing embedded message actions
|
| 1900 |
-
|
| 1901 |
} catch (error) {
|
| 1902 |
|
| 1903 |
removeTypingIndicator();
|
|
@@ -1922,8 +1921,6 @@
|
|
| 1922 |
|
| 1923 |
}
|
| 1924 |
|
| 1925 |
-
renderMessages();
|
| 1926 |
-
|
| 1927 |
} else {
|
| 1928 |
|
| 1929 |
console.error('Stream error:', error);
|
|
@@ -1948,8 +1945,6 @@
|
|
| 1948 |
|
| 1949 |
}
|
| 1950 |
|
| 1951 |
-
renderMessages();
|
| 1952 |
-
|
| 1953 |
}
|
| 1954 |
|
| 1955 |
} finally {
|
|
@@ -1964,7 +1959,7 @@
|
|
| 1964 |
|
| 1965 |
setSendButton('send');
|
| 1966 |
|
| 1967 |
-
|
| 1968 |
|
| 1969 |
userInputEl.focus();
|
| 1970 |
|
|
|
|
| 1096 |
|
| 1097 |
}
|
| 1098 |
|
| 1099 |
+
// Filled when template card is clicked
|
| 1100 |
+
|
| 1101 |
function fillPrompt(text) {
|
| 1102 |
|
| 1103 |
userInputEl.value = text;
|
|
|
|
| 1869 |
setAssistantContent(fullText);
|
| 1870 |
|
| 1871 |
}
|
|
|
|
| 1872 |
});
|
| 1873 |
|
| 1874 |
removeTypingIndicator();
|
|
|
|
| 1897 |
|
| 1898 |
}
|
| 1899 |
|
|
|
|
|
|
|
| 1900 |
} catch (error) {
|
| 1901 |
|
| 1902 |
removeTypingIndicator();
|
|
|
|
| 1921 |
|
| 1922 |
}
|
| 1923 |
|
|
|
|
|
|
|
| 1924 |
} else {
|
| 1925 |
|
| 1926 |
console.error('Stream error:', error);
|
|
|
|
| 1945 |
|
| 1946 |
}
|
| 1947 |
|
|
|
|
|
|
|
| 1948 |
}
|
| 1949 |
|
| 1950 |
} finally {
|
|
|
|
| 1959 |
|
| 1960 |
setSendButton('send');
|
| 1961 |
|
| 1962 |
+
renderMessages(); // This now renders with isStreaming = false, so the buttons WILL show!
|
| 1963 |
|
| 1964 |
userInputEl.focus();
|
| 1965 |
|