-
Notifications
You must be signed in to change notification settings - Fork 19
Description
This morning, with opencode 1.1.14, I made a couple requests (2-3 as I recall) to Copilot's Claude Opus 4.5 model (uses 3 premium requests). It was a long running request with a lot of tool calls, all agent driven. When I came back, 62 requests (186 premium requests -- more than half my monthly allotment) had been consumed.
I do fully understand that the old method on the previous copilot plugin version was too lax, and an abuse of Copilot, as it made every request in the conversation free after the first user request. So, I am glad this is getting worked on.
But perhaps it was overcorrected? I am digging in, and will report my findings here.
Edit: if I pin opencode at 1.1.12, all is well (although still too permissive, as already noted). Also, this would be a lot easier to diagnose if we had some sort of premium request logging (or agent request logging, or both)
Edit2: this is a bit of a chicken-egg problem, perhaps. See the issue I created in the opencode project. I suppose we could create those synthetic messages with "assistant" role, but is that the right solution, and is this really opencode's problem to solve? Or is there a way, here in this plugin, to flag those synthetic records with "X-Initiator: agent"?