Working Chat History Extension #652
Replies: 1 comment
-
Thanks for sharing this. As per my comment last week, I still have no plans to incorporate this into the plugin. Simply because everytime I add a new feature whether it's references, or pins, or slash commands, the underlying messages table changes. That is going to impact your ability to restore a chat buffer and will need additional logic to save a buffer. So you'll end up with saved buffers that no longer work in the plugin unless I implement some bridging mechanism which is even more work. I say this from experience as I had this in the plugin up until August. Please feel free to turn this into a separate plugin because I know a lot in the community would really value it. It's just too time consuming for me to have to support right now. |
Beta Was this translation helpful? Give feedback.
-
Chat History Extension
A chat history extension for CodeCompanion that enables saving, loading, and browsing your chat conversations. Because with codecompanion writing code is no longer the problem but having to rewrite the entire prompt is.
@olimorris please check this out and let me know your thoughts. I feel this can be provided by default whenever you have the time with much better integration.
Features
GROQ_API_KEY
) Get hereSetup
Configuration
Commands
:CodeCompanionAutoSaveChat
Creates a new chat with auto-saving enabled. Features:
:CodeCompanionHistory
Opens a Telescope picker to browse saved chats:
x
to delete a chat<CR>
to restore a chatEnvironment Variables
GROQ_API_KEY
: Required for auto-generating chat titlesTODOs
Codecompanion source code:
[] issue: subscribe method's order ignored even though the message cycle is greater when chat created with saved messages.
[ ] issue:
gx
clearing or resetting the chat should delete and remove chat title[ ] issue: tools need to be redeclared in the last message when populating messages, ability to pass tools to chat:new helps
[ ] id can be taken as one of the arguments in chat:new()
[ ] CodeCompanionAutoSaveChat could replace CodeCompanionChat so that toggle etc automatically enables saving
This module:
[ ] Generating title for chat can be as soon as the prompt is submitted instead of waiting for the response (using CodeCompanionRequestStarted event)
[ ] support for other pickers
[ ] save settings,tools as well along with the messages
Beta Was this translation helpful? Give feedback.
All reactions