mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 01:03:49 +00:00
fix(hooks): fix ContextEventResult.messages type to AgentMessage[]
- Was incorrectly typed as Message[] which caused filtered messages to be ignored - Context event filter in plan-mode hook should now properly remove stale [PLAN MODE ACTIVE] messages
This commit is contained in:
parent
650d8f2615
commit
274d4a6247
2 changed files with 8 additions and 12 deletions
|
|
@ -577,7 +577,7 @@ export type HookEvent =
|
|||
*/
|
||||
export interface ContextEventResult {
|
||||
/** Modified messages to send instead of the original */
|
||||
messages?: Message[];
|
||||
messages?: AgentMessage[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue