﻿---
title: History
description: Sessions that ended, with their outcome, prompt and timeline.
url: https://docs-v3-preview.elastic.dev/history
---

# History
`gh` lists sessions that ended, grouped by day, with their outcome.
![History: closed sessions on the left, the selected one's prompt and timeline on the right](https://docs-v3-preview.elastic.dev/images/shots/history/history.png)

| Outcome    |                                     |
|------------|-------------------------------------|
| merged     | Its pull request was merged         |
| closed     | Closed by you, with a pull request  |
| abandoned  | Closed without one                  |
| cleaned up | Its worktree was removed by cleanup |

`t` cycles the outcome filter and `/` searches titles, prompts and branches. The detail shows the prompt, the
timeline (started, PR opened, ended) and the agent's resume command.
Heed keeps only the prompt, the session id and the timeline; the transcript belongs to the agent.
See [Reopening](https://docs-v3-preview.elastic.dev/history/reopening) to pick a session up again.