# X_AGENT_TRANSCRIPT_INVALID

## Means

an agent was asked to continue from a transcript it cannot read

## Typical cause

`agent.continue()` was handed a handle that is not the value a `.run()` or `.continue()` of the same agent and prompt version returned: another version or agent, over 2,000,000 characters, messages out of order, a block a tool loop never writes, a tool call nothing answers, or an empty user turn. Refused before anything is loaded, reserved or sent

## Fix

`agent.run(input, { ctx })` — start a new run and store its transcript; pass back exactly that value

[MCP and AI](/error-codes#mcp-and-ai)
