Copilot Claude requests are always user initiated #7803

Closed
opened 2026-02-16 18:08:17 -05:00 by yindo · 5 comments
Owner

Originally created by @NateSmyth on GitHub (Jan 28, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Tool loops cause runaway requests

Unfortunately I seem to have used ~1600 Claude Opus requests in the past 24 hours.

  • During tool loops, x-initiator is always "user" because the anthropic sdk wraps tool results in "role": "user" content blocks.
  • This causes insane runaway premium requests.
  • The heuristic used to apply to x-initiator override just checks role.
  • This comes from the switch from /chat/completions -> /v1/messages for copilot claude

Plugins

The official copilot OAuth plugin

OpenCode version

most of the requests were on dev but this got pushed in v1.1.37

Steps to reproduce

  1. Auth with copilot
  2. Ask copilot claude a question
  3. Get mugged

Screenshot and/or share link

Womp womp Image Image

Operating System

Ubuntu

Terminal

Ghostty

Originally created by @NateSmyth on GitHub (Jan 28, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description # Tool loops cause runaway requests Unfortunately I seem to have used ~1600 Claude Opus requests in the past 24 hours. - During tool loops, x-initiator is always "user" because the anthropic sdk wraps tool results in `"role": "user"` content blocks. - This causes insane runaway premium requests. - The heuristic used to apply to x-initiator override just checks role. - This comes from the switch from /chat/completions -> /v1/messages for copilot claude ### Plugins The official copilot OAuth plugin ### OpenCode version most of the requests were on dev but this got pushed in v1.1.37 ### Steps to reproduce 1. Auth with copilot 2. Ask copilot claude a question 3. Get mugged ### Screenshot and/or share link <details> <summary> Womp womp </summary> <img width="946" height="475" alt="Image" src="https://github.com/user-attachments/assets/286d835a-cd27-40d7-9c11-c50c8afc2f52" /> <img width="916" height="512" alt="Image" src="https://github.com/user-attachments/assets/807f77fa-2463-4060-8fdd-d7e9290cfaf2" /> </details> ### Operating System Ubuntu ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:08:17 -05:00
yindo closed this issue 2026-02-16 18:08:17 -05:00
Author
Owner

@FelixYuanSpace commented on GitHub (Jan 28, 2026):

Same bug, create doc with github copilot use claude model with error:
~ Preparing write...
Tool execution aborted

revert version to 1.1.31 work fine (between 1.1.35-1.1.32 not try)

@FelixYuanSpace commented on GitHub (Jan 28, 2026): Same bug, create doc with github copilot use claude model with error: ~ Preparing write... Tool execution aborted revert version to 1.1.31 work fine (between 1.1.35-1.1.32 not try)
Author
Owner

@FelixYuanSpace commented on GitHub (Jan 28, 2026):

Make sense, it consumed a lot of my premium requests 😢

@FelixYuanSpace commented on GitHub (Jan 28, 2026): Make sense, it consumed a lot of my premium requests 😢
Author
Owner

@cysp commented on GitHub (Jan 28, 2026):

👋 just to lend another anecdote towards this, I just observed my most recent session of 1.1.37 use with Claude Sonnet 4.5 consume approximately 40 premium requests while I submitted approximately three prompts.

@cysp commented on GitHub (Jan 28, 2026): 👋 just to lend another anecdote towards this, I just observed my most recent session of 1.1.37 use with Claude Sonnet 4.5 consume approximately 40 premium requests while I submitted approximately three prompts.
Author
Owner

@rekram1-node commented on GitHub (Jan 28, 2026):

Ugh apologies, fixing immediately

@rekram1-node commented on GitHub (Jan 28, 2026): Ugh apologies, fixing immediately
Author
Owner

@rekram1-node commented on GitHub (Jan 28, 2026):

fixed: https://github.com/anomalyco/opencode/commit/5a0b3ee673a99944da2d611fd3a60e70054cd481

will be going out tonight

@rekram1-node commented on GitHub (Jan 28, 2026): fixed: https://github.com/anomalyco/opencode/commit/5a0b3ee673a99944da2d611fd3a60e70054cd481 will be going out tonight
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7803