This commit is contained in:
NAME
2026-05-16 11:58:13 +00:00
parent 4c1f4ccd9d
commit 6a7856065a
2 changed files with 12 additions and 4 deletions
+10 -3
View File
@@ -86,7 +86,7 @@
return false;
}
if (req.action === 'SHOW_RESULT') {
showResult(req.comment);
showResult(req.comment, req.model);
sendResponse({ ok: true });
return false;
}
@@ -451,7 +451,7 @@
}
// ===== SHOW RESULT / ERROR =====
function showResult(comment) {
function showResult(comment, model= '') {
if (!sidebarHost) return;
const s = sidebarHost.shadowRoot;
const statusEl = s.querySelector('#ai-status');
@@ -460,7 +460,14 @@
const drawer = s.querySelector('.drawer');
const typingOpts = s.querySelector('#ai-typing-opts');
if (statusEl) { statusEl.style.display = 'block'; statusEl.className = 'status ok'; statusEl.textContent = comment; }
console.log({model});
if (statusEl) {
statusEl.style.display = 'block';
statusEl.className = 'status ok';
statusEl.textContent = comment;
copyHint.textContent = model;
}
if (copyHint) copyHint.style.display = 'block';
if (runBtn) runBtn.disabled = false;
if (drawer) drawer.classList.add('open');