Study FAQ
How can I resume a Copilot CLI task and check its loaded context?
Also asked as 2
- How do I return to a previous Copilot CLI session and inspect its environment?
- Which Copilot CLI controls help me continue the correct session with the right inputs?
Answer
In an authorized interactive GitHub Copilot CLI session, use /resume to select the previous session and /env to inspect loaded instructions, MCP servers, skills and agents. Confirm the working folder and task inputs before continuing; a remembered conversation is not proof that every required file or integration is available.
Start the interface with copilot in the intended working environment. Use /rename to give the current task a recognizable name, and /resume when returning to an existing task. The CLI supports pasting clipboard content as an attachment with Ctrl+V. Supply current evidence through supported context controls rather than relying on unrelated history.
If you choose a custom agent at startup, the CLI supports --agent=AGENT, where AGENT is an available agent. Check its effective tools separately from its role description. After resuming, ask it to identify the current goal, available records and unresolved gaps, then verify those claims against the actual environment.
For history deletion, use /session delete ID with the intended session ID rather than assuming a universal /delete command. Removing history does not establish that file or external-service changes were reversed.
References: GitHub Copilot CLI command reference - GitHub Docs.
Full explanation
GH-700: Manage Copilot Sessions and Context Across Clients
Study guide · GH-700
Read the full explanation