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
+1
View File
@@ -57,3 +57,4 @@ export * from "./opencode-message-dir"
export * from "./normalize-sdk-response"
export * from "./session-directory-resolver"
export * from "./prompt-tools"
export * from "./internal-initiator-marker"
+13
View File
@@ -0,0 +1,13 @@
export const OMO_INTERNAL_INITIATOR_MARKER = "<!-- OMO_INTERNAL_INITIATOR -->"
export function createInternalAgentTextPart(text: string): {
type: "text"
text: string
synthetic: true
} {
return {
type: "text",
text: `${text}\n${OMO_INTERNAL_INITIATOR_MARKER}`,
synthetic: true,
}
}