fix(#300): update stale comments that described old buggy behavior

Co-authored-by: glittercowboy <186001655+glittercowboy@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-14 06:10:42 +00:00
parent ece02e5492
commit a89f45ce91
4 changed files with 23 additions and 4 deletions

16
package-lock.json generated
View file

@ -4086,6 +4086,7 @@
"@gsd/pi-tui": "*",
"@mariozechner/jiti": "^2.6.2",
"@silvia-odwyer/photon-node": "^0.3.4",
"@types/node": "^25.5.0",
"better-sqlite3": "^11.7.0",
"chalk": "^5.5.0",
"diff": "^8.0.2",
@ -4108,6 +4109,21 @@
"@types/proper-lockfile": "^4.1.4"
}
},
"packages/pi-coding-agent/node_modules/@types/node": {
"version": "25.5.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.0.tgz",
"integrity": "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==",
"license": "MIT",
"dependencies": {
"undici-types": "~7.18.0"
}
},
"packages/pi-coding-agent/node_modules/undici-types": {
"version": "7.18.2",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz",
"integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==",
"license": "MIT"
},
"packages/pi-tui": {
"name": "@gsd/pi-tui",
"version": "0.57.1",

View file

@ -30,6 +30,8 @@
"@gsd/pi-tui": "*",
"@mariozechner/jiti": "^2.6.2",
"@silvia-odwyer/photon-node": "^0.3.4",
"@types/node": "^25.5.0",
"better-sqlite3": "^11.7.0",
"chalk": "^5.5.0",
"diff": "^8.0.2",
"extract-zip": "^2.0.1",
@ -42,7 +44,6 @@
"proper-lockfile": "^4.1.2",
"strip-ansi": "^7.1.0",
"undici": "^7.19.1",
"better-sqlite3": "^11.7.0",
"yaml": "^2.8.2"
},
"devDependencies": {

View file

@ -475,8 +475,8 @@ export async function startAuto(
// Capture the integration branch — records the branch the user was on when
// auto-mode started. Slice branches will merge back to this branch instead
// of the repo's default (main/master). Idempotent: only writes if not
// already recorded, so restarts/resumes don't overwrite.
// of the repo's default (main/master). Idempotent when the branch is the
// same; updates the record when started from a different branch (#300).
if (currentMilestoneId) {
captureIntegrationBranch(base, currentMilestoneId);
setActiveMilestoneId(base, currentMilestoneId);

View file

@ -55,7 +55,9 @@ export function setActiveMilestoneId(basePath: string, milestoneId: string | nul
/**
* Record the current branch as the integration branch for a milestone.
* Called once when auto-mode starts captures where slice branches should
* merge back to. No-op if already recorded or if on a GSD slice branch.
* merge back to. No-op if the same branch is already recorded. Updates the
* record when the user starts from a different branch (#300). Always a no-op
* if on a GSD slice branch.
*/
export function captureIntegrationBranch(basePath: string, milestoneId: string): void {
const svc = getService(basePath);