Skip to content

Endless loop of TimeoutOverflowWarning when exceeding Github Copilot monthly message limit #6430

@bissakov

Description

@bissakov

Description

The error happens when using GitHub Copilot provider exceeding the monthly messages limits.
Upon sending a message to any agent, I get the endless loop:

TimeoutOverflowWarning: 2560914000 does not fit into a 32-bit signed integer. Timeout duration was set to 1.
    at <anonymous> (src/session/retry.ts:11:23)
    at new Promise (1:11)on/processor.ts:359:34)
    at sleep (src/session/retry.ts:10:12)
    at sleep (src/session/retry.ts:9:43)
    at process (src/session/processor.ts:359:34)
...

2560914000 is ~29.6 days

I can't exit gracefully, only close the tab, terminal or kill an app.

OpenCode version

1.0.209

Steps to reproduce

  1. Exceed GitHub Copilot monthly chat limits
  2. Send any message to opencode
  3. See the errors

Screenshot and/or share link

Image

Operating System

Microsoft Windows 11 Pro N

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions