v7: multi-agent support (Codex + Claude + opencode scaffold)

This commit is contained in:
2026-06-18 14:34:30 +08:00
parent 6a75b46453
commit ae114159ff
4 changed files with 208 additions and 269 deletions
@@ -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';