# TextualSessionState

> **Class** in `deepagents_cli`

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

Session state for the Textual app.

## Signature

```python
TextualSessionState(
    self,
    *,
    auto_approve: bool = False,
    thread_id: str | None = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `auto_approve` | `bool` | No | Whether to auto-approve tool calls (default: `False`) |
| `thread_id` | `str \| None` | No | Optional thread ID (generates UUID7 if not provided) (default: `None`) |

## Constructors

```python
__init__(
    self,
    *,
    auto_approve: bool = False,
    thread_id: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `auto_approve` | `bool` |
| `thread_id` | `str \| None` |


## Properties

- `auto_approve`
- `thread_id`

## Methods

- [`reset_thread()`](https://reference.langchain.com/python/deepagents-cli/app/TextualSessionState/reset_thread)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a827cddf72d72e4b17921b8eb445a3bfb0511cb4/libs/cli/deepagents_cli/app.py#L388)