feat: OpenMesh 基础平台与 MD/PDF 转换技能
- 后端: coworker 智能体框架, WS API, 文件上传, 附件处理 - 前端: Open WebUI, 文件全量走 upload API (含 MD/TXT/JSON 等文本类) - 技能: md-to-office (pandoc + wkhtmltopdf) - 修复: 上传文件路径丢失, Agent 搜索浪费, 输出文件跑到 uploads/ - 打包: PyInstaller one-dir, 预打包 pandoc/wkhtmltopdf/chromium
This commit is contained in:
33
surfaces/gui/e2e/model-switch.spec.ts
Normal file
33
surfaces/gui/e2e/model-switch.spec.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
// Model-layer roadmap item 3 (2026-07-22): the model picker stays actionable for the
|
||||
// session's whole life (supersedes the 2026-07-04 lock that hid it after the first turn).
|
||||
// A mid-session switch drops a persisted info marker into the transcript, and later
|
||||
// messages ride the new model.
|
||||
import { expect } from "@playwright/test";
|
||||
import { test } from "./fixtures";
|
||||
|
||||
test("mid-session model switch shows the marker and later turns use the new model", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/");
|
||||
await page.getByText("Draft the launch note").first().click();
|
||||
const box = page.getByPlaceholder(/Ask the coworker/);
|
||||
await box.fill("hello there");
|
||||
await box.press("Enter");
|
||||
await expect(page.getByText("Echo: hello there", { exact: false }).first()).toBeVisible();
|
||||
|
||||
// The picker is still in the composer after the first turn (the old lock hid it).
|
||||
const picker = page.locator(".dd").filter({ hasText: "Claude Opus 4.8" });
|
||||
await expect(picker).toBeVisible();
|
||||
await picker.locator(".pill").click();
|
||||
await page.locator(".dd-item").filter({ hasText: "GPT-5.5" }).click();
|
||||
|
||||
// The switch marker lands in the transcript…
|
||||
await expect(page.getByText(/Model switched to gpt-5.5/).first()).toBeVisible();
|
||||
|
||||
// …and the next message carries the new model (the fixture echoes it back).
|
||||
await box.fill("after the switch");
|
||||
await box.press("Enter");
|
||||
await expect(
|
||||
page.getByText("Echo: after the switch [model=gpt-5.5]", { exact: false }).first(),
|
||||
).toBeVisible();
|
||||
});
|
||||
Reference in New Issue
Block a user