viberadar 0.3.35 → 0.3.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/dashboard.html +4 -9
- package/package.json +1 -1
package/dist/ui/dashboard.html
CHANGED
|
@@ -978,17 +978,12 @@ async function reauthAgent() {
|
|
|
978
978
|
}
|
|
979
979
|
|
|
980
980
|
async function runAgentTask(task, featureKey, filePath) {
|
|
981
|
-
if (agentRunning) {
|
|
982
|
-
// Show panel so user sees cancel button
|
|
983
|
-
document.getElementById('agentPanel').classList.add('open');
|
|
984
|
-
document.getElementById('termBtn').classList.add('term-active');
|
|
985
|
-
appendTerminalLine('⚠️ Агент уже запущен. Нажми ⏹ сброс чтобы отменить.', true);
|
|
986
|
-
return;
|
|
987
|
-
}
|
|
988
|
-
document.getElementById('agentTerminal').innerHTML = '';
|
|
989
|
-
document.getElementById('agentPanelStatus').textContent = 'запускаю…';
|
|
990
981
|
document.getElementById('agentPanel').classList.add('open');
|
|
991
982
|
document.getElementById('termBtn').classList.add('term-active');
|
|
983
|
+
if (!agentRunning) {
|
|
984
|
+
document.getElementById('agentTerminal').innerHTML = '';
|
|
985
|
+
document.getElementById('agentPanelStatus').textContent = 'запускаю…';
|
|
986
|
+
}
|
|
992
987
|
await fetch('/api/run-agent', {
|
|
993
988
|
method: 'POST',
|
|
994
989
|
headers: { 'Content-Type': 'application/json' },
|