github / github/copilot-cli

PC waking from sleep: `/yolo` no longer works; have to approve every request until I restart session

未关闭
#4,618 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

triage
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

Describe the bug

I've noticed several times that if a session is running when pc goes to sleep (e.g. I leave and forgot to /keep-alive) then when I wake it up and return to a session, suddenly /yolo is no longer working: it's asking me to approve every action and entering /yolo has no effect, it keeps requesting permissions for everything. I have to restart the session and then it returns to normal.

Affected version

1.0.81-8

Steps to reproduce the behavior
  1. Have a session going
  2. Put PC to sleep
  3. Wake it up and return to the session to see it in a weird state
  4. Try forcing /yolo on again and see it not apply

I think this is what is causing it, but not 100% sure.

Expected behavior

It should have same set of permissions before/after sleep and should recover gracefully if pc falls asleep on it. Also /yolo on should ALWAYS work.

Additional context

Windows Terminal on Windows 11 x64

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Windows 11 上的 Windows Terminal 中复现会话生命周期:启动一个会话,让 PC 进入睡眠状态,唤醒它,然后重试 /yolo on。跟踪睡眠前后的会话权限状态,并验证权限是否持久存在,以及无需重启会话 /yolo on 是否生效。

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

评估

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

把新 issue 发到你的邮箱

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