PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

GH-700: Manage Copilot Sessions and Context Across Clients

Compare Copilot session setup, attached context and lifecycle controls across the app, CLI, web/mobile and VS Code, with separate execution and sharing decisions.

Guide

Content version 1.0

GH-700: Manage Copilot Sessions and Context Across Clients

GH-700: Manage Copilot Sessions and Context Across Clients

Choose a Copilot client around the task's inputs and working environment. The GitHub Copilot app provides graphical session setup and repository workstreams; GitHub Copilot CLI provides terminal sessions; Visual Studio Code keeps conversations close to files being examined; GitHub.com and GitHub Mobile support repository conversations and cloud work. Starting sessions, attaching context and organizing history use different controls in each client. A command remembered from one client is not a reliable instruction for another.

For cross-device work, check the execution environment as well as the client. Current Copilot cloud sandbox sessions support continuity across supported clients. Opening a locally running session from another device does not move its execution there, and syncing history does not automatically share it with colleagues. Those are separate setup decisions.

This comparison uses rolling documentation checked on November 14, 2026, for the GH-700 English beta scope. The newer web/mobile Copilot in the cloud experience began on October 28, 2026, for paid Copilot plans under applicable policies; Copilot Free retains the older chat experience. Check your account's available controls before following a procedure.

Separate the client, session and environment

The client is the interface you use. The session holds the conversation and agent activity. The environment is where tools execute and files change. Switching interfaces can preserve the same session without changing its execution location.

For example, the app lets you select This computer or Cloud when starting work. Cloud runs the session in a GitHub-hosted sandbox. A local sandbox instead restricts tools on your machine; its settings are separate from cloud sandbox settings. In the app, Interactive, Plan and Autopilot describe collaboration behavior, while tool permissions separately control approval prompts. Select those controls deliberately rather than inferring permissions from a mode name.

Compare Copilot session setup and context

Client Starting and supplying context Organizing or returning to work
GitHub Copilot app Select a connected repository or folder, environment and workspace. Reference issues with # and files with @; file/folder attachment commands are also available. Active sessions are grouped by repository. Manage sessions searches and filters sessions/chats and provides archive/delete actions.
GitHub Copilot CLI Launch the interactive interface with copilot. Paste clipboard content as an attachment with Ctrl+V. Inspect /env for loaded instructions, Model Context Protocol (MCP) servers, skills and agents. Use /rename for a useful task name and /resume to select a previous session.
GitHub.com and GitHub Mobile Use the repository selector, + menu or @ mentions for supported context, including a repository/branch, file, issue or pull request. Choose a cloud sandbox for supported cross-client continuity. GitHub Actions-based sessions have different continuity limits.
Visual Studio Code Use the current workspace and explicit context such as #file or #selection. These are VS Code chat variables, not the app's issue syntax. Open the sessions list to resume work. Pin important sessions; use grouping in the Agents window for related tasks.

The app is available on all Copilot plans, but Business and Enterprise users also need its app policy enabled; that policy is separate from the CLI policy. App access is therefore not proof that every cloud feature or integration is available.

For an ongoing goal, the app offers projects in public preview. These coordinate related Copilot work and may span repositories or tasks without a repository. They are distinct from GitHub Projects boards for tracking issues and pull requests. Use a direct repository session for a bounded repository task; consider an app project for broader continuing coordination.

Choose an agent and verify its inputs

A custom agent supplies a reusable specialist role, instructions and tool configuration. It differs from the underlying model and the execution environment. Custom agents are supported in the app, CLI, cloud agent and supported IDEs, but profile properties can behave differently between environments. JetBrains IDE and Xcode support is in public preview; VS Code behavior should not be generalized to every IDE.

In the app, /agent selects a custom agent for the session. The CLI supports the startup option --agent=AGENT. Choose an available role matching the task, then check its actual tools. Asking an agent to consult an issue or external service does not demonstrate that the input was retrieved. Profile authoring and integration configuration need their own review.

As an editorial setup recommendation, identify the source of truth, the intended repository/branch or folder, and the tools needed to obtain missing evidence before the first substantive request. Attach sufficient current material and ask the agent to identify gaps. For a release summary, this could mean the approved issue set and release notes rather than unrelated history from a long conversation. Keep task-specific facts explicit when starting fresh.

