> For the complete documentation index, see [llms.txt](https://docs.appmixer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmixer.com/changelog/version-6/6/6.5/6.5.5.md).

# 6.5.5

2026-09-18

## New Features

#### AI Copilot <a href="#ai-copilot" id="ai-copilot"></a>

* **Conversations are kept indefinitely and can be recovered per flow** — Copilot conversations have moved from Redis to MongoDB: instead of expiring one hour after the last message, they are kept until they are garbage-collected. A new `GET /copilot/conversations?flowId=` listing lets the Designer restore a flow's conversation from the server even when the client kept no record of it. Retention is set by `copilot.conversationRetentionDays` (default `0`, keep forever) and swept by a garbage-collector job, so the interval can be changed live. Conversations count toward per-user storage quotas and are deleted with the user or flow they belong to.
* **A request survives leaving the flow** — A Copilot turn was bound to the browser's connection, so navigating away, reloading, closing the tab or sleeping the laptop cancelled the model mid-turn — and because the flow is persisted from the first save round, leaving was destructive and left the flow half-written. A turn now runs to completion on the server and reports its state, so the Designer can rejoin a run in progress, show its outcome, and stop it for real. A turn is instead bounded by wall clock through `COPILOT_MAX_RUN_TIME` (default 10 minutes), which ends a run whose provider connection has stalled.
* **Copilot defaults to Claude Sonnet 5, with a configurable reasoning effort** — The default model moves from `claude-sonnet-4-6` to `claude-sonnet-5`. The new `COPILOT_LLM_EFFORT` (`copilot.effort`, default `medium`; `low|medium|high|xhigh|max`) requests adaptive thinking at that effort, but only on models known to accept it — any other model is sent neither field and runs with its own defaults, so the setting can never produce a request the model rejects. The bundled pricing snapshot was also corrected: several models were priced against retired rates (Opus 4.8 over-reported spend threefold) and newer models had no entry at all, which reported a `null` cost.
* **Copilot can verify a modifier chain before it writes one** — Copilot previously built array and nested-object extractions blind, so a wrong function name or shape surfaced only when the flow ran. A new `testModifiers` tool evaluates the modifiers it is about to write against real data and reports the resulting value and any errors, and Copilot can now see the value each variable held in the most recent run.
* **Request headers can be forwarded to an LLM gateway** — For gateways that require per-installation or per-user headers, `COPILOT_FORWARDED_HEADERS` names the headers to forward from the incoming chat request (a trailing `*` matches a prefix) and `COPILOT_LLM_HEADERS` adds static headers to every LLM request. Both are unset by default and editable from the Backoffice. Header values are treated as untrusted input: nothing is forwarded unless an admin names it, credential and transport headers are refused even when the allow-list matches them, values must be printable ASCII and are capped in size and number, and only header names are ever logged.
* **Copilot refuses to build flows that prey on their recipients** — The prompt gains a safety section that outranks operator configuration, a safety check ahead of any tool call, and a refusal path in the request classifier. A refusal is the entire response, with no acknowledging opener that would otherwise be stored as agreement to build.
* **Copilot no longer names the platform or its controls** — Customers embed Copilot under their own brand, and replies referred to Appmixer by name, to screens the model cannot see, and to button labels the host's UI may not have. Product and screen names are gone from its prompt and tool descriptions, and notices now label a component the way the editor labels it rather than by a raw identifier.
* **Better flow building** — Copilot now knows how to branch with `Switch5`, the platform's only multi-way router, including that a routing control carries no data and that a branch must map from the component before the switch. It prefers `Condition` and filter components over JavaScript modifiers for conditional logic, so what it builds stays readable and editable by non-technical users, and must call out any use of code in its follow-up list. Time-based flows are now steered at `SchedulerTrigger` rather than at the cron scheduler, whose configuration the prompt had described inaccurately.
* **Copilot's flow writes are marked in the audit log** — A Copilot write was indistinguishable from the same user editing the flow by hand. Audit entries now carry the writing client and the conversation behind it as structured `source` and `threadId` fields, filterable on `GET /system/audits` and included in its CSV export. Copilot's output reaches a flow from two writers — the server's mid-turn saves and the Designer's own write — and both carry the mark, so the trail has no gaps that would read as manual edits.

#### Designer & SDK <a href="#designer--sdk" id="designer--sdk"></a>

* **A host can open the Copilot panel and submit a prompt** — New `designer.copilot.send(message)` opens the panel and submits a prepared prompt through the same path as the composer and the suggestion chips, so it honours every gate the others do. Intended for hosts that build their own UI around a flow — for example a "Fix it with Copilot" button in a dialog explaining what a template still needs.
* **Per-prompt Copilot events** — Two new widget events let a host attribute individual prompts and flow changes to the signed-in user: `copilot:message-sent` fires once per accepted prompt, and `copilot:flow-applied` fires once Copilot's output is on its target flow. Previously the only event was `copilot:chat-start`, which fires once per conversation and not at all for a conversation resumed from a restored session.
* **A disclaimer below the Copilot composer** — A hint that Copilot's output needs checking is now shown by default. `options.copilot.disclaimer` takes a string to replace the wording (for hosts that do not call their flows "flows"), or `false` to hide it.
* **Copilot's follow-up list is rendered as a checklist** — The "Things to check" block was one opaque block of Markdown, so the actions the user still has to take read as another paragraph of the reply. Each action is now its own item in a highlighted card.

#### Flows <a href="#flows" id="flows"></a>

* **`GET /flows/{flowId}` reports whether a draft has unpublished changes** — A draft response now carries `draft.hasChanges`, computed by remapping the draft onto the origin's identifiers with the same transformation publishing applies and comparing the descriptor, notes, name, wizard, custom fields and categories. Differing identifiers alone never register as a change.

#### Operations <a href="#operations" id="operations"></a>

* **Per-plugin loggers and per-logger log levels** — `LOG_LEVEL` was a single global gate, so turning on one system plugin's debug logs meant putting the whole node into debug — and every system plugin logged through one shared logger, so even a per-logger setting could not have separated them. Each plugin now logs under its own `system-plugin-<name>` logger, and the new `LOG_LEVEL_OVERRIDES` takes a comma-separated list of `<loggerName>:<severity>` pairs that override `LOG_LEVEL` per logger, for example `LOG_LEVEL_OVERRIDES=system-plugin-copilot:debug`.

## Bug Fixes

* **Fixed a hung component creation stalling every message for that component** — Component creation is serialized per component, but the lock had no deadline of its own: only the waiting caller timed out, never the executing creation. A creation hung on a step with no deadline — a token refresh call to a vendor, a wedged broker channel, a slow database — held the lock forever, so every later message queued behind it, timed out after the full three minutes, was retried, and timed out again indefinitely until the worker restarted. Creation is now bounded by the same timeout, which releases the lock and lets the next message start a fresh attempt, and the timeout error now carries the component's identity so these events can be traced in the logs. The same class of failure in manifest loading, which could hang `GET /apps` permanently, is bounded by the new `MANIFESTS_LOAD_TIMEOUT` (default 2 minutes).
* **Fixed an account bound to a component of a different service counting as authenticated** — Any account bound to a component id satisfied the authentication check, whatever service the account belonged to. Editing a component's action in place keeps its id and rewrites only its type, so changing a Slack action to a Gmail one left the Slack account bound: the flow validated clean, the account panel offered no correction, and the component failed at run time against a service its token has nothing to do with. The validator now compares the bound account's service with the component's own and reports a missing account, and the assign API refuses to create such a pairing.
* **Fixed the Wizard never loading the user's accounts** — The Wizard decided whether a flow needs accounts from manifests it had not yet loaded, so the check was always false and accounts were never fetched. Every account field offered **Connect Account** even for a service the user already had connected, auto-connect had nothing to connect, and activating an integration template produced an instance whose components 6.5's flow validation then reported as unauthenticated — with users working around it by authorizing a second, duplicate account. A field with a dynamic option list also no longer loses its value.
* **Fixed Publish Changes staying disabled on a draft that has changes** — The button was gated on a flag describing the editing *session* rather than the draft, and every switch between an origin and its draft is a reload. It was therefore disabled after leaving and re-entering a draft, after a browser reload while editing one, and when opening a draft directly by its id — and it never lit up for a change Copilot made. It now reads the draft's own answer from the server.
* **Fixed Edit on an active flow not opening the draft in an embedded Designer** — The draft was created but never opened, because switching to it was emitted as an event with no built-in default action, so only a host that had bound that event performed the switch.
* **Fixed a page reload after a Copilot turn showing an empty exception screen** — Reloading the page after a turn could leave the Designer behind an exception screen listing no errors, with nothing logged and no failed request; the flow loaded fine on the next reload. Two overlapping loads of the same flow cancel each other by design, and the cancelled one was treating its own cancellation as a failure.
* **Fixed the alerts overlay blocking the canvas** — While a Designer alert was showing, an invisible container spanning the full height of the canvas swallowed every click, drag, selection and wheel event over the right-hand portion of the diagram, and covered part of the bottom toolbar and the expanded logs panel. Because most alerts clear on a timer, this read as the canvas intermittently not responding.
* **Fixed the Spanish UI falling back to English** — Two separate defects. Some copy was written into the component source and so was English in every language, with no way for a host to override it — including the canvas tooltips and menu entries, which the Designer was supplying to the diagram as a frozen English table. Separately, 42 keys the code reads were missing from the Spanish catalog and silently fell back to English, among them the entire Custom Fields dialog, whose Spanish translation existed the whole time under a name the code had stopped using.
* **Fixed a field's validation message appearing twice and leaking into nested fields** — A required inspector field could show the same sentence twice, because a property required in more than one place of the merged schema yields several errors that localize to identical text and this was the one renderer that did not collapse them. More consequentially, a field's hover region contains the fields nested inside it and no leave event fires when moving into a descendant, so a parent's message stayed on screen over a nested field the reader had moved on to.
* **Fixed the Copilot transcript yanking the reader back to the bottom** — While a reply streamed, the transcript was re-pinned to the bottom on every chunk, so a user who scrolled up to re-read an earlier part was pulled back within milliseconds and could not read anything until the run finished. Following is now decided by whether the view is already at the bottom, and both chat surfaces gain a jump-to-latest control.
* **Copilot: fixed being asked to connect accounts the platform had already connected** — Every Copilot save auto-connects the user's accounts, and Copilot then opened its "Things to check" panel telling the user to connect those same accounts, which were visible as connected in the inspector. The save result now states which components have an account rather than leaving it to be inferred from silence, and the rule permitting a connect-the-account item is keyed on that list — so a round that could not complete its validation no longer suppresses a genuinely needed item either.
* **Copilot: fixed a component the user is not allowed to use being built into a flow** — Copilot's component discovery is filtered by ACL, but a component name also reaches the model from the prompt's own reference tables and from the user's chat message, and nothing downstream re-checked. A component the ACL merely disables is still installed, so its manifest resolved, the detail tools described it in full, the save validated cleanly, and the flow was presented as finished — failing only when the user pressed start. Every path a component type reaches is now checked, a save that adds a disallowed component is refused (one the flow already held is grandfathered, so the flow stays editable), and a submit that cannot refuse tells the user the flow will not start.
* **Copilot: fixed invented port names being dropped in silence** — Wiring to a port a component does not declare was pruned server-side with only a log line, so two components the model believed were connected were not, and the save-and-validate loop that exists to catch this never fired. Such wiring is now reported back to the model, and on the API path `GET /flows/{flowId}/validate` returns a structured error instead of a 500. Where the intended port can be identified unambiguously, the links are rewired to it rather than dropped, and a component that nothing feeds is reported too.
* **Copilot: fixed invalid values being written into option fields** — Copilot was shown a component's configuration fields without the values they accept, so it invented values the component rejects at start — `scheduleType: "weekly"` where the Scheduler declares `weeks`. Declared values are now shown to the model and it is held to them. A value that is present but unusable — `null`, a non-scalar, or the empty string — is judged the same way rather than passing through untouched, and is removed rather than left standing, since a field that is present and empty is read by the component exactly like one holding an invented value.

## Performance & Technical Improvements

* **Copilot builds are roughly three times faster** — A build that took 90–120 seconds now takes 30–40. Strict tool schemas made the provider stream the flow-writing tools' output at a quarter of its normal rate, so they are off by default behind `COPILOT_STRICT_TOOLS`; and the final submit now finalizes the descriptor already saved instead of making the model re-emit the whole flow, which was the largest single emission of every build. The submit step also gained guards that catch a call which would strip or unwire components before it is written, rather than after.

{% hint style="warning" %}
System plugins now log under their own `system-plugin-<name>` logger rather than a shared one, which also takes them off the default stdout list: a system plugin's `info` and `warn` records no longer print to stdout. Plugin errors still do, and `LOG_STDOUT_ONLY` setups are unaffected. If you collect system plugin logs from stdout, collect them from Elasticsearch instead, or raise the plugin's logger with `LOG_LEVEL_OVERRIDES`.
{% endhint %}

{% hint style="info" %}
`COPILOT_CONVERSATION_TTL` is retired now that Copilot conversations are stored in MongoDB. Use `copilot.conversationRetentionDays` (default `0`, keep forever) instead. The plugin warns if the old variable is still set in the environment or left behind as a Backoffice configuration row.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.appmixer.com/changelog/version-6/6/6.5/6.5.5.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
