

# Disconnecting

When you disconnect, your connection to the WorkSpace ends. Your chats stay on the WorkSpace, and the agent keeps working on its current task. You can disconnect, close the tab, or lose your network and still find your chats when you return.

**Note**  
This feature is in public preview. Features and behavior are subject to change.

## Disconnect from your WorkSpace
<a name="agentic-disconnecting-disconnect"></a>

**To disconnect from your WorkSpace**

1. Choose your name at the bottom of the navigation rail. On a mobile device, open the menu, and then choose your profile button.

1. Choose **Disconnect**.

1. The **Disconnected** page appears. To connect again, choose **Return to sign in page**. To connect to a different WorkSpace, choose **Change registration code**.

You can also close the browser tab. Your connection ends, just as it does when you choose **Disconnect**.

## What happens to your work
<a name="agentic-disconnecting-what-happens"></a>

After you disconnect:
+ Your chats are saved, with their history.
+ A task that the agent is working on keeps running and finishes while you're away. If the agent needs your approval, it waits for you to return. A request to sign in to a service expires after 10 minutes.
+ The agent can also start work on its own while you're away, for example, when a background task finishes. If that work needs your approval, an answer, or a sign-in, the agent waits up to 30 minutes for you to return. After 30 minutes, the agent stops that work.
+ Terminals keep running. When you sign in again, a terminal shows only new output. It doesn't show earlier output again, including output from while you were away.

If your WorkSpace uses the AutoStop running mode, it stops after you've been disconnected for the time that your administrator set. Any task still in progress is canceled. For long tasks, ask your administrator whether your WorkSpace uses AutoStop.

**Note**  
Disconnecting is different from logging off Windows. When you log off, the agent stops, tasks in progress are canceled, and terminals close. Your chats stay in the list. If you want the agent to finish a task while you're away, disconnect. Don't log off. If the WorkSpace restarts, for example during maintenance, tasks in progress are also canceled.

## Network interruptions and reconnecting
<a name="agentic-disconnecting-network"></a>

An interruption of your network connection, such as closing your laptop lid or losing your Wi-Fi connection, can disconnect your session. The page tries to reconnect automatically for up to 20 minutes. While it does, the **Chat** view says **Not connected to the workspace agent**. Messages that you send are delivered when the connection returns. If the page can't reconnect, they aren't sent, so send them again after you sign in.

A reply that was in progress stops at the last text that your browser received and is marked **Interrupted** before the agent finished. The agent keeps working, and the chat shows the finished reply after you reconnect. If the page can't reconnect, the **Disconnected** page appears, and you sign in again.

## When your WorkSpace is disconnected
<a name="agentic-disconnecting-when"></a>

Your WorkSpace is disconnected in the following circumstances:
+ You choose **Disconnect**, or you close the browser tab.
+ Your device shuts down.
+ There's no connection between your device and the WorkSpace for more than 20 minutes.
+ The service ends the connection. This happens in the following cases: you're idle for longer than your administrator allows; someone connects to the same WorkSpace from another browser or device; your sign-in session expires.

When the service ends the connection, the **Disconnected** page tells you why. To continue, choose **Return to sign in page**. If the problem keeps happening, contact your administrator.

## Get your work back
<a name="agentic-disconnecting-get-work-back"></a>

**To get your work back**

1. On the **Disconnected** page, choose **Return to sign in page**.

1. Sign in to the same WorkSpace.

If you sign in from the same browser, your layout and the chat that you had open reopen where you left off. If you sign in from a different browser or device, or you turned off **Reopen where I left off** in **Settings**, the **Home** page appears instead. Your chats are under **Sessions**.