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

# SessionEndReason

> Represents the reason why a session ended.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

**Namespace:** CloudNimble.ClaudeEssentials.Hooks

**Inheritance:** System.Enum

## Syntax

```csharp theme={null}
CloudNimble.ClaudeEssentials.Hooks.SessionEndReason
```

## Summary

Represents the reason why a session ended.

## Values

| Name | Value | Description |
| - | - | - |
| `Clear` | 0 | Session ended due to a clear command. |
| `Resume` | 1 | Session resumed, ending the previous session. |
| `Logout` | 2 | Session ended due to user logout. |
| `PromptInputExit` | 3 | Session ended due to user exiting from prompt input. |
| `BypassPermissionsDisabled` | 4 | Session ended because bypass permissions mode was disabled. |
| `Other` | 5 | Session ended for another unspecified reason. |


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