Upgrading
Each section lists what changed in that release and what you may need to change.
From 0.7 to 0.8
- Stop every 0.7 worker and service process before starting this version. Run events now live in their own records, which 0.7 cannot read; existing conversations migrate on their next write. A 0.7 process left running shows migrated runs without events, may accept pruned run ids again, and sends webhooks and charges cost outside the outbox. Rolling back to 0.7 loses no data: this version reads what 0.7 wrote.
- Webhooks are delivered at least once from a durable outbox and retry with backoff for about 17 minutes. Deduplicate on the new
x-yada-deliveryheader. Run cost is charged exactly once per run.Tracehas a newwebhook_failedevent. - Any worker may deliver any webhook or charge any run, so give every worker the same
webhooksandquotaoptions. A worker withoutwebhookscompletes entries without sending them, so those events are lost; a worker with differentquotasettles runs against its own limits.
From 0.6 to 0.7
- MCP tools annotated
readOnlyHintare no longer exposed as reads unless listed inreadToolsor the server setstrustAnnotations: true. Annotations come from the remote server and are untrusted. - Webhooks send
x-yada-timestampand sign${timestamp}.${rawBody}. Recompute the signature with the timestamp and reject stale timestamps; signatures over the body alone no longer verify. createHandler({ rememberApprovals })defaults to[], sorememberin a decision is ignored unless you enable a scope.- Deciding an expired approval returns 409 instead of 202. Cancelling a reconciling run ends it
cancelledwith the actionunknown; a run reconciling for over an hour fails withdependency_failed. A malformed list cursor returns 400. - DeepSeek and local providers reject
effort,serverTools,promptCache,thinkingDisplayandwebSearchinstead of ignoring them. Malformed tool-call JSON from a model becomes aninvalid_argumentstool error instead of failing the run. - Custom widget renderer output is sanitized with an allowlist that removes SVG, forms, inputs and
styleattributes. - The terminal coding agent hides
YADA_*variables frombash, asks beforeauto-editwrites under.gitor.husky, ignores approval answers typed before the prompt, and skips invalid or duplicate skills with a warning.
From 0.5 to 0.6
- Running
yadawith no arguments now starts the terminal coding agent instead of printing help. Useyada --helpfor help;yada initandyada qualify-mcpare unchanged. - Completed service events and assistant conversation messages can carry
sources({ url, title }[]). Validate or ignore the new field if you parse them strictly. - The action store throws on status changes outside the action lifecycle.
From 0.4 to 0.5
- The widget has a new default look: monochrome, with Yada’s changing face in the header and on the empty screen, a single-line input and an icon send button. The title now defaults to “Yada”. Set
avatar: false,composer,labels.titleand the--yada-*variables to change these, orunstyledto drop the styles. - The approve button is now green and decline red. Set
--yada-approveand--yada-declineto keep your own. - Runs have a new failure code,
corrupt_record. Handle it wherever you switch on failure codes.Tracehas a newrecord_quarantinedevent. BrowserClientrequests now time out after 15 seconds. SettimeoutMsto change it, or0for the old behavior.- Run settings changed through getters now apply from the next run. Before, changing
limitsor the provider’s name mid-run failed that run when it resumed.
From 0.3 to 0.4
- MCP schemas now enforce standard JSON Schema formats such as
uuidanddate-timeon inputs, outputs and elicitation answers. A server output that fails its format after a write ran is treated as a possibly applied action and goes to reconciliation. - Actions have a new
undeliveredstatus for writes that were never sent. Handle it wherever you switch on action status. - Runs that exhaust their retries now add their cost to quotas.
From 0.2 to 0.3
better-sqlite3,pg,mysql2,@google/genai(Gemini) and@langchain/core(chatModelAdapterfrom@edgaralochi/yada/langchain) are optional peer dependencies; install the ones you use.@langchain/google-genai,@langchain/anthropicand@langchain/openaiare no longer used; Anthropic and OpenAI-compatible providers run on the official SDKs.ReadTool.executereturnsContent(a string or an array of text and image parts) instead ofstring.- Hosted
openaialways uses the Responses API; theapioption andYADA_LLM_OPENAI_APIare removed. - Provider-hosted web search is on by default for
anthropic,openaiandgeminiand is billed by the provider; setYADA_LLM_SERVER_TOOLS=noneto turn it off. Cited sources are listed under each answer, andresearchTooladds a research sub-agent that searches several sources and returns a cited report; see sub-agents. - Every provider accepts every model setting and ignores ones it has no equivalent for (Anthropic ignores
temperature; useeffort). chatModelAdaptermoved to@edgaralochi/yada/langchain, andotelTraceris only exported from@edgaralochi/yada/otel.- Storage writes use a new encryption envelope with key ids (
v1records stay readable) and an indexedactivecolumn; stop older Yada versions before upgrading, since they cannot read new records. SetYADA_STORAGE_PREVIOUS_KEYSto rotate keys without downtime. - The service returns 400, 404, 410 and 415 for client errors instead of 503, and JSON endpoints require
Content-Type: application/json. maxFailurescounts consecutive rounds in which every tool call failed, and tools time out afterlimits.toolTimeoutMs(default 120,000).maxContextCharsdefaults to 256,000 and servicehistoryCharsto 128,000.maxRoundsdefaults to 32 andmaxToolCallsto 64, also forrunDurableand worker profiles. SetmaxCostMicrosto bound spend. Durable runs suspended before the upgrade fail withRun configuration mismatchon resume unless their profile pins the oldmaxRounds: 8andmaxToolCalls: 16.