> 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.9.md).

# 6.5.9

2026-10-06

## Bug Fixes

* **Publishing a draft is authorized against the flow it overwrites** — Publishing a draft now requires update rights on the origin flow, and `originFlowId` must name a flow the caller can read.
* **Caller-supplied log aggregations are restricted to the caller's own query scope** — `POST /logs` accepted aggregation types that can read outside the scope the query was authorized for. Only aggregations that stay inside it are accepted now, and a single log record can be read only from the log indices. The Designer's own requests are unaffected.
* **JavaScript modifiers are now bounded by a time limit** — A `g_javascript` modifier had no execution deadline, and it is evaluated synchronously, so one that looped or simply ran long blocked the node evaluating it — an API node serving `POST /modifiers/transform`, or the worker running the flow. Every evaluation is now bounded by the new `ISOLATE_TIMEOUT` (default 1 second).
* **Fixed a component reading a half-written file and failing with a missing function** — Component files were rewritten in place, which truncates the file before writing it, while components already running re-read their files from disk on every message. A shared service or module file could therefore be read while it was empty, leaving the component with nothing exported and failing with an error such as `client.x is not a function` until a retry. Files are now written beside the destination and moved into place, so a reader sees either the old file or the new one, never a partial one.
* **Fixed concurrent account assignments failing with a 500** — Assigning an account to a component ran as a read followed by an insert, so two concurrent `PUT /auth/component/{componentId}/{accountId}` calls could collide on the unique index and answer 500. The assignment is now a single upsert, and a lost insert race is retried once.
* **Fixed a failing message in the slow queue being retried every few seconds forever** — A slow-queue dispatch that failed was re-attempted on every pass of the job, indefinitely, until someone deleted the message by hand. It now retries on the standard backoff intervals, honouring the component's own retry settings, and is stored in `unprocessedMessages` once those are exhausted — where it can be inspected and replayed like any other unprocessed message. Errors a retry cannot fix end the attempt immediately, and every failure is logged against the component with the flow, component and message identifiers.
* **Fixed a message using an unknown modifier being retried until it was given up on** — A modifier name the platform does not know failed the message in a way that looked retriable, so it was retried through every attempt before being stored as unprocessed, and nothing in the logs named the modifier. Such a message is now cancelled at once, with the offending modifier and the field it sits in named in the error, and flow validation reports it at save time — so it surfaces in the Designer, on flow start and in Copilot's own save instead of at run time.
* **Fixed an unreadable stack-overflow error from a cyclic object** — A cycle in a walked structure recursed until the stack was exhausted, and the resulting error was undiagnosable: thousands of identical frames, and a component type that could name the wrong component. Deep walks now detect cycles and are bounded by a maximum depth (`DEEP_WALK_MAX_DEPTH`, default 200), reporting the call site, the depth and the path instead. Component creation failures also record which step they failed at.
* **Fixed a module-level `auth.js` being loaded from superseded copies** — The query for a module-level authentication file dropped its condition on file status, so it picked up both the copies kept during the grace period after an upload and the files a failed upload leaves behind. After a single re-upload, every module-level file came back twice.
* **`POST /variables/{flowId}/fetch` answers 404 for a component the flow does not hold** — It answered 500 with the same message, which made uptime monitoring count an ordinary bad request as a server error.
* **A failed login for an unknown user is now recorded in the audit log** — Only failures for users that exist were recorded.
* **Copilot: fixed a flow being reported as saved and validated when it could never start** — Flow start refuses a transformation field that the receiving component's input port does not declare, but the validation endpoint Copilot calls let it through. Copilot now reports such fields itself, and tells the user at submit that the flow will not start.
* **Copilot: fixed a link that maps nothing being written without its container** — A link node that carries no mapping lost the empty structure the descriptor expects, including when only part of a flow is saved.
* **Copilot: fixed incomplete and untyped lists of an array's item fields** — The item fields of a list were cut off at eight with no indication that anything was missing, and carried no types. Up to thirty are now listed with their types, a cut list says how many were left out, and a new expansion option lists every field of one array's items on request.
* **Copilot: fixed the filter components being described with ports and fields they do not have** — The reference table named fields and output ports that do not exist on `Equal`, `NotEqual`, `Contains` and `Range`, so flows built with them were rejected at run time. The table now matches what those components declare.
* **Fixed the Copilot panel disappearing after a single failed check** — Whether to offer Copilot was decided by one request made once per Designer, with no timeout and no retry, so a dropped connection, a passing 5xx or an expired token hid it until the Designer was created again, and a hanging request hid it for as long as it hung. The check is now retried with backoff, and tried again when the window regains focus, the tab becomes visible or the connection returns.

## Performance & Technical Improvements

* **Broker connections are shared per process** — Each process opened its own broker connections per client; it now keeps one consuming and one publishing connection, with each client holding its own channels on them. On a nine-pod deployment this took the connection count from 44 to 18, and a rollout surge adds four connections instead of ten — which matters where the broker enforces a connection limit. Reconnection now backs off exponentially with jitter instead of retrying at a fixed interval, shutdown closes the connections after draining, and a connection the broker refuses during the handshake now reports its reason, for example `530 NOT_ALLOWED … connection limit (50) is reached`.
* **Much lower idle database load from the scheduled jobs** — The scheduled jobs kept sending a steady stream of database commands even when nothing was running. They now poll less often, sort on fields their indexes serve, and delete in batches.

{% hint style="warning" %}
Three requests that used to be accepted are now refused:

* Publishing a draft into a flow the caller does not own, or creating a flow whose `originFlowId` names a flow the caller cannot read, answers `403`.
* `POST /logs` answers `400` for an aggregation type that is not allowed — `global`, `top_hits` and `scripted_metric` among them — and for scripts outside `bucket_selector` and `bucket_script`.
* A `g_javascript` modifier that runs longer than `ISOLATE_TIMEOUT` (default 1 second) now fails with `Script execution timed out`. Raise it if you have modifiers that legitimately take longer.
  {% 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.9.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.
