Copilot CLI Troubleshooting: Authentication, Access, Policies, and Recovery/Compact before retrying a task
Reduce context noise before asking again.
Section: Safe debugging patterns
Compact before retrying a task
text
text
/compactExplanation
A helpful move when the agent starts drifting or repeating itself.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Safe debugging patterns
Inspect usage metrics during a problematic session
Check how the session is behaving.
Inspect context pressure
Check whether the session has too much accumulated context.
Force a clean auth reset
Log out and back in when account state looks wrong.
Print the installed CLI version for support
Check whether your binary is current.