---
id: "terminal-retomar-sessoes"
titulo: "Resuming after a restart"
resumo: "What comes back when you close and reopen the app: tab arrangement, panels and history — and why the previous process does not return."
idioma: "en"
tipo: "conceito"
categoria: "telas"
aplicavelDesde: "0.0.16"
capabilities: ["terminal.sessions.restore"]
estadoEditorial: "aprovado"
nivelEvidencia: "artefato-distribuido"
refFonte: "27574c339b58316408f6be2d62169d59041d07bf"
revisaoFonte: "2026-09-24"
revisor: "mantenedor (v1, 2026-10-03)"
rota: "/docs/en/ferramentas/terminal/retomar-sessoes/"
fonte: "pt-br/ferramentas/terminal/retomar-sessoes.md"
caminhoPublico: "docs/publica/en/ferramentas/terminal/retomar-sessoes.md"
hashFonte: "sha256:7a264a0d13cc44b3404c5b673c2fb6cc0f4a16c84a44babd2e05ef178eb2c757"
hashDestaPagina: "sha256:25ecd9944cd6a6ebf6e31dae640d25bf587b094eb13721964d1981bd84ba3cdf"
traducaoAssistidaPorIA: true
traducaoDesatualizada: false
corpoRetido: false
---
<!-- traducao-assistida-por-ia: idioma=EN fonte=pt-br/ferramentas/terminal/retomar-sessoes.md fonteHash=sha256:7a264a0d13cc44b3404c5b673c2fb6cc0f4a16c84a44babd2e05ef178eb2c757 estado=atual -->

The Terminal screen is restored, not resurrected. That distinction explains everything you see when you reopen the app.

## What comes back

- **The arrangement:** tabs, panels, divisions, sizes and titles.
- **The history:** the retained content is redrawn in the panel.
- **The restoration notice:** the restored panel receives a banner with the text `--- session restored ---`, so you do not mistake redrawn history for new output.

## What does not come back

- **The process.** The previous session died with the app. What you have is a new session, with the history drawn over it. A command in progress does not continue; a development server that was running there does not come up on its own.

That is why the restoration banner exists: without it, redrawn history would look like a live process.

## The history ceiling

The history kept for restoration is **limited by bytes**, in three layers: what each session can store, what is replayed back, and the total for storage. When the volume exceeds the limit, **the oldest part is cut**.

Practical consequences:

- Very long output does not come back whole — the beginning is the first to go.
- Sessions that write a lot (verbose builds, continuous logs) lose their start sooner.
- Cutting per workspace means a noisy session can affect what is left for the others.

## When saving the state fails

If the session state cannot be written, the app **warns with its own dialog** — not with a generic error. A write failure means that panel will have no restoration: the new session is born without the previous history.

The failure dialog offers the path to the disk-space analyzer, because the common cause is space or data volume.

## Tabs that leave the visible area

Tabs out of view go to **rest** and are rehydrated when you return to them. This reduces the cost of keeping many tabs open without closing anything — but the same rule applies: on return, you find the retained history, not the process.

## Replay: what can go wrong

The history replay is guarded by a policy that avoids dumping an already-dead run's screen into the history. When that protection does not cover the case, the visible effect is old history appearing in the middle of current output — if you see that, it is replayed history, not output from the process.

## If restoration is not what you want

- **Want to continue where you left off in a process?** There is no path: the previous session does not come back. Recreate the session and continue from the state that is on disk.
- **The panel does not open at all?** See [When the terminal does not open](/docs/en/ferramentas/terminal/quando-nao-abre/).
