Patch Changes
- fd78baa: Animate the standard agent sidebar drawer when it opens and closes.
- fd78baa: Durable background diagnostics: preserve the background-function worker's last
diag_stage(route_entered/auth_failed/ etc., ornoneif it never
reached the route) in the foreground circuit-breaker's
foreground_inline_recoverydetail instead of overwriting it. This makes a
silent worker death diagnosable from/runs/activewithout reading the
unreadable Netlify background-function logs.readBackgroundRunClaimnow also
returnsdiagStage. - fd78baa: Durable background agent runs: add a foreground circuit-breaker so a dead
background worker can no longer break chat. A Netlify async background function
returns202the instant it enqueues the invocation, but the worker may never
execute — e.g. the generated function wrapper fails to import./main.mjsor
hand off to the Nitro_process-runroute, so it never reaches
claimBackgroundRunand the run is reaped as "worker never claimed the run".
After a successful dispatch the foreground now polls briefly for the worker to
actually claim the run; if it doesn't within the grace window, the turn is
recovered inline (the same safe atomic-claim path used for a fast dispatch
failure), so a dead worker degrades to a working synchronous turn instead of a
reaped failure. Also harden the generated background-function wrapper to pass
Netlify'scontextthrough to the Nitro handler and wrap the handoff in
try/catch so a pre-route failure is logged loudly instead of silently swallowed
behind the async 202. - fd78baa: Add an
agentNative()Vite plugin preset so appvite.config.tsfiles can use
Vite's nativedefineConfigwhile keeping Agent-Native framework defaults.