Vibeleaderboard
← All Intel
Intel / blog

How to continue a GitHub Copilot app session in VS Code

Source
github.blog
Publisher
GitHub
Author
Kayla Cinnamon
Date

Context

GitHub's tutorial explains a handoff between its Copilot app, where an agent does the bulk of a coding task, and VS Code, where a developer usually reviews, debugs and tests (GitHub Blog). Choosing Open in VS Code from a opens the project on the same isolated the agent used and shows the existing session in the Copilot sidebar. Three things come across together: the session , meaning the task, plan and conversation that produced the changes; the diff of everything the agent changed; and the worktree itself. GitHub frames this as continuing the session rather than rebuilding it, so there is no need to summarize the history into a new chat.

Because the conversation is preserved, follow-up prompts in VS Code can refer to earlier work, such as asking why a was changed or asking for a test for a label just edited, without restating the task. Manual edits land in the same worktree, building directly on the agent's changes. And because VS Code opened the session's own branch, committing and pushing from the editor updates the pull request that was already tracking the session, without copying files into another checkout. The post also tells readers to treat the agent's code like any other proposed change: review the diff, run the project's tests and verify the behavior locally before pushing.

Key takeaways · AI-distilled
  • A GitHub Copilot app session can be opened directly in VS Code with its task, plan and conversation carried over alongside the agent's diff, so the work continues without re-describing it in a new chat.
  • VS Code opens the same isolated worktree the session used, so hand edits build directly on the agent's changes without copying files between directories or recreating the branch.
  • Pushing from that worktree updates the pull request already associated with the session, with no manual step to reconnect the work.
  • GitHub's guide says to review agent changes like a person's: check conventions, edge cases, unrelated edits and test coverage, then run the repository's tests and lint locally before pushing.
Terms in this piece · Glossary
  • Session — One conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.
  • Git worktree — A separate working directory attached to the same Git repository.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Function — A named block of instructions that takes inputs, called arguments, and hands back a result, called its return value.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source github.blog
Tools in this story
More from Kayla Cinnamon
Recommended reads