github / github/copilot-cli

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

Open
#4,618 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the session lifecycle in Windows Terminal on Windows 11: start a session, let the PC sleep, wake it, and retry /yolo on. Trace the session permission state before and after sleep and verify that permissions persist and /yolo on takes effect without restarting the session.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.