Repository navigation
@agent-native/core@0.75.2
Patch Changes
-
4b3543d: Durable background agent-chat runs now actually receive Netlify's 15-min async
budget by reaching a STANDALONE background function at its DIRECT url, bypassing
Nitro's synchronous/*catch-all.The previous emit wrote the background function into
.netlify/functions-internal
with a customconfig.pathof the_process-runroute. A customconfig.path
makes a function reachable ONLY at that path (not at its default function url),
functions-internalis not exposed at a default url, and Netlify routed
/_agent-native/agent-chat/_process-runto the synchronous Nitroserver
catch-all instead — so the worker was capped at the ~60s wall and degraded to
40s-chunked runs (confirmed live: a POST to the process-run path returned a
synchronous 401 from the handler rather than a 202 async ack).The build now emits a standalone function into the STANDARD
.netlify/functions/server-agent-backgrounddir withbackground: trueand NO
custompath, so Netlify exposes it at/.netlify/functions/server-agent-background
and invokes it asynchronously (immediate 202 ack, 15-min budget). Its entry sets
globalThis.__AGENT_NATIVE_BACKGROUND_RUNTIME__ = trueat cold start and rewrites
the incoming request path back to the_process-runroute before delegating to
the Nitro handler, preserving the method, all headers (the HMAC
Authorization: Bearerthe plugin verifies survives the rewrite), and the body.
The foreground self-dispatch (and server-driven continuation chunks) now target
that direct url on hosted Netlify via a sharedresolveAgentChatProcessRunDispatchPath
helper, and stay on the framework route everywhere else. The graceful inline
40s fallback on a dispatch fast-fail is unchanged.