# `Codex.Events.TurnAborted`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.18.1/lib/codex/events.ex#L1266)

Core/legacy event emitted when a turn is aborted, including optional timing.

Current app-server interruption instead terminates through `TurnCompleted`
with an interrupted status.

# `t`

```elixir
@type t() :: %Codex.Events.TurnAborted{
  completed_at: integer() | nil,
  duration_ms: integer() | nil,
  reason: String.t() | atom() | map() | nil,
  started_at: integer() | nil,
  turn_id: String.t() | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
