shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

Reset chat

Open edshamis opened this issue 1 year ago • 1 comments

Sorry if I missed it in the readme, but how to start over a chat (same --chat id)?

edshamis avatar Mar 19 '23 05:03 edshamis

It is not mentioned in the README; I will add it there. You can list your chat sessions using the sgpt --list-chat command, which will display all your chat sessions (just files in the temp directory):

.../some_session
.../another_session

To reset a specific chat session, simply delete the corresponding file:

rm /tmp/.../some_session
sgpt --chat some_session "prompt..."

TheR1D avatar Mar 21 '23 21:03 TheR1D

hey, I added a PR to address this: #129

haim0n avatar Apr 01 '23 17:04 haim0n

I think user can manage deletion of chats just by deleting the "chat" file which is provided by sgpt --list-chats

TheR1D avatar Dec 12 '23 23:12 TheR1D