← Back to the briefs
Coding

GitHub explains session handoffs from Copilot app to VS Code

GitHub published guidance detailing how developers can open ongoing GitHub Copilot app sessions directly inside VS Code, preserving conversation history, isolated worktrees, and active pull request branches.

Preserving Context Across Environments

Developers running tasks inside the GitHub Copilot application can transfer their active environment into Visual Studio Code rather than restarting the task manually. The transfer imports the full context, including the original prompt, plan, and agent conversational history, alongside the code edits made during the session.

When triggered, VS Code opens the project using the isolated git worktree tied to that specific task. The existing dialogue appears inside the Copilot sidebar, allowing developers to inspect file diffs and review the agent choices without copying chat transcripts between windows.

Local Validation and Manual Refinement

Because the workspace mounts the original worktree, developers can make manual code edits directly in the editor without branch recreation or file copying. Users can refine labels, tweak styles, and alternate between writing code by hand and asking the agent for repository-wide adjustments.

The integrated terminal in VS Code allows teams to run tests, linters, and development servers locally to verify agent-generated modifications. Once manual and automated checks pass, engineers commit the work and push the branch directly to update the pull request linked to the initial Copilot session.

Our assessment

This tutorial outlines a practical handoff mechanism for teams struggling with agent isolation in standalone applications. By mounting the same git worktree and retaining the chat state in VS Code, GitHub avoids manual branch copying. Engineering leaders should evaluate whether their local environments are configured to run validation scripts cleanly against isolated worktrees without dependency path collisions.

Source: GitHub original publication.

Original source

Read the original material

GitHub (opens in a new tab)

The article date belongs to Agentic Horizon. The source publication date is listed separately. Vendor claims remain attributed; we have not independently tested the reported capability.

Search the publication

Find a story by title, topic, or keyword.

Press Escape to close

Ask HorizonYour site guide
Your guide to the publication

Ask Horizon.

Ask a question about the publication.

Privacy