summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-01-21 16:33:43 -0600
committerAiden Cline <[email protected]>2026-01-21 16:33:43 -0600
commit19fe3e265ad59e7e65df4b3d86b09ec88f454bde (patch)
tree27aaa3deb2b8ac04b46c426794a8b1cab9c386d4
parent20b6cc279f5a0d89d2e1fbeb6c66f7837190ab16 (diff)
downloadopencode-19fe3e265ad59e7e65df4b3d86b09ec88f454bde.tar.gz
opencode-19fe3e265ad59e7e65df4b3d86b09ec88f454bde.zip
mark subagent sessions as agent initiated to ensure they dont count against quota (got the ok from copilot team)
-rw-r--r--packages/opencode/src/plugin/copilot.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/plugin/copilot.ts b/packages/opencode/src/plugin/copilot.ts
index bf0f91dcd..369acf800 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<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"
},
}
}