Merge pull request #1953 from maximharizanov/fix/copilot-initiator-attribution

fix(copilot): mark internal hook injections as agent-initiated
This commit is contained in:
YeonGyu-Kim
2026-02-20 11:54:01 +09:00
committed by GitHub
19 changed files with 292 additions and 22 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"
+11
View File
@@ -0,0 +1,11 @@
export const OMO_INTERNAL_INITIATOR_MARKER = "<!-- OMO_INTERNAL_INITIATOR -->"
export function createInternalAgentTextPart(text: string): {
type: "text"
text: string
} {
return {
type: "text",
text: `${text}\n${OMO_INTERNAL_INITIATOR_MARKER}`,
}
}