Skip to content

Save chats to lua#42

Draft
e2r2fx wants to merge 1 commit into
ravitemer:mainfrom
e2r2fx:feat/save_chats_to_lua
Draft

Save chats to lua#42
e2r2fx wants to merge 1 commit into
ravitemer:mainfrom
e2r2fx:feat/save_chats_to_lua

Conversation

@e2r2fx
Copy link
Copy Markdown

@e2r2fx e2r2fx commented Jul 31, 2025

Description

Saving chat history with tool calls resulted in several issues with encoding decoding. Storing to lua prevents the need from stripping functions and having to handle edge cases when storing.

Also using new ChatDone event makes sure chat is only saved a single time at the end of an interaction.

Tool output is hidden before saving to disk.

Related Issue(s)

Checklist

  • I've read the contributing guidelines and have adhered to them in this PR
  • I've updated the README and/or relevant docs pages
  • I've run make test to ensure all tests pass
  • I've run make format to format the code
  • I've run make docs to update the vimdoc pages

@e2r2fx e2r2fx marked this pull request as draft July 31, 2025 21:40
@e2r2fx
Copy link
Copy Markdown
Author

e2r2fx commented Aug 1, 2025

@ravitemer I put a hold on this because I noticed the API in CC is changing and there's still some bugs to be squashed. I pinned my config to codecompanion v17.11.0 until the dust settles. With latest codecompanion and codecompanion-history I lost context (probably due to the new key).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH]: Option to hide tool output?

1 participant