Repository navigation
@agent-native/core@0.77.8
·
7447 commits
to main
since this release
Patch Changes
- 7dc2828: Guard on-demand
ensureTable()schema-init so the already-migrated path takes no
ACCESS EXCLUSIVElock on Postgres. The app-secrets (app_secrets) andsettings
stores now probeinformation_schema/pg_indexesfirst (plain reads, no lock) and
issueCREATE/ALTER/CREATE INDEXonly when something is actually missing; any
DDL that must run is wrapped in a transaction-scopedSET LOCAL lock_timeoutso a
contended lock fails fast instead of hanging (and never leaks onto the pooled
connection). This fixes background-function workers hanging indefinitely on
first-touch schema DDL behind a concurrent connection on shared Neon — observed as
durable agent-chat workers stalling right after auth and never claiming the run.
SQLite (local dev) behavior is unchanged. Adds a shareddb/ddl-guard.tshelper
(pgTableExists/pgColumnExists/pgIndexExists/runGuardedDdl). Also adds
diagnostic-only worker setup sub-stage breadcrumbs to localize such stalls.