You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(engine): validate auth before creating git snapshot
Fixes bounty issue #1652
Previously, the session would create a git snapshot before calling
run_agent_loop(), but authentication was only validated when making
the actual API request inside run_agent_loop(). This caused git
snapshots to be created even when authentication would fail.
This fix adds a validate_auth() method to the ModelClient trait that
performs a lightweight auth check before creating any side effects.
The session now calls validate_auth() before creating the git snapshot,
ensuring early failure on invalid credentials.
0 commit comments