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

+49 -21
View File
@@ -1,6 +1,6 @@
// Page tests for the Implementation Loop's setup screen. The dashboard card
// that opens it only shows inside the desktop app, so these open the screen
// through its own module, then drive the real page. Run with:
// Page tests for the Implementation Loop's setup screen. Its Loop box only
// enables inside the desktop app, so these open the screen through its own
// module, then drive the real page. Run with:
// node --test scripts/test-web-console-page-loop.mjs
import test from "node:test";
@@ -8,7 +8,7 @@ import assert from "node:assert/strict";
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { pageSuite, openSession, tempProject, textOf } from "./page-test-helpers.mjs";
import { pageSuite, openSession, tempProject, textOf, frameInFakeApp } from "./page-test-helpers.mjs";
import { MODELS_DIR } from "./web-console-test-helpers.mjs";
const suite = pageSuite(test);
@@ -112,23 +112,6 @@ test("the web address field shows the name only beside an address, warns while t
assert.equal(reread.remembered, true);
});
// Stands a real window in for the app that frames the page, listening to what
// the page tells it; `answer` then replies the way the app's window does.
async function frameInFakeApp(s) {
await s.page.evaluate(() => {
const frame = document.createElement("iframe");
frame.hidden = true;
document.body.appendChild(frame);
const app = frame.contentWindow;
window.__told = [];
app.postMessage = (message) => window.__told.push(message);
Object.defineProperty(window, "parent", { value: app, configurable: true });
});
return (data) =>
s.page.evaluate((message) => {
window.dispatchEvent(new MessageEvent("message", { source: window.parent, data: message }));
}, data);
}
test("Cancel in the app's confirm leaves Start ready to press again; a real start locks it", async (t) => {
const s = await openSetup(t);
@@ -459,6 +442,51 @@ test("after Continue building replaces the Ask agent, the same stop again offers
assert.deepEqual(seen.told, ["loop-ask", "loop-resume"]);
});
const FINISHED = { kind: "finished", line: "All 1 phases built", phases: [{ n: 1, name: "API", commit: "abc1234" }], uncommitted: [], can: ["finalize", "dashboard"] };
test("a pressed Finalize shows a spinner and stays busy after the app's ok answer, and an error frees it", async (t) => {
const s = await openSetup(t);
await frameInFakeApp(s);
const seen = await s.page.evaluate(async (end) => {
const m = await import(new URL("screens/ending.js", document.baseURI).href);
const { page } = await import(new URL("state.js", document.baseURI).href);
const read = () => {
const card = m.renderLoopEnd(end);
const choices = [...card.querySelectorAll(".loop-end-choice")];
const of = (text) => choices.find((c) => c.querySelector("button").textContent.includes(text));
const fin = of("Finalize") || of("Starting Finalize");
const home = of("dashboard");
const b = fin.querySelector("button");
return {
busy: b.classList.contains("is-busy"),
disabled: b.disabled,
spinner: Boolean(b.querySelector(".spinner")),
label: b.textContent,
hint: fin.querySelector(".loop-end-hint").textContent,
otherDisabled: home.querySelector("button").disabled,
};
};
const before = read();
m.renderLoopEnd(end).querySelector(".loop-end-actions button").click();
const waiting = read();
page.loopAction = { kind: "loop-finalize-result", ok: true, error: null };
const started = read();
page.loopAction = { kind: "loop-finalize-result", ok: false, error: "no" };
const failed = read();
m.forgetLoopEnd();
page.loopAction = null;
return { before, waiting, started, failed, told: window.__told.map((x) => x.plan2code) };
}, FINISHED);
assert.deepEqual([seen.before.busy, seen.before.disabled], [false, false]);
for (const phase of [seen.waiting, seen.started]) {
assert.deepEqual([phase.busy, phase.disabled, phase.spinner, phase.otherDisabled], [true, true, true, true]);
assert.equal(phase.label, "Starting Finalize…");
assert.match(phase.hint, /starting in the terminal/);
}
assert.deepEqual([seen.failed.busy, seen.failed.disabled, seen.failed.label], [false, false, "Finalize"], "an error gives the button back");
assert.deepEqual(seen.told, ["loop-finalize"]);
});
// A real loop session: `open --loop` under the app's signal stamps the lock.
async function openLoopPage(t) {
return openSession(await suite.browser(), {