fix(chat): restore history on Turnstile verification

Turnstile callback unconditionally showed the greeting message, wiping
session history for returning visitors who hadn't verified yet.

Callback now uses the same restoreOrGreet pattern as neuronDemoToggle:
replays prior messages if session.messages is non-empty, else shows the
greeting once and marks session.greeted.

Also extracts the gallery voting inline script (a49ca0a129e8.js) as a
side effect of re-running extract-js.py. Chat JS rebuilds to de72b8b61d75.js.
This commit is contained in:
Will Anderson
2026-05-03 19:51:59 -05:00
parent 047be5ae02
commit 4c5d4b3c84
7 changed files with 32 additions and 120 deletions
+1 -1
View File
@@ -2023,7 +2023,7 @@ fn page_close() -> String {
</div>
</div>
<script src=\"/assets/js/37b5ead0d425.js\" defer></script>
<script src=\"/assets/js/de72b8b61d75.js\" defer></script>
</body>
</html>
"