GitHub Copilot Launches Stacked Sessions: A Real-World Test Refactoring a 10-Year-Old Codebase
GitHub Blog AI/ML · rss · 2026-07-31
The GitHub Copilot app recently introduced "Stacked Sessions," allowing multiple tasks to be chained within the same repository. The context and changes from a previous session directly feed into the next, automatically generating stacked Pull Requests.
The author shared a hands-on experience using this feature to modernize a 10-year-old personal project:
- Task Breakdown: Facing severely outdated dependencies (e.g., React 15), the author used Plan mode to let AI evaluate and formulate a modernization plan.
- Context Flow: Upon discovering branch misalignment or needing to pivot, Copilot seamlessly closed failed PRs and ported existing styling decisions to a new target branch.
- Controlling Scope Creep: To avoid generating massive, unreviewable 10,000-line PRs, the author used stacked sessions to split "frontend styling updates" and "replacing the deprecated react-bootstrap library" into two interdependent PRs.
This workflow of nesting session contexts and code branches significantly reduces the cognitive load of maintaining legacy code, showcasing a new paradigm for AI coding tools in complex engineering refactoring.
More from coding & agent
- Software products need an API/MCP/plugin now: agents will drive acquisition and retention — omooretweets · 2026-12-02
- Matt Shumer says collaborating with Jacob humbles his AI-orchestration skills ahead of Spawn — mattshumer_ · 2026-12-02
- LiveCraft benchmark: top agents score just 30.3/100 in real-time Minecraft worlds — Chengxing Xie · 2026-12-02
- LegoReview mines 556k PRs for verifiable review data, boosting SWE-bench Pro V2 Hard to 70.6 — Lego-X · 2026-12-02
- Steve Yegge after a year of software factories: the last bottleneck is human attention — Steve_Yegge · 2026-12-02
- Stop telling Claude to 'build an Airbnb' — 5 copy-paste prompts for sturdy apps — alex_verem · 2026-12-02