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 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

triage
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Windows 11 の Windows Terminal でセッションのライフサイクルを再現します。セッションを開始し、PC をスリープさせ、復帰させてから、/yolo on を再試行します。スリープの前後でセッションの権限状態を追跡し、権限が保持され、セッションを再起動せずに /yolo on が有効になることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。