Does Temporal Remember Between Runs? An Event History Replays One Execution Perfectly. The Next Execution Starts With Only Its Input.
Does Temporal Remember Between Runs? An Event History Replays One Execution Perfectly. The Next Execution Starts With Only Its Input. Ask whether Temporal remembers between runs and you get two opposite answers, both correct. Inside one workflow execution, Temporal remembers everything with a fidelity most platforms never approach: crash the worker, redeploy the fleet, wait a month, and the execution resumes at the exact line it left. Between executions, it remembers nothing at all. A workflow
Does Temporal Remember Between Runs? An Event History Replays One Execution Perfectly. The Next Execution Starts With Only Its Input.
Ask whether Temporal remembers between runs and you get two opposite answers, both correct. Inside one workflow execution, Temporal remembers everything with a fidelity most platforms never approach: crash the worker, redeploy the fleet, wait a month, and the execution resumes at the exact line it left. Between executions, it remembers nothing at all. A workflow definition can be executed any number of times, and each new execution begins with the input it was handed and a blank history of its own. The definition is shared. The experience is not.
The event history: a complete log of one execution
Every workflow execution builds an event history, an ordered, durable log of everything that has happened inside it. The first event records the execution starting, along with its input. After that come the events that matter: an activity was scheduled, an activity completed with a specific result, a timer fired, a signal arrived from outside. The Temporal Service persists this history, and the documentation calls it the source of truth for the execution.
That log is what makes the famous durability work. Temporal does not restore state from a snapshot. When a worker picks the execution back up, it re-runs the workflow code from the beginning and replays the history step by step. Each time the code reaches a step already recorded, the recorded result is fed back instead of doing the work again. An activity that already completed does not run twice; its stored result is reused. Replay continues until it catches up with the end of the log, and only then does the execution do genuinely new work.
This is why workflow code has to be deterministic. Replay only rebuilds the right state if re-running the function produces the same sequence of decisions every time, given the same history. Reading the system clock directly, generating a raw random number, or calling the network from inside workflow code would all break the match between code and history, so the SDKs provide replay-safe replacements and push every real side effect out into activities.
Signals, queries, and the living execution
A long-running execution is not sealed. A signal delivers data into a running workflow, and the signal becomes an event in the history, so a human approval, a payment confirmation, or a cancellation request lands inside the execution's memory permanently. A query reads the current state of a running execution from outside. An execution that runs for months, sleeping on durable timers, accumulates a rich, inspectable record of its own life.
Notice the boundary, though, because it is the same boundary every automation platform draws somewhere. The history belongs to one execution. It is addressed by that execution's workflow ID and run ID. A second execution of the same definition, started by the next schedule tick or the next incoming order, has its own history, and it starts empty. Nothing in the platform offers the new execution a view into what its predecessors recorded. Fifty executions of a nightly reconciliation workflow produce fifty complete, self-contained histories, none of which the fifty-first can consult.
Continue-As-New: the honest handoff
Temporal is explicit that histories are meant to stay bounded, and long-running or looping executions are steered toward Continue-As-New. The execution closes itself and immediately starts a fresh execution of the same definition, with a new empty history, carrying forward only the state the code deliberately passes as the new execution's input.
Continue-As-New is a clean mechanism, and it exposes the platform's memory philosophy precisely: whatever deserves to survive must be selected, packaged, and handed over by the developer. Anything not packed into that input, every intermediate observation the execution made along the way, stays behind in the closed history. For deterministic state, a counter, a cursor, a status flag, that packaging is easy. For judgment, it is where the loss happens.
Where an AI step loses the thread
Put an AI agent inside a Temporal workflow, the pattern durable-execution platforms now actively promote, and the split becomes practical. The model call runs as an activity. Its returned result is recorded in the history, replayed faithfully, and available to every later step in that execution. Within the run, the agent's output is genuinely remembered.
But consider a weekly vendor-review workflow. In week one, the agent examines three borderline invoices and clears two of them, with reasons tied to context it worked out during the run. The execution completes. In week two, a new execution starts with fresh input and an empty history. The reasons from week one sit in a closed event log that nothing reads. Unless a developer anticipated the need and wrote those reasons into a database as part of the workflow, week two's agent re-derives the same borderline calls from zero, and can land on the opposite answer without any way to notice the contradiction. The execution memory was perfect. It was also disposable, by design, at exactly the boundary where recurring work needs memory most: between runs.
The layer that lives outside the execution
The fix is not to ask the history to be something it is not. The fix is a memory layer that sits outside any single execution and is shared by all of them. That is the role Vilix AI is built for. It is cloud-hosted, so there is no infrastructure to deploy or maintain, and it connects over MCP, which means the same memory is reachable from the agent inside a Temporal activity, from a chat tool, and from every other automation in the stack. One memory, everywhere the work happens.
What gets stored matters as much as where. Vilix AI keeps full conversation history, not just extracted facts, so the reasoning behind week one's borderline calls, the alternatives weighed, the context that tipped the decision, is what week two's agent retrieves, not a stripped summary of it. The execution still gets Temporal's replay-perfect memory for its own lifetime. The recurring work gets a memory with a lifetime of its own.
The economics of trying it are deliberately small. The free plan is free forever. The Pro plan comes with a 7-day trial and no card is required to start it. And the memory stays under the operator's control: export it or delete it at any time. A workflow platform decides what an execution remembers. It should not be the thing that decides what the operation remembers. Give the executions their history, and give the work a memory that outlives every run.