Skip to content

[BUG]: GitHub copilot infinite loop #13444

Closed as not planned
Closed as not planned

Description

@georgeharker

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

Activity

  1. georgeharker commented on Feb 13, 2026

    @georgeharker
    ContributorAuthor

    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

  2. neriousy commented on Feb 13, 2026

    @neriousy
    Member
    Image

    can't reproduce

  3. georgeharker commented on Feb 13, 2026

    @georgeharker
    ContributorAuthor

    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

  4. gimlichael commented on Feb 14, 2026

    @gimlichael

    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.

  5. chenyinchang commented on Mar 13, 2026

    @chenyinchang

    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.

    Same problem. I think that the reason why from context length limit

  6. gimlichael commented on Mar 15, 2026

    @gimlichael

    Yeah, Visual Studio 2026 has a problem for sure. I get errors like the one described here. Agent stop working - then needs to be poked. And hard exceptions with exceeded context length. VSCode, ironically, work flawlessly and is free to use .. but I do love the Visual Studio 2026 IDE - just sad that AI integration is SO FAR BEHIND VSCode.

  7. removed
    bugSomething isn't working
    on May 3, 2026
  8. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions