zed
zed copied to clipboard
Serialize and restore unsent agent messages
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.
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.
where do I look for my conversation data and prompt library?
Edit: found 'em @ ~/.local/share/zed