Documentation menu

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-delivery header. Run cost is charged exactly once per run. Trace has a new webhook_failed event.
  • Any worker may deliver any webhook or charge any run, so give every worker the same webhooks and quota options. A worker without webhooks completes entries without sending them, so those events are lost; a worker with different quota settles runs against its own limits.

From 0.6 to 0.7

  • MCP tools annotated readOnlyHint are no longer exposed as reads unless listed in readTools or the server sets trustAnnotations: true. Annotations come from the remote server and are untrusted.
  • Webhooks send x-yada-timestamp and 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 [], so remember in a decision is ignored unless you enable a scope.
  • Deciding an expired approval returns 409 instead of 202. Cancelling a reconciling run ends it cancelled with the action unknown; a run reconciling for over an hour fails with dependency_failed. A malformed list cursor returns 400.
  • DeepSeek and local providers reject effort, serverTools, promptCache, thinkingDisplay and webSearch instead of ignoring them. Malformed tool-call JSON from a model becomes an invalid_arguments tool error instead of failing the run.
  • Custom widget renderer output is sanitized with an allowlist that removes SVG, forms, inputs and style attributes.
  • The terminal coding agent hides YADA_* variables from bash, asks before auto-edit writes under .git or .husky, ignores approval answers typed before the prompt, and skips invalid or duplicate skills with a warning.

From 0.5 to 0.6

  • Running yada with no arguments now starts the terminal coding agent instead of printing help. Use yada --help for help; yada init and yada qualify-mcp are 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.title and the --yada-* variables to change these, or unstyled to drop the styles.
  • The approve button is now green and decline red. Set --yada-approve and --yada-decline to keep your own.
  • Runs have a new failure code, corrupt_record. Handle it wherever you switch on failure codes. Trace has a new record_quarantined event.
  • BrowserClient requests now time out after 15 seconds. Set timeoutMs to change it, or 0 for the old behavior.
  • Run settings changed through getters now apply from the next run. Before, changing limits or 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 uuid and date-time on 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 undelivered status 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 (chatModelAdapter from @edgaralochi/yada/langchain) are optional peer dependencies; install the ones you use.
  • @langchain/google-genai, @langchain/anthropic and @langchain/openai are no longer used; Anthropic and OpenAI-compatible providers run on the official SDKs.
  • ReadTool.execute returns Content (a string or an array of text and image parts) instead of string.
  • Hosted openai always uses the Responses API; the api option and YADA_LLM_OPENAI_API are removed.
  • Provider-hosted web search is on by default for anthropic, openai and gemini and is billed by the provider; set YADA_LLM_SERVER_TOOLS=none to turn it off. Cited sources are listed under each answer, and researchTool adds 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; use effort).
  • chatModelAdapter moved to @edgaralochi/yada/langchain, and otelTracer is only exported from @edgaralochi/yada/otel.
  • Storage writes use a new encryption envelope with key ids (v1 records stay readable) and an indexed active column; stop older Yada versions before upgrading, since they cannot read new records. Set YADA_STORAGE_PREVIOUS_KEYS to 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.
  • maxFailures counts consecutive rounds in which every tool call failed, and tools time out after limits.toolTimeoutMs (default 120,000).
  • maxContextChars defaults to 256,000 and service historyChars to 128,000.
  • maxRounds defaults to 32 and maxToolCalls to 64, also for runDurable and worker profiles. Set maxCostMicros to bound spend. Durable runs suspended before the upgrade fail with Run configuration mismatch on resume unless their profile pins the old maxRounds: 8 and maxToolCalls: 16.