fix: show already up to date instead of full update flow when no updates available

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/fb575403-f4f0-41bb-8fb1-12f7d9874009

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-12 04:13:13 +00:00
committed by GitHub
parent 51537c47b3
commit ad6cf6c498
2 changed files with 37 additions and 0 deletions

View File

@@ -2375,6 +2375,10 @@ async def api_updates_run():
if status == "RUNNING":
return {"ok": True, "status": "already_running"}
available = await loop.run_in_executor(None, check_for_updates)
if not available:
return {"ok": True, "status": "no_updates"}
# Clear stale status and log BEFORE starting the unit
_write_update_status("RUNNING")
try: