AIGenLab
EN

UPDATEn8n n8n@2.50.4

n8n 2.50.4: reconnect links and files tied to their run

Version & typen8n@2.50.4 · Feature
In short

n8n 2.50.4 is a patch on the 2.50 line: a rejected refresh token no longer leaves callers stuck, model errors that retrying cannot fix stop after one attempt, and a file a trigger stores before its run exists is attached to that run. Teams on queue workers or end-user OAuth2 credentials should read it first.

What changed in this release

19 checkpoints in 5 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.

Credentials and connections

  • A refresh token the provider rejects is deleted from the caller's stored connection
  • The next call returns 428 with a connect link instead of failing with 500
  • Only the rejected token is deleted, so a token from a reconnect or a parallel refresh stays
  • The call that receives invalid_grant still fails; recovery starts with the next call

Model call retries

  • Context overflow and HTTP 422 stop at the first failure instead of retrying
  • Such errors come back as a workflow warning after the first attempt instead of an unexpected error
  • Temporary failures keep their existing retry behaviour

Run artifacts

  • In database mode a file a trigger stored early gets the execution ID when the run ends, so the editor can view and download it
  • In filesystem and s3 mode the file moves from the temporary path to its execution's path
  • This also covers runs that end on a queue worker and triggers that are not a Webhook node
  • Evaluation runs store one output per test case, including the default Set Outputs

AI Builder approvals

  • Assistant threads that build or edit an agent follow the approval mode you picked
  • These threads and the Agent Builder assistant panel show the approval mode selector again
  • Publishing an agent under Approve for me still asks, and tool approvals in a draft agent's test run still show a card
  • Two new judging lines: saving an edit does not run it, and an added send step is judged by whether you asked for it

Expression runtime

  • lodash isEqual, uniqWith and random plus md5, jssha and jmespath now start up on first call
  • Creating an isolate on isolated-vm drops from 4.73 ms to 3.56 ms (25%)
  • With N8N_EXPRESSION_ENGINE_COMPILE_CACHE=true it drops from 2.31 ms to 1.28 ms (45%)
  • unique and randomItem set up lodash on first call, so a replaced built-in makes them throw

Read the original announcement

On this page
  1. Release inventory
  2. This patch only changes w…
  3. A rejected refresh token…
  4. Context overflow and HTTP…
  5. A file a trigger stored e…
  6. Evaluation runs keep per-…
  7. Assistant threads that bu…
  8. Rarely used expression li…
  9. On the same steps Dify le…
  10. 2.50.3 shipped two editor…
  11. Release analysis
  12. Questions
  13. Sources & method

ContextThis patch only changes what happens after a failure and after a run ends

When a workflow misbehaves the cause is rarely a wrong node setting. It is usually an expired credential, a model error, or a file nobody can find afterwards. Every change here sits there: a revoked OAuth2 grant, a model error retrying cannot fix, a file a trigger stored before its run had an ID, empty evaluation outputs, and the cost of a fresh isolate.

No node parameters and no flow structure change. What changes is how a failure is reported, which run owns a file, and where an output is stored. Instances that only run manual executions with admin-managed credentials barely notice; those on end-user credentials or queue workers feel it at once.

The changes fall into five groups: credentials and connections, model call retries, run artifacts, AI Builder approvals, and the expression runtime. The figure below shows how many rows each group holds: the five groups land at three or four rows each, with run artifacts level with the rest. The sections that follow take each change in turn.

How this release spreads across five groups: credentials, model call retries, run artifacts, AI Builder approvals and the expression runtime. The data comes from the update list on this page.
Where the 19 grouped changes landWhere the 19 grouped changes landCredentials and connections4Model call retries3Run artifacts4AI Builder approvals4Expression runtime4
AIGenLab original

A rejected refresh token is deleted and the caller gets a connect link back

  1. Connect link: on invalid_grant n8n deletes the caller's stored token, so the next call returns 428 with a connect link instead of 500.
  2. Only the right token: n8n deletes it only while it still holds the rejected one, so a token from a reconnect or a parallel refresh survives.
  3. That call still fails: the call that got invalid_grant reports the reconnect error because its execution already started; the next call recovers.

Context overflow and HTTP 422 stop after one attempt, temporary failures still retry

  1. No retry: context overflow and HTTP 422 cannot be fixed by sending the same request again, so the attempt ends at the first failure.
  2. Reported as a warning: the provider error comes back as a workflow warning after the first attempt instead of an unexpected error.
  3. Boundary: temporary failures keep their existing retry behaviour; this release does not change them.

A file a trigger stored early is attached to its run once the run ends

  1. database mode: the binary_data row gets the execution ID, so View and Download in the editor stop returning 404.
  2. filesystem and s3 mode: the file moves to its execution's path, so pruning finds it; this also covers queue workers and non-Webhook triggers.
  3. Boundary: all three storage modes are covered; Engine v2 is out of scope.

Evaluation runs keep per-test-case outputs, including queue mode with offload on

  1. Per case: a missing operation on the Evaluation node is now treated as Set Outputs by every caller, so each test case keeps its own output.
  2. Trigger: outputs were lost only when EXECUTIONS_MODE=queue and OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true were both on.
  3. Scope: the change sits in output capture only, so evaluation flows and metric nodes stay as they are.

Assistant threads that build agents follow your approval mode, publishing still asks

  1. Selector back: agent-building threads follow your picked mode, not Ask for approval, and the selector shows in the chat input and Agent Builder panel.
  2. Two places still ask: publishing an agent under Approve for me always asks, and tool approvals in a draft agent's test run keep their card.
  3. Two new judging lines: saving an edit does not run it, so an added send step is judged by whether you asked for it; unexpected writes still ask.

Rarely used expression libraries load on first call, so isolates start faster

  1. On demand: the setup of lodash isEqual, uniqWith and random, plus md5, jssha and jmespath, moves from bundle load to first call.
  2. Vendor numbers: isolate creation on isolated-vm drops from 4.73 ms to 3.56 ms (25%), and from 2.31 ms to 1.28 ms (45%) with the compile cache on.
  3. Cost: unique and randomItem set up lodash on first call, so a replaced built-in such as Object.keys makes them throw.

On the same steps Dify leaves the choice to the node panel and LangGraph to code

All three tools have a mechanism for these steps; they place it differently. n8n moves the judgement into the runtime, Dify turns the behaviour after a failure into a node option, and LangGraph takes a retry policy per node in code.

Which one to pick depends on who edits the flow: code with fine control per exception type fits LangGraph at the cost of a policy per node, a canvas fallback is quicker with a Dify fail branch at the cost of configuring every node, and this patch saves that configuration but keeps the judgement out of your hands.

Read the table by its first column: who decides each step, and whether that decision sits in configuration, in code or in the runtime.

UpdateDify 1.20.0LangGraph 1.2.24 / LangSmithn8n 2.50.4
Permanent errors retried againLLM, HTTP, Code and Tool nodes each pick none, a default value or a fail branch; the branch reads error_typeRetryPolicy per node; by default it retries everything except ValueError, TypeError, OSError, and HTTP clients retry only on 5xxContext overflow and HTTP 422 stop at the first failure and come back as a workflow warning
Which run owns an artifactOne Run History entry per run, at application and node level; a node panel shows that node's last input and outputA checkpointer writes the graph state of a thread as checkpoints a run can resume fromA file a trigger stored early gets the execution ID when the run ends, so the editor can view and download it
Where each case's result is storedA batch run executes one CSV row at a time and can export all results as a CSVOn the LangSmith side the evaluator scores a single example's inputs, outputs and reference outputsEvaluation runs store one output per test case, and a missing operation counts as Set Outputs
Who approves an assistant's changeThe build chat edits the panel; Apply keeps it, Discard drops it, the first Apply leaves build_note.mdA node calls interrupt() to pause for a person and resumes with Command(resume=...)Threads that build agents follow the user's approval mode; publishing under Approve for me still asks

2.50.3 shipped two editor changes; this patch touches five mechanisms at once

On this line the previous patch was 2.50.3 (2026-11-27) and it stayed in the editor: a stopped agent chat shown as a status line, thinking and tool calls folded into one trace. For instances already on 2.50.3 this release adds the five runtime fixes.

Read the credential and file rows first: they decide whether you can recover on your own and whether disk use grows quietly. The expression engine row is about isolated-vm, where isolates start faster and use less memory.

