mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
Fix vision protocol — always fetch all online agents for screenshot modal
This commit is contained in:
@@ -3196,11 +3196,8 @@ async function visionReanalyze(id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function visionRunScreenshot() {
|
async function visionRunScreenshot() {
|
||||||
let agents = _visionAgents.length ? _visionAgents : null;
|
const all = await api('agents_list');
|
||||||
if (!agents) {
|
const agents = (Array.isArray(all) ? all : []).filter(a => a.status === 'online').map(a => a.hostname).filter(Boolean);
|
||||||
const all = await api('agents_list');
|
|
||||||
agents = (Array.isArray(all) ? all : []).filter(a => a.status === 'online').map(a => a.hostname).filter(Boolean);
|
|
||||||
}
|
|
||||||
if (!agents.length) {
|
if (!agents.length) {
|
||||||
toast('No agents online — check AGENTS tab', 'err'); return;
|
toast('No agents online — check AGENTS tab', 'err'); return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user