Skip to content

Support pre_hook option in prompt library when applicable for chat strategy. - #1964

Merged
olimorris merged 1 commit into
olimorris:mainfrom
Davidyz:feat/prompt_lib_pre_hook
Sep 1, 2025
Merged

olimorris merged 1 commit into
olimorris:mainfrom
Davidyz:feat/prompt_lib_pre_hook

Conversation

@Davidyz

@Davidyz Davidyz commented Aug 12, 2025 •

Copy link
Copy Markdown
Contributor

Description

Previously the pre_hook function in the prompt library is only called for inline strategy. This PR enables this hook for chat strategy too, so that users can run code to prepare custom workflow.

With this PR and the vectorcode WIP feature that requires this, we would be able also to have this, but without the web search tool.

Related Issue(s)

Davidyz/VectorCode#264

Checklist

  • I've read the contributing guidelines and have adhered to them in this PR
  • I've updated CodeCompanion.has in the init.lua file for my new feature
  • I've added test coverage for this fix/feature
  • I've updated the README and/or relevant docs pages
  • I've run make all to ensure docs are generated, tests pass and my formatting is applied

@olimorris olimorris added the P4 Negligible impact and urgency label Aug 27, 2025
@olimorris
olimorris merged commit 8b60fcc into olimorris:main Sep 1, 2025
4 checks passed
@Davidyz
Davidyz deleted the feat/prompt_lib_pre_hook branch September 2, 2025 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P4 Negligible impact and urgency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants