* Recommend Claude Opus 5.5 by bumping the Pi model catalog The pinned pi-ai 0.85.1 had no Claude Opus 5.5, so the connect flow fell back to Opus 5. pi-ai and pi-agent-core 0.87.1 add it, and the keyless recommendation now preselects it. The new catalog names router aliases "Qwen Max Latest (Qwen3.8 Max)"; those now read "(auto-updates)" like the other alias labels, so no picker entry claims to be "latest". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Name HTTPS as the cause when dictation is unavailable, and translate it Over plain HTTP on a LAN address, Safari hides the microphone and speech recognition, so voice mode said the browser had no dictation, in English inside a German UI. Dictation now checks for a secure context first and says to open the address with https://. Its other errors go through Lingui too, and Safari's blocked recognizer gets a clear message instead of "Dictation failed: not-allowed". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Serve a fake Kokoro voice server in the E2E harness Onboarding's voice step connects to the local Kokoro server on its default port, so the shell E2E failed on any machine where nothing (or a misbehaving server) listened there: the failed request shows up as a browser console error. The harness now starts an offline stand-in and points KOKORO_BASE_URL at it, so the suite no longer depends on the runner host's own voice server. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Show only the recommended sign-in until a model is connected With no model connected, "Connect model" opened the full model settings: provider list, tiers and a model picker, even though the recommendation was already preselected. Until something is connected, the Models panel now shows just the preselected model with its sign-in and API key field; "Other providers" reveals the full settings. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Give the second chart-links test the same cold-load allowance as the first Each Playwright test runs in a fresh browser context, so the second test's first navigation re-fetches the lazily imported Plot chunk just like the first test's warm-up does. On a loaded CI runner that exceeded the default 20 s expect timeout. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Use the recommended model as the Anthropic deployment default A deployment that sets only ANTHROPIC_API_KEY and PI_DEFAULT_PROVIDER=anthropic now runs Claude Opus 5.5, the same model the connect flow preselects, instead of an older default. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Run every space on the deployment's local models without a connect step A deployment with PI_DEFAULT_PROVIDER=local and RAKAZO_LOCAL_MODELS set still asked every user to connect a model, because only OpenRouter and Anthropic counted as a deployment model. Configured local models now do, keylessly. RAKAZO_LOCAL_TIERS assigns local models to the tiers the agent delegates to, for spaces that have not mapped their own, and a RAKAZO_LOCAL_MODELS entry can name its own server (id=url) when the models run behind different endpoints. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Hide model choices when the deployment routes models itself When the server provides its own models, the system picks and routes them per task, so Settings no longer offers Models and bot settings no longer offer Model and Thinking, on web and mobile. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Wait for the workspace pane's width transition before measuring it The pane animates its width over 300 ms, so a single boundingBox read right after it opens can land mid-transition on a slow runner. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD * Allow chart re-renders inside the chart-links loops to take longer Each navigation in the loops renders Observable Plot again. On a loaded CI runner that exceeded the default expect timeout even after the warm-up, so the per-iteration visibility checks get 30 s. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWEAjTw26eRf3ZXTXfRjmD --------- Co-authored-by: Claude <noreply@anthropic.com>
62 lines
3.0 KiB
TypeScript
62 lines
3.0 KiB
TypeScript
/**
|
|
* E2E: a new account reaches onboarding and, without a model, sees how to connect one.
|
|
*/
|
|
import { expect, test } from "@playwright/test";
|
|
import { captureScreenshot, completeOnboarding, routePatchRpc, signup } from "./helpers";
|
|
|
|
test("a signed-out visit to onboarding returns there after sign-in", async ({ page }) => {
|
|
const email = `return-onboarding-${Date.now()}@rakazo.test`;
|
|
await signup(page, email, "password12", "Return");
|
|
await page.waitForURL(/\/onboarding$/, { timeout: 20_000 });
|
|
|
|
await page.context().clearCookies();
|
|
await page.goto("/onboarding", { waitUntil: "domcontentloaded" });
|
|
await page.waitForURL((url) => url.pathname === "/sign-in");
|
|
expect(new URL(page.url()).searchParams.get("next")).toBe("/onboarding");
|
|
|
|
await page.getByPlaceholder("Your email address").fill(email);
|
|
await page.getByPlaceholder("Password").fill("password12");
|
|
await page.getByRole("button", { name: "Continue with email" }).click();
|
|
await page.waitForURL(/\/onboarding$/, { timeout: 20_000 });
|
|
await expect(page.locator('[data-rakazo-surface="onboarding"]')).toBeVisible();
|
|
});
|
|
|
|
test("without a model the composer offers to connect one", async ({ page }) => {
|
|
const testInfo = test.info();
|
|
await signup(page, `model-needed-${Date.now()}@rakazo.test`, "password12", "Model needed");
|
|
await completeOnboarding(page, undefined, { mainConversation: true });
|
|
|
|
// Scripted CI has a model; this is what the API returns without one.
|
|
const keyless = {
|
|
needsModel: true,
|
|
defaultProvider: "anthropic",
|
|
defaultModel: "claude-opus-5-5",
|
|
};
|
|
await routePatchRpc(page, "bootstrap", (json) => ({
|
|
...json,
|
|
me: { ...(json.me as Record<string, unknown>), ...keyless },
|
|
}));
|
|
await routePatchRpc(page, "me", (json) => ({ ...json, ...keyless }));
|
|
await page.reload({ waitUntil: "domcontentloaded" });
|
|
|
|
const notice = page.getByTestId("composer-model-needed");
|
|
await expect(notice).toContainText("Connect a model so your Oo can reply.");
|
|
await captureScreenshot(page, testInfo, "first-conversation-model-needed");
|
|
|
|
await notice.getByRole("button", { name: "Connect model" }).click();
|
|
const settings = page.getByTestId("model-settings");
|
|
await expect(settings).toBeVisible();
|
|
// The recommendation is preselected, so only the key or sign-in is left.
|
|
await expect(settings).toContainText("Claude Opus 5.5");
|
|
await expect(settings.getByRole("combobox", { name: "Model" })).toHaveCount(0);
|
|
await expect(settings.getByRole("button", { name: /Sign in with Claude/ })).toBeVisible();
|
|
await expect(settings.getByLabel("Or connect an API key")).toBeVisible();
|
|
await captureScreenshot(page, testInfo, "model-settings-recommended");
|
|
await page.emulateMedia({ colorScheme: "dark" });
|
|
await expect(page.locator("html")).toHaveAttribute("data-theme", "dark");
|
|
await captureScreenshot(page, testInfo, "model-settings-recommended-dark");
|
|
|
|
await settings.getByRole("button", { name: "Other providers" }).click();
|
|
await expect(settings.getByRole("combobox", { name: "Model" })).toHaveText("Claude Opus 5.5");
|
|
});
|