Blank white background with no objects or features visible.

TrueFoundry Named Frost & Sullivan's 2026 Global Transformational Innovation Leader. Read report

Te presentamos TrueForge: el entorno de agentes de código abierto y neutral respecto a proveedores. Un 50% menos de coste. Explorar ahora→

Agent Resumability, Explained: Sessions, Turns, Pauses, and Reconnects in TrueForge

Por Boyu Wang

Published: September 17, 2026

Resuming an agent is not one operation. Production systems must distinguish reconnecting a stream, continuing a paused workflow, and recovering an uncertain external side effect.

Source Framing Note
Source framing. This explainer is based on TrueForge’s public SDK Concepts and Use an Agent documentation as reviewed September 14, 2026. The documented runtime persists sessions, chains turns, exposes ordered events, supports stream reconnection by sequence number, and continues pauses through new turns. The recovery and idempotency patterns below are TrueFoundry’s engineering guidance, not a claim that TrueForge guarantees exactly-once execution across external systems.

“Resume” hides three different recovery problems

Long-running agents fail in more places than a conventional request-response API. A browser can disconnect while the server keeps working. A workflow can intentionally stop because a person, a client-side tool, or an OAuth flow must provide input. A downstream API can time out after committing a mutation. All three situations may be described as “resume,” but they require different state, evidence, and safety rules.

The first is transport recovery: reconnect to a still-running stream without duplicating events. The second is workflow continuation: create a new unit of work that answers a recorded pause. The third is effect recovery: establish whether an external operation committed before deciding whether to retry, compensate, or stop. Treating these as one mechanism creates the most dangerous kind of reliability bug—one that appears successful while repeating or skipping a real-world action.

Reconnect, continue, and reconcile are different operations. Each recovery path needs its own durable identifier and safety rule.
Figure 1. Each recovery path needs its own durable identifier and safety rule.

The three branches deliberately end in different actions. A stream sequence repairs observation, a required-action reference continues the workflow, and an operation ID supports reconciliation; substituting one identifier for another creates duplicates or false completion.

Start with the TrueForge hierarchy

TrueForge documents a hierarchy of Agent → Session → Turn → Event → Delta. An agent is a reusable definition. A session represents one issue or conversation and persists across turns. A turn is one request-and-execution cycle that runs until it finishes or pauses. Events describe what happened during that turn. Some message events produce deltas while streaming; persisted event listings return the merged event rather than each live fragment.

This hierarchy matters because each layer answers a different recovery question. The agent definition establishes the configured model, instructions, tools, and limits. The session supplies durable conversational continuity. The turn provides an execution boundary with a terminal state. Events expose the ordered evidence needed to rebuild a client view. Deltas optimize the live experience but are not separate durable business facts.

TrueForge allows only one turn to run in a session at a time. Turns chain automatically, so the application does not resend the complete history on every request. Creating a new turn while another is still running cancels the active turn. That behavior is useful, but it means a UI must not translate every impatient click into a new turn without an explicit product decision.

Transport reconnection is not workflow continuation

A live turn uses a Server-Sent Events stream. Each streamed item carries a sequence identifier that the client can retain. If the connection drops, the client can subscribe again after the last processed sequence number. The server can then replay later events from the same running turn. A correct client stores events by event ID and merges deltas into their base message event, so retransmission does not duplicate visible output.

That is transport reconnection. The original turn has not paused for a business decision; only the network connection was interrupted. The server may continue executing while the client is absent. A reconnecting UI therefore asks, “Which events from this existing turn have I not rendered?” It should not create another turn or reissue the original user instruction.

Once a turn has finished, its persisted events can be read again to reconstruct the settled history. That is replay of evidence, not re-execution of the model and tools. The distinction is important for incident analysis: the same stored sequence should produce the same reconstructed view, but an attempt to run the task again may encounter different models, tools, credentials, and external state.

Durable state surrounds an ephemeral stream. Sessions and turns persist; live deltas optimize delivery and merge into settled events.
Figure 2. Sessions and turns persist; live deltas optimize delivery and merge into settled events.

The figure separates durable hierarchy from delivery mechanics. Deltas belong to the live stream and are merged into base events, while sessions, chained turns, terminal states, and persisted events provide the settled record used after reconnect or restart.

Pauses are explicit runtime states

A turn can end with required actions rather than a final answer. TrueForge documents three important cases: a gated tool needs approval, a client-side tool needs a response, or an MCP server needs authorization. The terminal turn state identifies the pending items. The application satisfies them by creating a new turn containing the matching approval, tool response, or authentication continuation.

This is workflow continuation, not stream reconnection. The paused turn is already settled. The next turn preserves causal continuity by referring to the pending action and by chaining onto the session’s history. A single turn can surface more than one pending item, including pauses from parallel subagent threads, so clients should collect the complete required-actions set instead of assuming there is exactly one.

For approval and response pauses, the source event links the pending item to the model message that proposed the tool call. That link lets the application show the reviewer the tool name and arguments that created the checkpoint. It is also the basis for verifying that the continuation answers the intended call rather than a visually similar one.

Build a resumability contract

Try now.

One gateway for all your models, MCP servers, and agents.
No credit card needed.

Inscríbase
Tabla de contenido

Controle, implemente y rastree la IA en su propia infraestructura

Reserva 30 minutos con nuestro Experto en IA

Reserve una demostración

La forma más rápida de crear, gobernar y escalar su IA

Demo del libro
Summarize with
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Descubra más

No se ha encontrado ningún artículo.
September 17, 2026
|
5 minutos de lectura

Agent Resumability, Explained: Sessions, Turns, Pauses, and Reconnects in TrueForge

No se ha encontrado ningún artículo.
September 16, 2026
|
5 minutos de lectura

Datadog MCP Server: Tools, Setup, and How to Connect It Safely

No se ha encontrado ningún artículo.
September 16, 2026
|
5 minutos de lectura

Notion MCP Server: Tools, Setup, and Scoping It Safely

No se ha encontrado ningún artículo.
September 16, 2026
|
5 minutos de lectura

Salesforce MCP Server: Tools, Permissions, and How to Connect It Safely

No se ha encontrado ningún artículo.
No se ha encontrado ningún artículo.

Blogs recientes

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.
Realice un recorrido rápido por el producto
Comience el recorrido por el producto
Visita guiada por el producto