> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# RevertHistoryRewoundNotification

> The session's history was rewound to an earlier node.

```typescript
interface RevertHistoryRewoundNotification extends RevertHistoryRewoundNotification
```

## Properties

**firstRemovedUserMessageId** `null | string`

The `cognition.ai/clientMessageId` of the first user message removed
by the rewind, when the removed boundary step was a prompt. `None`
for question-answer reverts (the boundary is mid-turn) or when the
boundary step could not be resolved; clients fall back to their
optimistic cut in that case.

**method** `"_cognition.ai/revert/historyRewound"` *required*

**revertTargetNodeId** `number` *required*

The node the conversation was rewound to (the new main-chain head).

**sessionId** `string` *required*

The session whose history was rewound.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.