Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,13 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
},

"chat.message": async (input, output) => {
// autoSlashCommand must run first, before any hook prepends content to the message.
// Otherwise, slash commands like "/preflight" won't be detected because the text
// no longer starts with "/" after claudeCodeHooks prepends hook content.
await autoSlashCommand?.["chat.message"]?.(input, output);
await keywordDetector?.["chat.message"]?.(input, output);
await claudeCodeHooks["chat.message"]?.(input, output);
await contextInjector["chat.message"]?.(input, output);
await autoSlashCommand?.["chat.message"]?.(input, output);
await startWork?.["chat.message"]?.(input, output);

if (ralphLoop) {
Expand Down
Loading