mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
Merge #777: auto-compact and auto-clear from the statusLine context size
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
commit
6fa2dfa549
16 files changed
+579
-45
No files matched your search
@@ -2831,7 +2831,11 @@ Object.assign(CodemanApp.prototype, {
|
||||
// Populate respawn config from saved state
|
||||
this.loadSavedRespawnConfig(sessionId);
|
||||
|
||||
// Populate auto-compact/clear from session state
|
||||
// Populate auto-compact/clear from session state. A threshold above the model's window
|
||||
// can never fire, so the inputs stop there once the statusline has reported it.
|
||||
const maxThreshold = session.contextWindowSize ?? 1000000;
|
||||
document.getElementById('modalAutoCompactThreshold').max = maxThreshold;
|
||||
document.getElementById('modalAutoClearThreshold').max = maxThreshold;
|
||||
document.getElementById('modalAutoCompactEnabled').checked = session.autoCompactEnabled ?? false;
|
||||
document.getElementById('modalAutoCompactThreshold').value = session.autoCompactThreshold ?? 110000;
|
||||
document.getElementById('modalAutoCompactPrompt').value = session.autoCompactPrompt ?? '';
|
||||
|
||||
Reference in new issue
Block a user