fix: use clamp_retry_delay() for reset-time delays

Use the shared clamp_retry_delay() function (1-hour cap) for parsed
reset-time delays instead of a separate 24-hour cap. This aligns with
the PR's consistent 1-hour maximum delay objective.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
cabana8471
2026-01-30 21:47:11 +01:00
parent 88c695259f
commit 89f6721cfa

View File

@@ -325,9 +325,7 @@ async def run_autonomous_agent(
target += timedelta(days=1)
delta = target - now
delay_seconds = int(min(
delta.total_seconds(), 24 * 60 * 60
)) # Clamp to 24 hours max
delay_seconds = clamp_retry_delay(int(delta.total_seconds()))
target_time_str = target.strftime("%B %d, %Y at %I:%M %p %Z")
except Exception as e: