Parcourir la source

mark subagent sessions as agent initiated to ensure they dont count against quota (got the ok from copilot team)

Aiden Cline il y a 1 mois
Parent
commit
19fe3e265a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/opencode/src/plugin/copilot.ts

+ 2 - 2
packages/opencode/src/plugin/copilot.ts

@@ -276,8 +276,8 @@ export async function CopilotAuthPlugin(input: PluginInput): Promise<Hooks> {
         })
         .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"
     },
   }
 }