Changeset 0.15.0 (#71)
This commit is contained in:
@@ -103,6 +103,16 @@ function updateContextWarning() {
|
||||
summarizeBtn.style.display = showSummarize ? 'inline-block' : 'none';
|
||||
}
|
||||
|
||||
// Show auto-compact toggle next to summarize button
|
||||
const autoToggle = document.getElementById('autoCompactToggle');
|
||||
const autoCheck = document.getElementById('autoCompactCheck');
|
||||
if (autoToggle && autoCheck) {
|
||||
autoToggle.style.display = showSummarize ? 'inline-flex' : 'none';
|
||||
// Reflect current channel setting
|
||||
const chatSettings = chat?.settings || {};
|
||||
autoCheck.checked = chatSettings.auto_compaction !== false; // default: on
|
||||
}
|
||||
|
||||
if (pct >= 0.9 && !Tokens._warningDismissed) {
|
||||
warning.style.display = 'flex';
|
||||
warning.className = 'context-warning danger';
|
||||
|
||||
Reference in New Issue
Block a user