v7: multi-agent support (Codex + Claude + opencode scaffold)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
const agentSelect = document.getElementById('agentSelect');
|
||||
const pollSlider = document.getElementById('pollInterval');
|
||||
const pollVal = document.getElementById('pollVal');
|
||||
const showHealthToggle = document.getElementById('showHealth');
|
||||
@@ -11,6 +12,7 @@
|
||||
$settings = $settings || {};
|
||||
|
||||
function applySettings(settings) {
|
||||
if (settings.agent) { agentSelect.value = settings.agent; }
|
||||
if (settings.pollInterval !== undefined) {
|
||||
pollSlider.value = settings.pollInterval;
|
||||
pollVal.textContent = settings.pollInterval + 'ms';
|
||||
@@ -20,6 +22,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
agentSelect.addEventListener('change', function () {
|
||||
$settings.agent = this.value;
|
||||
});
|
||||
|
||||
pollSlider.addEventListener('input', function () {
|
||||
const val = parseInt(this.value, 10);
|
||||
pollVal.textContent = val + 'ms';
|
||||
|
||||
Reference in New Issue
Block a user