v7: multi-agent support (Codex + Claude + opencode scaffold)
This commit is contained in:
@@ -105,6 +105,14 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="section">
|
||||
<label>Agent</label>
|
||||
<select id="agentSelect" style="width:100%;padding:6px 8px;background:#16213e;border:1px solid #333;border-radius:6px;color:#e0e0e0;font-size:13px;">
|
||||
<option value="codex">Codex Desktop</option>
|
||||
<option value="claude">Claude Desktop</option>
|
||||
<option value="opencode">opencode</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="section">
|
||||
<label data-localize="PollInterval">轮询间隔 (ms)</label>
|
||||
<div class="range-row">
|
||||
|
||||
@@ -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