CI : Update agent from web
Some checks failed
release / build (push) Successful in 27s
release / verify-windows (push) Failing after 59s

This commit is contained in:
jeanotx32
2026-08-11 20:16:08 +02:00
parent 4f7b8f56ae
commit 6916ff4be3
8 changed files with 217 additions and 9 deletions

View File

@@ -56,6 +56,7 @@ export function AgentCard({ agent, selected, onToggleSelect, onCommand, onOpenSe
<span className="muted small">
{agent.hostname ?? '—'} · {agent.platform}
{agent.agentVersion ? ` · v${agent.agentVersion}` : ''}
{status.buildId ? ` · build ${status.buildId}` : ''}
</span>
</div>
<span className={`badge ${state.tone}`}>{state.label}</span>
@@ -148,6 +149,25 @@ export function AgentCard({ agent, selected, onToggleSelect, onCommand, onOpenSe
Connecter OBS
</button>
)}
{status.canSelfUpdate && (
<button
className="ghost"
disabled={!agent.online || busy || status.recording}
title={
status.recording
? 'Enregistrement en cours — la mise à jour est refusée'
: 'Télécharger et installer la dernière version de l\'agent'
}
onClick={() => {
if (confirm(`Mettre à jour « ${agent.name} » ? L'agent redémarrera.`)) {
void run('agent.update');
}
}}
>
Mettre à jour
</button>
)}
</div>
<footer className="card-foot muted small">