zed icon indicating copy to clipboard operation
zed copied to clipboard

Serialize and restore unsent agent messages

Open tinycrops opened this issue 1 year ago • 2 comments

Summary

If you have unsent messages in the agent panel or in a text thread when you restart zed this content is lost.

Description

Zed should support serializing this to the workspace db so that it can be recovered when a workspace is reopened after crash/restart.

tinycrops avatar Aug 25 '24 20:08 tinycrops

Hey @MeDott29, we do serialize the contents of the conversation out to .md files in ~/.config/zed/conversations (on macOS) after you send the first message to the LLM. And we do have a Prompt Library for storing prompts that you might want to reuse multiple times with the /prompt slash command. That being said, you are right, if you haven't sent up a message yet, anything in the buffer of the assistant panel will be lost if the editor crashes. Makes sense for us to have some sort of backup of that.

JosephTLyons avatar Aug 27 '24 19:08 JosephTLyons

where do I look for my conversation data and prompt library? image

Edit: found 'em @ ~/.local/share/zed

tinycrops avatar Sep 02 '24 19:09 tinycrops