# populate_thread_checkpoint_details

> **Function** in `deepagents_cli`

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

Populate checkpoint-derived fields for an existing thread list.

This is used by the `/threads` modal to enrich rows in one background pass,
so the latest checkpoint is fetched and deserialized at most once per row.

## Signature

```python
populate_thread_checkpoint_details(
    threads: list[ThreadInfo],
    *,
    include_message_count: bool = True,
    include_initial_prompt: bool = True,
) -> list[ThreadInfo]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `threads` | `list[ThreadInfo]` | Yes | Thread rows to enrich in place. |
| `include_message_count` | `bool` | No | Whether to populate `message_count`. (default: `True`) |
| `include_initial_prompt` | `bool` | No | Whether to populate `initial_prompt`. (default: `True`) |

## Returns

`list[ThreadInfo]`

The same list object with missing checkpoint-derived fields populated.

---

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