Merge remote-tracking branch 'origin/master' into fix/runner-paid-matrix-integrity

* origin/master:
  fix(onboarding): preserve draft through company refetch (#12735)
  feat(codex-local): give each Codex account its own home and path secret (#12709)
  feat(claude-local): add Claude Fable 5.1 support (#12730)
This commit is contained in:
Dotta committed 2026-09-02 19:32:45 -05:00
commit 2ffcc0104a
33 files changed
+3994 -728

No files matched your search

@@ -16,6 +16,28 @@ test("the exact published canary installs and reaches Connect a model", async ({
const pageErrors: string[] = [];
page.on("pageerror", (error) => pageErrors.push(error.message));
// Browser storage is scoped to the Paperclip origin, not to a data directory.
// A customer can therefore start a freshly installed server with an existing
// onboarding draft. Creating the organization invalidates the company list;
// this release check must prove that a refetch does not remount the wizard
// from that old draft and leave the customer on the name screen.
await page.addInitScript(() => {
localStorage.setItem("paperclip-onboarding-state", JSON.stringify({
step: 1,
companyName: "",
createdCompanyId: null,
}));
});
let delayCompanyListRefetch = false;
await page.route("**/api/companies", async (route) => {
if (delayCompanyListRefetch && route.request().method() === "GET") {
// Make the invalidation window observable. The previous implementation
// unmounted the live wizard for this entire request.
await new Promise((resolve) => setTimeout(resolve, 250));
}
await route.continue();
});
const health = await getJson<{
status: string;
version: string;
@@ -30,6 +52,7 @@ test("the exact published canary installs and reaches Connect a model", async ({
page.getByRole("heading", { name: "What is the name of your organization?" }),
).toBeVisible();
await page.getByRole("textbox").fill(companyName);
delayCompanyListRefetch = true;
await page.getByRole("button", { name: "Continue", exact: true }).click();
const agentNameField = page.locator("#onboarding-agent-name");
+21
View File
@@ -29,6 +29,26 @@ test.describe("Onboarding wizard", () => {
const pageErrors: string[] = [];
page.on("pageerror", (err) => pageErrors.push(err.message));
// `--data-dir` starts a new server, not a new browser profile. Keep a
// resumable draft here so this ordinary browser condition is covered when
// the company-list invalidation runs after the create request.
await page.addInitScript(() => {
localStorage.setItem("paperclip-onboarding-state", JSON.stringify({
step: 1,
companyName: "",
createdCompanyId: null,
}));
});
let delayCompanyListRefetch = false;
await page.route("**/api/companies", async (route) => {
if (delayCompanyListRefetch && route.request().method() === "GET") {
// Keep the invalidation observable: a background fetch must not reset
// the in-progress wizard.
await new Promise((resolve) => setTimeout(resolve, 250));
}
await route.continue();
});
// New-NUX surfaces are flag-gated default-OFF (PAP-136/137/138): turn the
// experimental flag on for this throwaway instance before driving them.
const flagRes = await page.request.patch("/api/instance/settings/experimental", {
@@ -56,6 +76,7 @@ test.describe("Onboarding wizard", () => {
page.getByRole("heading", { name: "What is the name of your organization?" }),
).toBeVisible({ timeout: 15_000 });
await page.getByPlaceholder("e.g. Northwind Labs").fill(COMPANY_NAME);
delayCompanyListRefetch = true;
await page.getByRole("button", { name: /^Continue/ }).click();
// Step 1's "Next" now creates the company and goes straight to the agent.