# SessionState

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/config/SessionState)

Mutable session state shared across the app, adapter, and agent.

Tracks runtime flags like auto-approve that can be toggled during a
session via keybindings or the HITL approval menu's "Auto-approve all"
option.

The `auto_approve` flag controls whether tool calls (shell execution, file
writes/edits, web search, URL fetch) require user confirmation before running.

## Signature

```python
SessionState(
    self,
    auto_approve: bool = False,
    no_splash: bool = False,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `auto_approve` | `bool` | No | Whether to auto-approve tool calls without prompting.  Can be toggled at runtime via Shift+Tab or the HITL approval menu. (default: `False`) |
| `no_splash` | `bool` | No | Whether to skip displaying the splash screen on startup. (default: `False`) |

## Constructors

```python
__init__(
    self,
    auto_approve: bool = False,
    no_splash: bool = False,
) -> None
```

| Name | Type |
|------|------|
| `auto_approve` | `bool` |
| `no_splash` | `bool` |


## Properties

- `auto_approve`
- `no_splash`
- `exit_hint_until`
- `exit_hint_handle`
- `thread_id`

## Methods

- [`toggle_auto_approve()`](https://reference.langchain.com/python/deepagents-cli/config/SessionState/toggle_auto_approve)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/88c2b5cb874dc1d093acf54d2a967ba6e085c99b/libs/cli/deepagents_cli/config.py#L1393)