Skip to content

Assistant: to be able to remove conversations from the list of conversations #4639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
aslamplr opened this issue Jul 6, 2023 · 6 comments
Closed
1 task done
Labels
assistant AI feedback for Assistant (inline or panel) feature [core label]

Comments

@aslamplr
Copy link

aslamplr commented Jul 6, 2023

Check for existing issues

  • Completed

Describe the feature

In assistant, the ability to remove conversation(s) from list of conversations.

Screenshot 2023-07-06 at 1 17 24 PM

If applicable, add mockups / screenshots to help present your vision of the feature

Not precisely this, but something like this or better(🤷‍♂️ I am no designer, so no UX expertise).
Screenshot 2023-07-06 at 1 17 24 PM

@aslamplr aslamplr added admin read feature [core label] labels Jul 6, 2023
@JosephTLyons
Copy link
Collaborator

Hey @aslamplr, this would be a really nice addition to the assistant panel - I'll bring it up with the team. As a workaround, you can remove them manually by deleting the conversation files in ~/.config/zed/conversations.

@JosephTLyons JosephTLyons added assistant AI feedback for Assistant (inline or panel) and removed triage labels Jul 9, 2023
@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
@Gana-Dube
Copy link

@JosephTLyons do you know what the status of this feature is, or the issue with the development around removing the history from chat? whilst it can be done manually, it would also be great to not have to 😅

@CHRISCARLON
Copy link

CHRISCARLON commented Apr 21, 2025

Whilst I wait for this feature to be added I ended up writing a little bash script that does it for me.

It might be useful for others too 🙂

Bash is our friend!

#!/bin/bash
ZED_CONVERSATIONS_DIR="/Users/[insert_user]/.config/zed/conversations"

# Check if the directory exists
if [ -d "$ZED_CONVERSATIONS_DIR" ]; then
    echo "Navigating to $ZED_CONVERSATIONS_DIR"
    cd "$ZED_CONVERSATIONS_DIR"
    
    # Check if there are any .zed.json files
    if ls *.zed.json 1> /dev/null 2>&1; then
        echo "Removing .zed.json files..."
        rm -v *.zed.json
        echo "Done! All .zed.json files have been removed."
    else
        echo "No .zed.json files found in the conversations directory."
    fi
else
    echo "Error: Zed conversations directory not found at $ZED_CONVERSATIONS_DIR"
fi

The chat history is saved in ".config/zed/conversations" so I just delete them all from there.

The output is the following:

Navigating to /Users/****/.config/zed/conversations
Removing .zed.json files...
Starting a New Conversation - 1.zed.json
Done! All .zed.json files have been removed.

Here's what I did:

• Create script file: nano ~/cleanup_zed_conversations.sh

• Make script executable: chmod +x ~/cleanup_zed_conversations.sh

• Add alias to zsh config: echo 'alias cleanzedllm="~/cleanup_zed_conversations.sh"' >> ~/.zshrc

• Reload shell config: source ~/.zshrc

• Run command cleanzedllm to clean .zed.json files from Zed conversations directory

• Restart terminal if command isn't recognised

I'd be keen to have a crack at implementing this feature into Zed as a way to practice - if anyone has any tips on how to contribute to the Zed repo?

I imagine the button that would be added to the UI wouldn't do anything too dissimilar to my bash script in terms of what it would do behind the scenes?

Chris

@ItzRozzii
Copy link

In the .config/zed/ there is no folder or file for previous conversations. Any idea where could it be stored then?

@dahaupt
Copy link

dahaupt commented May 5, 2025

@MrKristijan Looks like the location changed:

  • ~/.config/zed/conversations (macOS)
  • ~/.local/share/zed/conversations (Linux)
  • %LocalAppData%\Zed\conversations (Windows)

Related documentation: https://zed.dev/docs/assistant/contexts#saving-and-loading-contexts

@JosephTLyons
Copy link
Collaborator

This has landed with the new agent panel launch! Going to close this out.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assistant AI feedback for Assistant (inline or panel) feature [core label]
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants