github / github/copilot-cli

Unrecoverable timeouts when WAITFOR DELAY occurs anywhere. Poison pill

未关闭
#3,747 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area:models area:networking
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

Copilot will enter into a faulted state anytime the text 'WAITFOR DELAY' is encountered, either within the prompt or when copilot reads a file. With ANY model.

To test, Try with this prompt:
`Explain what WAITFOR DELAY does in MSSQL.`

```
Result:
● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

✗ Execution failed: Error: Failed to get response from the AI model; retried 5 times (total retry wait time: 6.00 seconds) Last error: CAPIError: Connection error.
```

The context becomes unrecoverable and the only fix is `/new. `

Also try putting that text inside a file. I tested with a C# file and added that text as a comment and asked copilot to explain the file.

Here is the file:
using System;

```
class Program
{
-- Main function WAITFOR DELAY
static void Main()
{
Console.WriteLine("Hello, World!");
}
}
```

```
Explain @Test.Api\Program.cs

◐ I need to look at the Program.cs file from the Test.Api project to understand what it does.

● Read Program.cs
│ Test.Api\Program.cs
└ 11 lines read

● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

● Request failed due to a transient API error. Retrying...

✗ Execution failed: Error: Failed to get response from the AI model; retried 5 times (total retry wait time: 6.00 seconds) Last error: CAPIError: Connection error.
```

If I remove the comment, the correct hello world explanation is returned.

To me this is a critical bug because this poison pill could be injected into any file effectively crippling copilot as it ingests files to build its context.

### Affected version

1.0.61

贡献指南

打开贡献指南

调研方向

Reproduce the failure with the prompt containing `WAITFOR DELAY`, then with the same text in the shown C# file, and compare it with the file after removing the comment. Trace the behavior around the five retries and the resulting faulted context; done means the text no longer causes an unrecoverable failure and the file can still be explained without requiring `/new`.

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
ai, cli
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。