opencode icon indicating copy to clipboard operation
opencode copied to clipboard

add experimental.chat.system.transform hook

Open Tarquinen opened this issue 1 week ago • 1 comments

Add a system prompt transform hook to allow plugins to alter system messages.

Plugins receive a mutable string[] containing the system prompt parts and can modify, add, or remove entries.

If a plugin empties the array, the original is restored and an error is logged to prevent downstream issues with empty system prompts.

Tarquinen avatar Dec 13 '25 03:12 Tarquinen

will rebase when PR #5462 is merged

Tarquinen avatar Dec 13 '25 04:12 Tarquinen

moved to and merged in #5542

Tarquinen avatar Dec 15 '25 05:12 Tarquinen