feat: OpenMesh 基础平台与 MD/PDF 转换技能
Some checks failed
CI / pytest (push) Has been cancelled
CI / gui-unit (push) Has been cancelled
CI / gui-e2e (push) Has been cancelled

- 后端: 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:
2026-09-13 23:41:04 +08:00
commit 6f402ffcee
638 changed files with 154534 additions and 0 deletions

View 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();
});