fix(copilot): mark internal background notifications as agent-initiated

This commit is contained in:
Maxim Harizanov
2026-02-18 19:55:36 +02:00
parent ca655a7deb
commit 64e8e164aa
7 changed files with 179 additions and 4 deletions
+4 -1
View File
@@ -2,6 +2,7 @@ import type { PluginContext, PluginInterface, ToolsRecord } from "./plugin/types
import type { OhMyOpenCodeConfig } from "./config"
import { createChatParamsHandler } from "./plugin/chat-params"
import { createChatHeadersHandler } from "./plugin/chat-headers"
import { createChatMessageHandler } from "./plugin/chat-message"
import { createMessagesTransformHandler } from "./plugin/messages-transform"
import { createEventHandler } from "./plugin/event"
@@ -30,11 +31,13 @@ export function createPluginInterface(args: {
return {
tool: tools,
"chat.params": async (input, output) => {
"chat.params": async (input: unknown, output: unknown) => {
const handler = createChatParamsHandler({ anthropicEffort: hooks.anthropicEffort })
await handler(input, output)
},
"chat.headers": createChatHeadersHandler(),
"chat.message": createChatMessageHandler({
ctx,
pluginConfig,