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:
21
surfaces/gui/e2e/turn-state.spec.ts
Normal file
21
surfaces/gui/e2e/turn-state.spec.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// Reconnect-mid-turn (owner catch 2026-08-24, v0.2.0 walkthrough): opening a session
|
||||
// whose turn is already running server-side never sees a live `turn_start`, so `running`
|
||||
// must be restored from the ws `ready` payload — otherwise the Stop button and the
|
||||
// "Waiting for agent" row vanish and the user cannot stop the turn.
|
||||
import { expect } from "@playwright/test";
|
||||
import { test } from "./fixtures";
|
||||
|
||||
test("opening a session with a live turn shows Stop and the waiting row", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
// "Long audit" is below the sidebar's peek cap — expand the list first.
|
||||
await page.getByRole("button", { name: /Show more/ }).first().click();
|
||||
await page.getByTitle("Long audit").click();
|
||||
|
||||
// ready carried running:true — Stop replaces Send, the waiting row spins.
|
||||
await expect(page.getByRole("button", { name: /Stop/ })).toBeVisible();
|
||||
await expect(page.getByText("Waiting for agent...")).toBeVisible();
|
||||
|
||||
// An idle session still gets the plain send arrow (running:false path).
|
||||
await page.getByText("Draft the launch note").first().click();
|
||||
await expect(page.getByRole("button", { name: /Stop/ })).toHaveCount(0);
|
||||
});
|
||||
Reference in New Issue
Block a user