[BUG]: GitHub copilot infinite loop #9238

Open
opened 2026-02-16 18:11:58 -05:00 by yindo · 4 comments
Owner

Originally created by @georgeharker on GitHub (Feb 13, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Recent updates have caused even simple queries (eg what model are you?) to go into an infinite loop when using github-copilot/claude-sonnet-4.5 model. It answers, compacts, creates state for the next session, and keeps looping infinitely doing that.

Plugins

No response

OpenCode version

v1.1.65

Steps to reproduce

  1. authorize GitHub copilot.
  2. Select github-copilot/claude-sonnet-4.5 as model
  3. ask what model are you?

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Ghostty, but same through CodeCompanion

Originally created by @georgeharker on GitHub (Feb 13, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Recent updates have caused even simple queries (eg `what model are you?`) to go into an infinite loop when using `github-copilot/claude-sonnet-4.5` model. It answers, compacts, creates state for the next session, and keeps looping infinitely doing that. ### Plugins _No response_ ### OpenCode version v1.1.65 ### Steps to reproduce 1. authorize GitHub copilot. 2. Select `github-copilot/claude-sonnet-4.5` as model 3. ask `what model are you?` ### Screenshot and/or share link _No response_ ### Operating System macOS ### Terminal Ghostty, but same through CodeCompanion
yindo added the bug label 2026-02-16 18:11:58 -05:00
Author
Owner

@georgeharker commented on GitHub (Feb 13, 2026):

Can confirm this is a bug which did not occur in v1.1.59
and was introduced in v1.1.60

I'm guessing this is a compaction check issue

@georgeharker commented on GitHub (Feb 13, 2026): Can confirm this is a bug which did not occur in [v1.1.59](https://github.com/anomalyco/opencode/releases/tag/v1.1.59) and was introduced in [v1.1.60](https://github.com/anomalyco/opencode/releases/tag/v1.1.60) I'm guessing this is a compaction check issue
Author
Owner

@neriousy commented on GitHub (Feb 13, 2026):

Image

can't reproduce

@neriousy commented on GitHub (Feb 13, 2026): <img width="1890" height="1016" alt="Image" src="https://github.com/user-attachments/assets/f0864dec-0433-4977-b984-b328ab1f53d6" /> can't reproduce
Author
Owner

@georgeharker commented on GitHub (Feb 13, 2026):

Intriguing. It has also stopped for me this morning on @latest was 100% reproducible yesterday. I wonder if this was an issue on GitHub's end

@georgeharker commented on GitHub (Feb 13, 2026): Intriguing. It has also stopped for me this morning on @latest was 100% reproducible yesterday. I wonder if this was an issue on GitHub's end
Author
Owner

@gimlichael commented on GitHub (Feb 14, 2026):

It happens in Visual Studio 2026 here; several times - model is not important.

Image

When I ask why, it just says it will avoid that.

Image

I fear tokens are just being wasted here.

@gimlichael commented on GitHub (Feb 14, 2026): It happens in Visual Studio 2026 here; several times - model is not important. <img width="492" height="768" alt="Image" src="https://github.com/user-attachments/assets/14b06a56-0f58-40ec-a5c6-d3655b54c7c4" /> When I ask why, it just says it will avoid that. <img width="754" height="671" alt="Image" src="https://github.com/user-attachments/assets/1e48cbdd-4b77-45de-85b3-908602e3aa6c" /> I fear tokens are just being wasted here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9238