Repository navigation
@agent-native/core@0.207.0
Minor Changes
-
e818cf9: Device-flow browser approval links use the same configured public origin and base path as MCP identity and OAuth discovery, so an internal proxy host does not leak into the URL the CLI opens.
The MCP server settings and
/mcp/connectpage add Add to Cursor, Add to VS Code, and Add to VS Code Insiders install links, a VS Code guide, and a Codex guide that usescodex mcp addandcodex mcp login. The app now names its own MCP server through a publicGET /mcp/connect/identityroute: production keeps the bare name (agent-native-mail), while beta, preview, and local deployments put the environment first (beta-agent-native-mail), so one client can hold both. Because no production name starts withbeta-,preview-, orlocal-, betamailand a production app namedmail-beta(agent-native-mail-beta) never share an entry;mcp.serverNamecannot start with those prefixes. Settings, the connect page, install links, andnpx @agent-native/core connectall use that name instead of each deriving one from the hostname. Install links carry only the server name, transport, and MCP URL. UsebuildMcpInstallLinkfrom@agent-native/core/shared/mcp-connect-contentanduseMcpConnectIdentityfrom@agent-native/core/client/mcp-connect-identityto build them elsewhere. When bothVITE_APP_BASE_PATHandAPP_BASE_PATHare set, the connect page, the identity route, and the MCP OAuth metadata now resolve the base path the way the MCP server mounts it, withVITE_APP_BASE_PATHfirst, instead of advertisingAPP_BASE_PATH.connectand@agent-native/skillsnow escape every control character they write into Codex'sconfig.toml, in server names from--nameand in URLs and header values, so no name or value can break the file. A server name that is not a plain identifier (letters, digits,-and_, at most 64 characters) now fails the connect page and identity route with an error namingmcp.serverName, instead of being published into copyableclaude mcp addandcodex mcp addcommands. The connect routes resolve that name before minting a token, so a refused name never leaves an issued token behind. A name derived from the app id or hostname is shortened and cleaned to fit instead of refused, and one that had to change ends in__and a 53-bit hash of the original, such asagent-native-acme-notes__<hash>for@acme/notes. No derived name used as is contains__, so a cleaned name never matches another app's plain derived name, and two cleaned names match only on a hash collision. A configuredmcp.serverNameis used as given, so it can still match another app's configured or derived name. An app with noapp.id, template, or slug takes its name from the public URL that OAuth discovery advertises rather than the request's host, so one served behind a proxy under an internal hostname can get a new name; setmcp.serverNameto keep the old one.GET /mcp/connect/identitystays mounted whenmcp.connectisfalse, so Settings and share dialogs still show the server; its newconnectfield is thenfalse, and they show the server URL without install links, client guides, or the connect-page link, since none of those can sign in. The identity's URLs are the public URL MCP OAuth discovery advertises (APP_URLorWORKSPACE_OAUTH_ORIGINwhen set) rather than the request'sHost, so a link installed behind a proxy signs in against the same resource. Listing and revoking tokens keeps working when the server name is refused.connectnow stops with an error on an empty--namebefore it starts the browser approval.
Patch Changes
-
204e4b3: Preserve active browser-session claims and their completion when the bridge stops or a poll attempt times out.
-
3d09f9f: Keep active request copying in the chat actions menu with visible feedback, and route subjective UX proposals to human review.
-
a06e1cb: Add an optional
sitemapGrouptobuildAgentWebStaticFilesandcreateAgentWebVitePluginthat splitssitemap.xmlinto a sitemap index with one root-levelsitemap-{group}.xmlper group, and teachagent-native audit-agent-webto follow a sitemap index to its first child sitemap. -
eb2ca66: Recover interrupted scheduled automations from their worker heartbeat on scheduler ticks, resume unfinished steps in the same durable turn, and preserve journal-confirmed side effects in failure messages.
Bind recovery to an app-scoped firing history, stop dispatch after scheduler lease loss, retain recovery until history writes are durable, and fail closed on corrupt run journals.
Preserve interrupted firings during temporary identity lookup failures, settle permanent identity rejection with confirmed delivery evidence, and retain manual-run scheduling and pause policy during recovery.
Keep interrupted firings retryable when the scheduler loses its lease during setup, and release any unstarted successor before retrying the same turn.
Synchronize packaged Factory feedback guidance with its canonical skill.
Atomically link and claim automation workers after saving their original instructions, settle lease loss before a firing starts, recover manual firings without schedules, and report uncertain response delivery without resending it.
Clear an earlier scheduler firing's recovery identity when admitting an event or webhook run, so its history cannot settle the new firing.
Commit new firing history and its running marker together, honor live queued dispatch claims during setup and settlement, and restrict legacy scheduler recovery to scheduled trigger markers.
Keep newly admitted firings retryable after pre-start lease loss and reconcile terminal history independently of worker retention, preserving its recorded delivery evidence.
Report post-commit notification and history-retention failures without aborting an already committed firing admission.
Recover from an absent or mismatched firing-history reference as an explicit error without replaying work or modifying unrelated history; retain scheduled backoff and manual-run policy.
Preserve completed no-op outcomes when reconciling recovery alongside the shared automation outcome runner, and keep its clock context in the saved request.Retain unfinished firing history during pruning and recover journal-confirmed no-op results when terminal history persistence was interrupted.
Apply shared work-confirmation rules during recovery, settle missing worker evidence without replaying it, preserve unfinished scheduled firing references across trigger dispatch, and stop disabled scheduled firings while retaining intentional manual recovery and delivery evidence.
Settle permanently unreadable journals with an unknown-delivery error while retrying database failures, preserve firing identity fences when timestamps are absent, and honor action metadata that excludes progress-only work from success.
Durably settle malformed no-op evidence as an explicit unknown-delivery error, restore no-op declarations from their original journal result, and prevent replayed no-op acknowledgements from counting as completed work.
Use the resource-scoped automation history ownership helper for atomic admission and recovery, preserving personal history when execution carries an organization context.
Settle ambiguous legacy firing markers as explicit unknown-evidence errors without choosing, finishing, or replaying either history, while retaining transient history-read failures for retry.
Preserve original tool argument identity with a SHA-256 fingerprint before stripping inline attachment bytes, fail closed for legacy redacted inputs without that identity, and include predecessor-confirmed work when settling resumed automation outcomes.
Associate tool receipts with their call IDs, retain ambiguous concurrent calls as unknown, and preserve every own JSON key in replay fingerprints.
Reject journal fingerprints that contradict their original arguments and require receipt arguments to agree with the matching call after byte stripping.
Snapshot fresh tool arguments before queued journal writes, store separate original and persisted argument digests, preserve every own JSON property during byte stripping, and leave ambiguous identical invocations unknown.
Keep start and completion journal events bound to the same pre-invocation arguments even when an action mutates its input.
Honor explicit successful tool outcomes during replay classification without interpreting arbitrary result text as a legacy failure marker.
Fence recovery settlement by the scheduler lease and inspected worker identity, and atomically reject successors whose firing was settled or reassigned before admission.
Apply worker-identity fences to every runner outcome and permanent recovery rejection, and revalidate scheduler ownership immediately before projecting terminal status.
Accept terminal history retries only when their stored outcome and delivery evidence agree, preserving canonical delivery truth when competing handlers settle the same worker.
Keep interrupted firings retryable when recovery context, journal, delivery-evidence or worker-admission storage is temporarily unavailable, while settling permanently corrupt or missing evidence explicitly.
Reconcile durably finished history on a later scheduler tick when projecting its final resource status fails, without reporting successful work as an execution error.
Preserve every own JSON key in saved dispatch requests while removing inline attachment bytes, including nested request and attachment metadata.
Keep authorization inside the action deadline and cancellation race, preventing late authorization from starting a write after the worker has stopped.
Share terminal failure classification between live and recovered automation runs so a connection request retains its precondition status and prior confirmed delivery evidence after a crash.
-
d7da131: Stop holding HTTP responses on telemetry exports: they go to the platform's background hook when it has one, and otherwise wait at most 250ms. Action change markers are still written before a write response returns, so polling clients see them.
-
d7da131: Coalesce action GET calls made in the same tick into one
get-actions-batchrequest, so a page's queries share a round trip. Each item still runs through its own route, auth, and access checks, and one failing item does not fail the others. -
dfcc0de: Keep earlier chat images available to later turns, and verify thread access before replaying a completed turn.
-
43d0aa8: Retry transient chat route verification without replacing a restored tab, and only confirm a legacy snapshot fallback after the host save succeeds. Keep the exported chat header prop optional for existing consumers.
-
d407242: Make earlier uploaded images available to later chat turns from authorized thread history.
-
5debd13: Preserve workspace app mount paths when app IDs differ from URL paths.
-
2e167cf: Propagate onboarding completion lookup failures so clients can retry status reads instead of treating them as incomplete.
-
58e7808: Surface browser-session polling, completion, serialization, and cleanup failures, including timed-out claims; preserve HTTP status for malformed error responses and keep active session identities stable with cleanup ordered across restarts.
-
6f1fa56: Allow workspace config to provide hosted URL overrides for built-in agents.
-
58e7808: Preserve AgentKit approval and input pauses when the underlying chat turn is terminal.
-
a9c8414: Show sign-in recovery for invalid or expired verification email links, preserving safe return paths and existing sessions.
-
08e3932: Preserve browser-session attribution from the originating request across durable agent runs.
-
19cd58b: Fix chat turns that died or looked broken for recoverable reasons. A turn that yields to a connection request is recorded as awaiting input instead of a truncated run (no synthetic auto-continue, no chained successor), and automations record the yield as a typed connection_required failure and pause. Stale connection cards retire with their run, and a chat that does not own a pending connection resume no longer shows a stuck "Connection failed" banner. A failed peer-app call shows the app name once with a short reason and keeps its participant after the run finishes. Peer-app failures carry typed codes so the caller stops retrying an unfixable peer, and a peer that needs a connection returns a do-not-retry result. An org A2A secret equal to the deploy secret is refused, and the resulting identity demotion is logged.
-
d7da131: Mark an action write response with
X-Agent-Native-Change-Marker: failedwhen its durable change marker did not persist, keeping the response a success, and refresh action queries on the client when that header arrives. -
aa34418: Never persist inline image or file bytes in chat storage: thread snapshots, queued messages, run events and dispatch payloads keep a durable URL or an explicit omitted marker instead of
data:URLs. Chat now reports typed, localized upload and attachment errors (including a "Retry without attachment" action for provider-rejected files), replays earlier attachments and the original ask in long threads, keeps a provider ownership check from failing on one unreachable provider, marks interrupted tool results as unknown-outcome errors, and no longer records experiment assignments when a model was chosen explicitly. -
7f11f95: Rebase the Builder Code starter onto the Chat template's new local-development Get started page, keeping the starter's own output unchanged, and update the Getting Started guide to land there.
Use self-hosted deployment LLM provider keys as app-wide fallbacks across organizations, including with remote databases, and explain the behavior in Getting Started.
-
a2e4a26: Add an optional
assertSharingChangehook to shareable resource registrations so an app can refuse a visibility change or share grant before it is persisted. -
a5dfaee: Re-run the
assertSharingChangehook after a share grant or visibility change is written, and undo that write if the hook refuses, so a context item that commits mid-change cannot leave a shared clip behind. -
644ec0a: Preserve a committed mutation's audit outcome and owner when completing its response fails, while retaining the typed response error for the caller.
-
0c33f1c: Return complete query payloads in MCP text so long collection descriptions and saved views cannot hide database rows from text-only clients.
-
00b9885: Use a fixed recovery path variant and keep caller-controlled values out of the SSR cache key.
-
4132473: Allow action mutations to pass request headers independently of their payload.
Permit the Content recovery telemetry header through existing action, embed, generated-worker and global auth-guard CORS preflights. -
c9ad0b8: A chat started on a create route keeps its new-thread state after the route adopts the thread id on submit. Previously the chat fell into a restore-loading state until the thread list loaded, which hid the thinking indicator.
-
5debd13: Only project a workspace mount as current when its manifest identity matches the configured app.
-
44ba265: Add workspace connection support for querying dbt Semantic Layer metrics.
-
ad92b85: Skip generated Playwright artifacts during migration diagnostics and tolerate files or nested directories that disappear during a scan.
Respect the disabled API surface for organization queries and mutations in embedded editor shells.
-
692e50f: Require admin access when a directory widget reads resource share principals.
-
d8404f1: Fix ChatGPT directory widgets (Slides, Design, Content) showing "Embedded app session expired" with a Retry button that never recovers after the chat is reloaded or the widget is opened after its short-lived start ticket lapsed. The widget shell ignored the server's expiry notice in directory mode, so it never asked the start tool for a new session. It now renews from the saved widget source ticket, and a start URL the server has already refused is no longer relaunched when the host re-syncs.
-
dce2ac0: Fix ChatGPT directory widgets (Slides, Design, Content) opening with "The original widget session ticket is unavailable." for connections authorized before OAuth tokens carried a grant time. Those tokens now use their signed issue time as the widget session anchor, a failed write grant degrades to a read-only session instead of dropping the ticket, and a result returned without a widget session ticket is logged.
-
3a1fc0f: Return a directory tool result without a widget session ticket, instead of failing after the action already ran, when no widget scope fits the size limits.
-
13d37c7: Keep detached agent-run database writes within the request pool lifetime and exclude the current prompt from history after assistant messages.
-
ccddd3a: Preserve image attachments and user-selected output dimensions throughout agent chat and Design generation.
-
fbba54f: Preserve uploaded images in conversation history and scope Cloudflare database pools to each request.
-
9bb40f0: Add the
agent_native.http.server.handoff.durationOpenTelemetry histogram. It measures each request until the response hook hands the response back to the runtime, so time a finished response spends waiting (such as an inline telemetry flush) shows up as the gap fromhttp.server.request.duration. -
b3653e1: Stop emitting per-request
http.responseproduct events. Request timing now goes to an OpenTelemetryhttp.serverspan, and cold or slow requests write anagent-native.slow_requestlog line.AGENT_NATIVE_HTTP_TELEMETRY_SAMPLE_RATEis removed. -
ece64fa: Add brand logos for Google BigQuery, Google Analytics, Google Sheets, Google Cloud, Mixpanel, Prometheus, and X to the shared integration logo table, so
mcpIntegrationLogoresolves them by id. The X logo inverts on dark backgrounds like the other monochrome logos. -
8e1d625: Emit server-side lifecycle events when an LLM credential or default model changes, without including credential or endpoint values.
-
1284000: Preserve authenticated MCP users when delegating to the same app's durable agent tasks, without re-authenticating them as organization-only A2A callers.
-
1615011: Keep dev-only PGlite migration adapters out of hosted server bundles.
-
Release all public npm packages with a patch version bump.
-
19092a7: Beta apps that do not declare
app.idnow name their MCP server after the app, such asbeta-agent-native-content, instead of all sharingbeta-agent-native-beta. Deployed functions run withoutnpm_package_name, so the name comes from the hostname, and the leadingbeta.of abeta.<app>.agent-native.comhost named the lane rather than the app. The connect page's app name changes the same way. -
9f18cc9: Add per-eval action allowlists, load production TypeScript adapters in the CLI, and distinguish failed runs from missing usage.
-
7294eed: Return typed permission errors for organization membership and admin assertions so admin-only actions, including set-app-member-roles and explain-access, return clear 401/403 responses and audited refusals are recorded as denied.
Preserve organization-admin membership lookup failures as internal faults rather than misclassifying them as permission denials.
-
529881a:
useOrg()reportsisLoadingwhile the cached action restore holds its query, so an app no longer reads the unloaded org as "no org" and sends an open deck back to the deck list. -
7a5b2be: Build workspace apps in parallel during
agent-native deploy, three at a time by default. Large workspaces were running into provider build time limits because every app built one after another. SetAGENT_NATIVE_DEPLOY_CONCURRENCYto change the limit. -
d7da131: Revisits paint the last known action results instead of a skeleton. Action query results are persisted per signed-in user and org in IndexedDB, restored before any action request is issued, then refetched in the background. Entries are dropped on sign-out, session end and org switch, after an hour, when a refetch returns 403 or 404, or when the cache schema version changes. Mutations are never persisted. Set
persistInBrowser: falseon an action definition to keep its reads out of the browser cache. -
8e165e4:
pnpm db:migratein the Builder Code starter now runsagent-native db-migrate,
which readsdrizzle.config.tsand applies migrations through the running local
dev server when the database is PGlite instead of opening the data directory from a second process and
corrupting it.createDrizzleConfigalso refusesdrizzle-kit migrate,push,
studio, andpullagainst a PGlite directory held by a live dev server. -
d44b119:
sendToAgentChat({ submit: false, context })can name its prefill chip with the newcontextLabeloption; without it the chip uses the generic app-context label. A prefill the composer cannot hold alongside its current context is refused with acontext-too-largeresult before the draft changes. A replacement prefill is no longer removed by the cleanup of an earlier send that was still in flight. -
5debd13: Resolve workspace app mount paths from explicit metadata, require an explicit root mount, and preserve the server router basename when legacy metadata is missing.
-
cdc66e3: Expose lightweight sidebar helpers and controlled assistant popovers so public pages can defer the assistant runtime until requested.
-
0d9c1c4: Start session replay from server-injected Analytics configuration, route custom tracking endpoints to the configured collector, and preserve replay context and route provenance on pageviews while replay starts.
-
cbca71a: Bound eval input-file reads and reject missing or oversized reviewed prompts before loading them.
-
58e7808: Abort browser-session polling requests when the bridge stops.
-
7f11f95: Prevent anonymous public agent runs from consuming deployment-wide LLM provider keys.
-
58e7808: Skip generated React Router types when scanning project imports.
-
44ba265: Require an explicit reviewed prompt when promoting production traces and reject oversized or placeholder text instead of truncating it.
Preserve ordinary numeric values in reviewed prompts and expected text.
-
c9ad0b8: Opening an agent chat thread no longer reads its full message history for the access check that runs when the thread opens and on each run poll. Access checks now read only the thread's sharing row, so opening a long thread transfers far less data from the database.
-
41700be: Expose server-confirmed chat persistence, report snapshot save results, and allow canceled persistence requests so the UI can retry failed saves safely. The legacy
persistThreadSnapshot()method rejects on unexpected transport failure and resolves for expected cancellation or queue deferral without confirming that the snapshot was saved. UsepersistThreadSnapshotWithResult()when callers need the save outcome. -
fbba54f: Keep Cloudflare database pools scoped across Worker lifecycle events and shared schema initialization.
-
fbba54f: Keep request-scoped database pools alive across Worker request and scheduled-work lifetimes, and restore distinct prior-chat images once within the shared request budget.
-
4ff59ad: Resume recovered background chat turns with durable tool results and explicit unknown-outcome context instead of replaying the original request from scratch.
Block repeated calls to a write tool after an uncertain live outcome, refresh verification reads, and preserve definite pre-execution refusals at their own action boundary.
Persist the tool-start marker before invoking writes. Classify handler failures as unknown outcomes regardless of error type; schema and authorization failures before handler entry remain definite refusals.
Reject unpersisted start markers and track custom-agent writes in the parent turn's durable recovery ledger.
Wait for the run row before persisting tool events and keep delegated call ids compatible with provider history replay.
Serialize required start markers with stale-run status updates, and expose fallback successors only after the old run is reaped.
-
079f025: Skill pages carried over from an interrupted run are reused only when they still match the current skill, and are skipped when the page is already in the model's history.
-
2f9ec18: Skill pages the agent read earlier in a conversation stay available on later turns, so large skills are no longer re-read with docs-search on every turn after their tool results fall out of replayed history.
-
c2ea6bf: Enable Rolldown lazy barrel loading in app builds, so named imports from barrel packages like
@tabler/icons-reactno longer make the bundler parse every module they re-export. Opt out withbuild.rolldownOptions.experimental.lazyBarrel: false. -
24740f4: Keep public Design links from receiving unrestricted localhost preview credentials.
-
d7da131: Start a hinted visitor's action reads while the session still resolves, and refresh only the action queries a write or sync event can affect.
useActionQuerytakesresourcesanduseActionMutationtakesresources, so a query tagged for a resource refetches only when a change to that resource lands, and a sync event naming itsresourceTypenarrows the same way. Queries and writes without resources keep the broad refresh. -
5f05a4e: Allow action queries to partition their local cache by viewer context.
-
d7da131: Create indexes for the sharing access filters (lower(owner_email) and share principals) in the release migration, so list and access checks on owned tables stop scanning every share row.
-
3451273: The sign-in page now records first and last touch with Core's shared capture instead of its own older copy. Visitors who land on a sign-in page keep the marketing site's forwarded referrer and landing page, ad click ids, and last touch, and a later tagged visit replaces an untagged first one.
captureAttribution()takes alandingPathoption for pages that stand in front of the path the visitor asked for. -
4135e74: Log slow agent chat setup and status lookups with per-step timings, including the AI setup gate, so the cause of send latency can be read from logs.
-
44ba265: Require explicit production context for agent eval runs, preserve token usage in reports, fail closed on timeout, resolve TypeScript eval adapters from the consuming app, and support workspace-scoped Sigma client-credentials requests.
-
bc9e159: Require reviewed prompt text when promoting trace evals and accept reviewed input files.
-
b4e78ea: Release the first-run startup gate sooner when its eligibility request stalls.
-
7f11f95: Allow self-hosted apps to opt in to deployment LLM provider keys as shared fallbacks when no scoped key is saved.
-
2e74b7b:
create-resource-suggestionacceptssupersedes: IDs of the caller's own earlier suggestions on the same resource. Pending ones becomesupersededin the same transaction as the new suggestion, with a recorded decision that points to the replacement. Suggestions that are already decided stay as they are. -
9bb40f0: Stop holding serverless responses on the OpenTelemetry flush when the platform provides
waitUntil. The response hook now hands the OTel export (including the spans mirrored from tracking events) towaitUntil, read from the request or from Netlify's request context, so a slow OTLP collector no longer adds up to 2 seconds to each response. Runtimes withoutwaitUntilstill wait for the export inline. A failed or timed-out flush also writes oneagent-native.telemetry_flush_failedline to the function log per signal and error type, because theagent_native.telemetry.flush_failurescounter cannot reach a collector that keeps timing out. -
f8930b5: Keep staged app context scoped to its chat thread. Persist it before saving a
prefilled draft. -
9bb40f0: Export metrics at most once every 10 seconds per process on serverless instead of after every response. Each metric export re-sends every series the process holds, so per-response exports made OTLP upload volume grow with request rate. Skipped points ride the next export; spans still flush after every response.
-
3daa76a: Score production evals after degraded prefetch when the agent loop completed successfully.
-
fbba54f: Resolve the request-owned database pool when Better Auth scopes pooled transactions so nested database layers detect one-connection self-deadlocks consistently.
-
75a4b65: Keep runtime cursors and durable continuation context separate.
-
b9179b0: Label failed tool span events in AI analytics as "Tool call failed (code)" instead of "Agent run failed (code)", matching the OpenTelemetry tool span.
-
9759752: A tool call now times out even while its app authorization lookup is still pending, so a stalled lookup no longer leaves the run waiting on a tool with no result.
-
12a8ede: Uploaded skills use stable names and unique paths. Re-uploads update their matching skill while distinct names with the same slug stay separate.
-
d7da131: Reuse workspace app access reads (app row, org member row, org domain, and the dispatch registry answer) for the membership cache TTL on each instance, so a warm guarded request no longer re-reads them. Membership and workspace app changes made on the same instance take effect immediately; changes from other instances or the dispatch service take effect within 15 seconds.
-
70bf54c: Directory widget read routes now run the workspace app access check for the session-authenticated callers they resolve, as the write routes already did, so a user denied access to a workspace app can no longer read its widget-scoped data.
share-resource,unshare-resource,set-resource-visibilityandlist-resource-sharesrepeat the widget grant's resource binding inside the action, and the run context carriesmcpDirectoryWidgetResourceIdsfor scoped widget reads. The embed session cookie is no longer sent when the signed token exceeds the browser's 4096-byte cookie limit; the page keeps using its query or bearer token. -
d4854b8: Directory widget write grants can now carry the share actions for their own resource, with limits: a widget cannot grant the admin role, share with an organization or group, or put its own note in the share email. Every literal-bound argument of a widget write call must be supplied and equal to its ticketed value. A profile can gate a scoped read behind a write action with
widgetReadActionWriteGates, so a read-only ticket never lists collaborators. Widget capabilities use a compact encoding (the old encoding still verifies) so a grant with the share actions fits a browser cookie. -
Updated dependencies [19cd58b]
-
Updated dependencies [aa34418]
-
Updated dependencies [ccddd3a]
-
Updated dependencies
-
Updated dependencies [ecfe037]
-
Updated dependencies [41700be]
-
Updated dependencies [6b63993]
- @agent-native/agentkit@0.207.0
- @agent-native/recap-cli@0.5.69