# thread_resume_block

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/resume_policy/thread_resume_block)

Return why `policy` blocks resuming a thread, if it does.

## Signature

```python
thread_resume_block(
    thread_id: str,
    policy: ResumeCutoff | None,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `thread_id` | `str` | Yes | Thread being resumed. |
| `policy` | `ResumeCutoff \| None` | Yes | The active cutoff from `resume_cutoff`, or `None` for no policy. |

## Returns

`str | None`

A user-facing explanation, or `None` when the thread may be resumed.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/6a8d452d70f9bcb978e6bd44831dda093ecbe928/libs/code/deepagents_code/resume_policy.py#L79)