github / github/copilot-cli

[Bug] Unexpected triple point deduction when multiple sessions are active via /resume

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

描述

### Describe the bug

Issue Body (内容)
Describe the bug
When multiple Copilot CLI windows are open and running resumed sessions, submitting a prompt in only one of the windows results in an unexpected multiple point deduction. Closing the background windows resolves the issue.

Steps to Reproduce

Open multiple Copilot CLI windows simultaneously.

Use the /resume command to restore 5 frequently used sessions across these windows.

Ensure a 1x cost model is selected.

Submit a question in only 1 of the active sessions.

Check the point/quota deduction.

Actual Behavior
A single question deducts 3 points from the quota, even though a 1x model is being used.

Expected Behavior
The question should only deduct 1 point, regardless of how many other inactive CLI windows or sessions are open in the background.

Additional Context / Workaround
Closing the other Copilot CLI windows immediately resolves the issue, and subsequent questions correctly return to deducting only 1 point.

### Affected version

 v1.0.24

### Steps to reproduce the behavior

_No response_

### Expected behavior

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

Start by reproducing the issue with multiple Copilot CLI windows, resumed sessions, and a 1x cost model as described. Compare the quota deduction when one session submits a prompt with the other windows open versus closed. Done means one prompt deducts only 1 point regardless of inactive background sessions.

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

评估

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

把新 issue 发到你的邮箱

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