PC waking from sleep: `/yolo` no longer works; have to approve every request until I restart session
还没有人认领这个 Issue。
- 主要语言
- 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
- Have a session going
- Put PC to sleep
- Wake it up and return to the session to see it in a weird state
- Try forcing
/yolo onagain 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 Windows 11 上的 Windows Terminal 中复现会话生命周期:启动一个会话,让 PC 进入睡眠状态,唤醒它,然后重试 /yolo on。跟踪睡眠前后的会话权限状态,并验证权限是否持久存在,以及无需重启会话 /yolo on 是否生效。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100