---
title: "Editor sessions"
description: "Understand how Alpacon editor sessions work. Learn how to return to an open editor, what happens when the connection drops, and how and when an editor closes."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# Editor sessions

An editor keeps running on the server after you close its browser tab or lose your connection. You can return to it until it closes; once no browser tab is connected to it, it closes on its own after about an hour by default.

## Return to an editor

- **Reload the tab or open the editor's address again.** Alpacon reconnects you to the same editor, in another tab, browser, or device as well, as long as you're signed in as the same user.
- **Open it from the work session.** On the session's detail page, the **Resume** tab lists your open editors and terminals. Click **Reconnect** on an editor to open it in a new tab. See [Open terminals and editors](/use/work-sessions/detail/#open-terminals-and-editors).

Only the person who opened an editor can reconnect to it. Reconnecting checks the same conditions as launching: the work session must still be **Active**, and the server must be connected and have the code editor enabled.

## Connection lost

When the editor loses its connection, a notice covers the editor:

| Notice | When it appears |
| --- | --- |
| **Network connection lost** | Your device went offline. |
| **Editor connection lost** | The connection to the editor closed, for example after a network interruption, because you opened the same editor somewhere else, or because the editor itself was closed (such as terminated from the work session). |

The notice goes away on its own once the connection comes back. Otherwise, click **Reconnect**. If the editor is still running on the server, you return to the same editor; if it has closed, you land on the error screen below. Save your work regularly anyway: changes you haven't saved aren't guaranteed to come back.

When the editor can't be reconnected, the **Connection error** screen shows why. A network failure doesn't lead here: the notice stays up so you can try again. Common reasons:

- **The editor has closed.** Launch it again from the work session.
- **The work session is no longer active or has expired.** Request a new session.
- **The server isn't connected.** Wait for it to come back online, then click **Retry**.
- **The code editor was turned off on the server.** Ask someone who manages the server to turn it back on. See [Tunnel and code editor](/use/servers/manage/#tunnel-and-code-editor).

**Back to servers** takes you back to the server list.

## Close an editor

Closing the browser tab doesn't close the editor right away. To close it, open the work session's **Resume** tab and click **Terminate** on the editor. It closes right away, without a confirmation step.

An editor also closes when:

- The work session ends, whether you terminate it or it expires
- The server's agent loses its connection. The editor doesn't come back when the agent reconnects, so launch a new one.
- No browser tab has been connected to it for about an hour (by default); while at least one tab is open, it keeps running even if you aren't typing
- Your [**Websh session timeout**](/use/settings/websh/#session-management) runs out, counted from when you launched the editor and no longer than the workspace's [**Websh session timeout**](/use/workspace/settings/general/); using the editor or reconnecting to it doesn't extend this time

An editor that closed because no tab was connected may still be listed in the work session's **Resume** tab, but opening it shows a "Bad Gateway" page instead of the editor. Terminate it there and launch a new one.

Once an editor has closed, launch a new one from the work session.

## Tips

**Save frequently:**
The editor does not auto-save. Save your changes regularly so nothing is lost if the connection drops or the editor closes.

**Close the editor when done:**
Close the editor from the work session when you're finished. Closing only the browser tab leaves it running on the server for about an hour by default.

**Check server status before connecting:**
Ensure the server shows **Online** status before launching the editor. Offline servers cannot establish editor connections.

## Related docs

- [Connect to editor](/use/work-sessions/editor/connect/)
- [Editor interface guide](/use/work-sessions/editor/interface/)
- [Terminal session management](/use/work-sessions/terminal/sessions/)

Source: https://docs.alpacax.com/use/work-sessions/editor/sessions/
