From 889c8c5acf30bb261fb2eb95446a2e0ffe69b48e Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Wed, 21 Jan 2026 16:33:43 -0600 Subject: [PATCH] mark subagent sessions as agent initiated to ensure they dont count against quota (got the ok from copilot team) --- packages/opencode/src/plugin/copilot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencode/src/plugin/copilot.ts b/packages/opencode/src/plugin/copilot.ts index bf0f91dcdc..369acf800f 100644 --- a/packages/opencode/src/plugin/copilot.ts +++ b/packages/opencode/src/plugin/copilot.ts @@ -276,8 +276,8 @@ export async function CopilotAuthPlugin(input: PluginInput): Promise { }) .catch(() => undefined) if (!session || !session.data.parentID) return - // TODO: mark subagent sessions as agent initiated once copilot gives ok - // output.headers["x-initiator"] = "agent" + // mark subagent sessions as agent initiated matching standard that other copilot tools have + output.headers["x-initiator"] = "agent" }, } }