> ## Documentation Index
> Fetch the complete documentation index at: https://docs.piebald.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing chats

> Seamlessly move chats from one worktree to another and duplicate chats.

## Relocating chats

Available in [Piebald Pro](https://piebald.ai/pricing)

Sometimes you might create a chat in one worktree, and work with the AI to build a plan, but then you want to implement that plan in the same chat but in a different worktree.  Piebald allows you to **relocate** chats from one directory to another, which will move a chat to the specified directory and automatically rewrite all occurences of the old path to the new path across all user and AI messages and tool call inputs and outputs.

To duplicate a chat, click the  icon on a chat in the sidebar and choose ** Relocate.**  You'll be prompted to select a target directory.  Once you select one, Piebald will update the entire chat history to point to the new path, and the AI will never know that it worked in the old directory.

You can also relocate a chat by manually editing the directory path in the config sidebar.  To do that, open the chat config sidebar by clicking the  icon in the top-right corner of the chat view, and edit the **Working Directory** field, and click **Relocate:**

![Screenshot of the 'Working Directory' section of a chat's config sidebar, showing a modified path of 'C:\new\directory\\' and the existing 'Change' and the new 'Relocate' buttons.](https://mintcdn.com/piebald/IoW_K4K3FWzhbrMB/imgs/v0-1-7/relocate_working_directory.png?fit=max\&auto=format\&n=IoW_K4K3FWzhbrMB\&q=85\&s=957c21eef2d857e14db36bb395bb41ba)

Chat relocation requires [Piebald Pro](https://piebald.ai/pricing).

## Duplicating chats

Available in [Piebald Pro](https://piebald.ai/pricing)

Piebald also allows you to duplicate chats.  All user and AI messages and all tool calls are preserved in the copy.

To duplicate a chat, click the  icon on a chat in the sidebar and choose ** Duplicate.**

Chat duplication requires [Piebald Pro](https://piebald.ai/pricing).

## Sharing chats

Available in [Piebald Pro](https://piebald.ai/pricing)

Piebald allows you to share local chats with anyone on the internet.  To share a chat, click the ellipsis button in the chat title bar or on the chat in the sidebar.

When you share a chat, you're prompted to select the number of days that that chat should live for before expiring.  You can choose 1, 3, 5, or 7 days, and after that time the entire chat will be deleted and won't be accessible any longer.

Sharing a chat includes all data in the chat, including messages, tool calls, images/files attached to the chat.

Shared chats are visible to anyone with the link.  Only share the link with people you want to be able to see the chat data.

![share\_chat.png](https://mintcdn.com/piebald/s47REv-fQtnMA355/imgs/share_chat.png?fit=max\&auto=format\&n=s47REv-fQtnMA355\&q=85\&s=831aae15fe1f5ce22f1afc8b6440bd39)

## Protecting chats from damage when you close the app

Available in [Piebald Pro](https://piebald.ai/pricing)

If you have Piebald sessions that are still generating, and you hit the close button, Piebald will warn you about those sessions.  You can then:

* Pause the sessions.
* Close anyway, marking each generating session as cancelled.

![active\_chats\_on\_close.png](https://mintcdn.com/piebald/s47REv-fQtnMA355/imgs/active_chats_on_close.png?fit=max\&auto=format\&n=s47REv-fQtnMA355\&q=85\&s=d9d1e402093d90fc0c80bc05ea539375)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.