Keep lifecycle actions distinct

Pinning makes work easier to find. Renaming gives it a recognizable identity. Resuming continues earlier conversation work. Archive and delete have different preservation effects; neither should be chosen merely because a running task needs intervention.

In VS Code, Archive or Mark as Done retains the conversation; continuing requires Unarchive or Restore. For a worktree session, archiving commits uncommitted changes to its branch before removing the worktree folder; preservation failures leave the worktree in place. Deletion is permanent and can also remove associated worktrees or containers. Preserve needed work first: files existing only in a removed worktree can be lost. Check the session type and current confirmation instead of treating archive as a cosmetic sidebar action.

Closing a VS Code chat tab hides the conversation without deleting it. In the experimental Agents window Inbox mode, dismissing a session moves it to Done without stopping or archiving it; new activity can bring it back. Grouping, pinning and Inbox triage organize attention. They do not establish that execution has stopped or files have been recovered.

Use the current client's command reference

The GH-700 guide names chat shortcuts as objectives. Use these four code-oriented shortcuts with the relevant editor context; they are not a universal app, CLI or browser command set. The client mapping below was checked against the official multi-client cheat sheet on November 16, 2026.

Shortcut Purpose Clients explicitly documenting it in the cheat sheet
/explain Explain the active or selected code Visual Studio Code, Visual Studio, JetBrains IDEs and Xcode
/fix Suggest a correction for selected code or code errors Visual Studio Code, Visual Studio, JetBrains IDEs and Xcode
/tests Generate unit tests for the selected code Visual Studio Code, Visual Studio, JetBrains IDEs and Xcode
/doc Add or generate documentation for a symbol Visual Studio and Xcode

The VS Code and JetBrains common-command lists do not establish /doc availability there; their omission is not proof of non-support. Check the current client's / picker. Generated tests still need execution, and a proposed fix still needs review.

For session and history actions, retain these separate client meanings:

Scope Verified command distinction
Copilot app /clear or /reset clears the active transcript and starts fresh; /chronicle opens history/analysis features. Availability depends on context.
Copilot CLI Use the /session command with the delete subcommand and chosen session ID; do not substitute a presumed universal /delete. /resume selects an earlier session.
Copilot Chat in VS Code The VS Code cheat-sheet section describes /clear as starting a new chat and /new as creating a project. The browser section assigns different meanings.

Type / in the current client to inspect available commands. For intervention or recovery, consult that surface's documented stop or checkpoint controls separately; resetting a conversation or deleting history does not establish that prior effects have been reversed.

Decide who can see the session

GitHub documents execution location, storage, syncing and access as independent concerns. Local app and CLI sessions are unshared by default. Where syncing is enabled, synced history is tied to your personal account and private by default; administrators enabling syncing do not thereby gain access to that history. Business/Enterprise syncing requires the applicable Store local sessions in the Cloud policy to permit it.

GitHub Actions-based cloud sessions are shared with repository readers by default, while cloud sandbox sessions are unshared by default. Confirm the session type before including confidential material or inviting another person to review it. For a locally running CLI session controlled from the web, the original machine must stay online. Synced history alone is not remote control.

Apply the comparison to release readiness

Consider this illustrative decision, not an executed workflow: an operations lead needs a release-readiness summary from repository issues plus a draft checklist stored locally.

If the checklist must remain in the local working environment, an app or CLI local session is a reasonable starting choice, subject to organizational data policy. In the app, the lead selects the actual folder, attaches the checklist and references the relevant issues. Before requesting a readiness judgment, the lead asks which sources are available and which are missing. A missing attachment calls for correcting the input rather than choosing a more elaborate agent role.

If the lead needs to continue from a phone, the first question is whether the required material and permissions are available in a supported cloud sandbox session. Opening the web client does not supply a local-only file. If a developer continues in VS Code, the developer should confirm the session, workspace and branch before attaching a selected file or discussing changes.

A colleague's review introduces another decision: confirm explicit session sharing and repository access rather than assuming account sync has made the conversation collaborative. After the task, preserve the useful result in the team's maintained work record and choose the relevant archive action after checking its resource effects. Input selection, execution continuity and collaboration remain three visible decisions.

Authoritative Sources

5 views