Sync upstream v3.2.6: Loop checkboxes, Notes drag handle, US English replies, app update fetch (v3.2.6)

- Implement's and Review's confirm panes carry a Loop checkbox in place of
  the dashboard's loop cards; loop end-screen buttons show a spinner.
- The stacked Notes panel gets a drag handle.
- Every skill prompt and the console contracts say to reply in US English.
- The desktop app offers Update to latest when the skills are newer, and
  plan2code update refetches an app that install.json does not record.
- Devin Balanced maps to Sonnet 5.5 Medium.
This commit is contained in:
jparkerweb committed 2026-12-04 22:35:28 -08:00
1 parent 9629961f36
commit 658c813428
70 files changed
+818 -242

No files matched your search

+39
View File
@@ -97,6 +97,20 @@ test("install record: recordInstalled and forgetInstalled round trip a sorted se
assert.deepEqual(fs.readdirSync(path.dirname(RECORD)), ["install.json"]);
});
test("install record: appVersion belongs to the app piece, survives other writes and goes with the piece", () => {
clearRecord();
installer.recordInstalled("skills");
installer.recordInstalled("app", { appVersion: "9.9.9" });
assert.equal(installer.readInstallRecord().appVersion, "9.9.9");
installer.recordInstalled("launcher");
installer.recordInstalled("statusline");
assert.equal(installer.readInstallRecord().appVersion, "9.9.9", "another piece's write keeps it");
installer.forgetInstalled("statusline");
assert.equal(installer.readInstallRecord().appVersion, "9.9.9");
installer.forgetInstalled("app");
assert.equal("appVersion" in installer.readInstallRecord(), false, "no app, no appVersion");
});
test("install record: a missing or unparsable record reads as null, and forgetting needs none", () => {
clearRecord();
installer.forgetInstalled("skills");
@@ -279,6 +293,30 @@ test("update: a record on the new version over an older plan2code command instal
assert.deepEqual(idle.ran(), []);
});
test("update: a record on the new version over an app that was never recorded at it installs the app again, without --force", async () => {
// The stuck state: skills and command are new, the app file is still an older release's, and the record already says new.
writeLauncherVersion(VERSION);
for (const appVersion of [undefined, "1.0.0"]) {
fs.mkdirSync(path.dirname(RECORD), { recursive: true });
fs.writeFileSync(RECORD, JSON.stringify({ version: VERSION, scope: "global", pieces: ["app", "launcher", "skills"], ...(appVersion ? { appVersion } : {}) }));
const fake = fakeSteps();
const { code, out } = await runUpdate(fake.steps);
assert.equal(code, 0, out);
assert.doesNotMatch(out, /Already on/);
assert.match(out, /desktop app is not recorded at/);
assert.deepEqual(fake.ran(), ["skills", "app"]);
}
// The app recorded at this version is in place: nothing to do.
fs.writeFileSync(RECORD, JSON.stringify({ version: VERSION, scope: "global", pieces: ["app", "launcher", "skills"], appVersion: VERSION }));
const idle = fakeSteps();
assert.match((await runUpdate(idle.steps)).out, /Already on/);
assert.deepEqual(idle.ran(), []);
// A record without the app never asks about it.
fs.writeFileSync(RECORD, JSON.stringify({ version: VERSION, scope: "global", pieces: ["launcher", "skills"] }));
const noApp = fakeSteps();
assert.match((await runUpdate(noApp.steps)).out, /Already on/);
});
test("update: the record keeps the old version until every piece is in, so a stopped update retries", async () => {
writeRecord(["skills", "launcher", "app"]);
const seen = [];
@@ -824,6 +862,7 @@ test("app installed: the file is downloaded, verified, placed and recorded", { s
assert.equal(outcome.app, true);
assert.deepEqual(fs.readFileSync(installer.APP_DEST), bytes);
assert.deepEqual(installer.readInstallRecord().pieces, ["app", "launcher", "skills"]);
assert.equal(installer.readInstallRecord().appVersion, VERSION, "the record says which release the app file is");
assert.deepEqual(fs.readdirSync(APP_DIR), [path.basename(installer.APP_DEST)], "no temp or .old file is left");
assert.match(out, /Downloading the desktop app \(1 KB\)\.\.\./, "piped: the size, on one plain line");
assert.match(out, /not code-signed/);