From 146a13d8ec31a8b93c6936e142a83b4ea2ed79bc Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Fri, 12 Jun 2026 01:10:28 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20vision=20protocol=20=E2=80=94=20always=20?= =?UTF-8?q?fetch=20all=20online=20agents=20for=20screenshot=20modal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/admin/index.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/public_html/admin/index.php b/public_html/admin/index.php index 50f7d62..33e36d5 100644 --- a/public_html/admin/index.php +++ b/public_html/admin/index.php @@ -3196,11 +3196,8 @@ async function visionReanalyze(id) { } async function visionRunScreenshot() { - let agents = _visionAgents.length ? _visionAgents : null; - if (!agents) { - const all = await api('agents_list'); - agents = (Array.isArray(all) ? all : []).filter(a => a.status === 'online').map(a => a.hostname).filter(Boolean); - } + const all = await api('agents_list'); + const agents = (Array.isArray(all) ? all : []).filter(a => a.status === 'online').map(a => a.hostname).filter(Boolean); if (!agents.length) { toast('No agents online — check AGENTS tab', 'err'); return; }