add JSDoc comments because yes

This commit is contained in:
2026-09-25 17:14:56 +02:00
parent 9020356e62
commit 0a24035b27
62 changed files with 197 additions and 0 deletions
+4
View File
@@ -1,3 +1,6 @@
/**
* @file Steuert die Reasoning-Auswahl und die aufklappbare Anzeige gestreamter Gedankengänge.
*/
import {supportsReasoning} from "./modelCapabilities.js?v=20260921-reasoning-capability";
export function createReasoningToggle(button) {
@@ -43,6 +46,7 @@ export function updateReasoning(messageElement, thinking, streaming = false) {
}
details.querySelector("summary").textContent = streaming ? "Reasoning · Thinking…" : "Reasoning";
const content = details.querySelector(".msg-reasoning-content");
// Nur automatisch nach unten scrollen, wenn die Ansicht bereits nahe am Ende steht.
const follow = content.scrollHeight - content.scrollTop - content.clientHeight < 40;
content.textContent = thinking;
if (streaming && follow) content.scrollTop = content.scrollHeight;