Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
GitHub Blog AI · 2026/7/30 17:30:24
Stacked sessions and pull requests in the GitHub Copilot app
AI 中文解读
GitHub Copilot App推出了一个超实用的新功能:堆叠会话和拉取请求,让AI能像人类一样连续处理多个相互关联的任务,不再是单次问答的“一次性工具”。
通俗来说,以前的AI编程助手就像一个随叫随到的咨询师,你问一句它答一句,但没法记住之前的对话。现在有了堆叠会话功能,AI可以在同一个项目中连续处理一系列任务,上一个完成的结果直接成为下一个任务的基础。比如作者想把自己十年前的旧网页项目升级,AI可以先分析现状,再制定方案,然后一步步完成依赖更新、样式重写等工作,这种连续的工作流大大降低了复杂性。
这项功能对开发者来说意义重大——维护老旧项目不再是噩梦。很多个人或小团队的项目因为技术债务积累而难以更新,现在可以借助AI一步步重构,把原本需要数周的痛苦工作缩短到几小时。对普通用户而言,这意味着未来的软件更新会更及时、bug修复更快,因为开发者维护旧代码的成本大幅降低了。
I want you to look at this screenshot for a moment from the GitHub Copilot app. It’s a small one, it’s got a lot of icons, and it tells the most glorious story that I’m really excited about.
This image is a set of stacked sessions. They’re a series of tasks in the same repository, where each session builds off each other!
More on those below, but first, why is this screenshot so magical? We need to go back more than a decade to start. I have this very old repo of mine for a personal app. I first made it ages ago (end of 2014-ish), and it’s done what I want it to do (it’s like a personal “life” dashboard of calendars and smart devices in my home and task management) for all those years. I occasionally do some updates, but those have gotten harder and harder to wrangle.
My dependencies had gotten old. Embarrassingly old. I was using React 15 (which was released in 2016), Less for CSS pre-processing, and a version of react-bootstrap from around that time. Yes, you read that right. Bootstrap. This was old.
Trying to untangle this absolute mess before AI would have taken me weeks. I had tried and given up before. It’s not the largest app in the world, but it’s juuuust big enough that it would be painful, and the juice was simply not worth the squeeze.
…but we do have AI now, and so I fired up the GitHub Copilot app, added the repo, and got started.
First step: Could I one-shot this?
No.
I tried though! This is the prompt that I used in Plan mode:
I want to modernize the frontend for this project. I first wrote a lot of this code more than 10 years ago and it should be cleaned up a lot. I'm thinking we start either using Tailwind or just vanilla CSS (please vet everything to help me decide), we remove all Less (etc), and clean everything up accessibility-wise and responsiveness-wise. Right now I really want to just focus on styles, and then slowly but surely organize and consolidate the React functionality. It might be worth modernizing dependencies, too. Let's come up with a plan around this before diving in.
1. Nothing is sacred, it's okay if we have to completely start over some parts
2. Links should change colors and add underlines on hover/focus
3. Input boxes should have a smaller border radius in general, and their labels should be cleaner
4. There should be good wrapping and a max-width on containers so that an input box doesn't span an entire wide monitor.
I passed this into Claude Opus 4.8 got a Rubber Duck review from GPT-5.5, and had to do quite a bit of back-and-forth to make decisions. Once I got to a place I was happy with, I hit “go” and let the app go to town on my project to see if it would work!
…it didn’t, and it was my fault.
Second step: Realizing I had tried this before
So, remember when I said I’d “tried and given up before?” Turns out, I actually had an old devbranch where I actually had modernized some parts, and didn’t realize the compatibility issues I’d run into.
But, that was a good thing!
When I ran the new version from this session, I realized that I was branching off main, but that my current deployment that I was using regularly was using my partially updated version on dev. So, some wanted features that I had made for myself needed to be included in this set of changes. But, the changes were just big enough that I actually had to apply those changes to the devbranch to save my sanity a bit, rather than pull in the devchanges to main.
Pre-AI… my word, this would have made me pull my hair out in frustration. I was admittedly frustrated here, too. I had spent time and tokens trying to get this running with what I thought was a decent plan. But! I was able to switch gears (and sessions) with a simple ask, which was way cooler than I expected it to be:
All was not wasted! Copilot made a new session for me, closed
分享
阅读原文 ↗