The rows that stop after one attempt deserve a closer look: on 2.50.3 those errors were retried and ended as an unexpected error, while 2.50.4 returns them as a workflow warning after the first try. In reconciliation flows, resending a request usually costs more than failing once, which is what this change targets.

2.49.9, shipped the same day on the stable channel, carried the same runtime fixes, so an instance coming from 2.49.9 sees only the approval change as new.

Feature2.50.3 · 2026-11-272.50.4 · 2026-11-30
Caller OAuth2 refresh token rejectedThe rejected token stayed stored and webhook calls returned 500 with no connect linkThe token is deleted on invalid_grant and the next call returns 428 with a connect link
Context overflow and HTTP 422Retried like any other failure and reported as an unexpected errorReturned as a workflow warning after the first attempt instead of an unexpected error
File a trigger stored early (database mode)Only a placeholder execution ID, so View and Download returned 404The execution ID is written when the run ends, so the file can be viewed
File a trigger stored early (filesystem and s3)Stayed on the temporary path, where pruning never found itMoves to its execution's path, on queue workers and non-Webhook triggers too
Evaluation output per test case (queue with offload)Each test case stored an empty outputA missing operation counts as Set Outputs, so the real output is stored
Approval in threads that build agentsAlways Ask for approval, with no selector in the chat inputFollows the user's mode, with the selector in the thread and the Agent Builder panel
Expression runtime library loadingEvery isolate ran the setup of lodash, md5, jssha and jmespathLoaded on first call, so isolate creation drops from 4.73 ms to 3.56 ms

Release analysisQueue workers and end-user credentials should upgrade first; manual-only instances can wait

Three kinds of instance are affected most: those calling out with end-user OAuth2 credentials, those on queue workers with manual-execution offload on, and those reading evaluation outputs per test case. In all three the failure happens after a run, where people used to dig through logs.

Set against comparable tools: Dify makes the behaviour after a failure a node option for whoever builds the flow, and its branch sorts errors by error_type; LangGraph takes a retry policy per node in code and by default skips ValueError or OSError. This patch moves the judgement into the runtime, saving per-node configuration but taking the per-node override away.

Our advice: upgrade to 2.50.4 first, then look at the data. Under filesystem and s3 mode, temporary files from earlier runs carry no execution ID, so pruning never reaches them. That is a station claim we have not tested; back up binary_data and the storage directory first.

What not to do: do not treat 428 as a success code in monitoring, it means the caller has to reconnect; and do not touch Engine v2 settings, since the fix description puts it out of scope. To verify, revoke a test end-user grant and watch the second call.

AIGenLab views

Not independently tested

Instances that call out with end-user OAuth2 credentials should put 2.50.4 ahead of their usual cadence, since a rejected token no longer keeps webhooks on 500.

Based on the behaviour before the fix and the 428 connect link as the fix description records them; we did not reproduce it on an instance.

Under filesystem and s3 mode someone has to clear temporary files left by earlier runs after upgrading, because pruning by execution ID never reaches them.

The fix description states pruning deletes by execution ID, while the old files stayed on the temporary path without one; a station claim, not tested independently.

The isolate-creation gain sits on isolated-vm, so QuickJS deployments need not upgrade for that speed number.

The PR states that isolated-vm gets the full gain and gives the 4.73 ms to 3.56 ms readings; a station claim, not tested independently.

Questions

Do I need to change workflow parameters for 2.50.4?
No. This release changes how a failure is reported, which run owns a file, and where an output is stored; node parameters and flow structure stay as they are. After upgrading, run one webhook workflow to confirm callers can still connect.
Why were evaluation outputs empty on the previous version?
When the Evaluation node keeps its default operation, the editor does not store that parameter, and output capture did not treat the node as Set Outputs, so it stored an empty object. It only showed with queue mode plus manual-execution offload; in regular mode the run in the main process filled in the default and hid it.
What needs manual work after upgrading?
Under filesystem and s3 mode, temporary files that triggers wrote before the upgrade carry no execution ID, so pruning never reaches them and someone has to clear them once, a station claim we have not tested. In database mode the rows get the execution ID when a run ends, so nothing manual is needed there.

Official sources and scope

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.