fix: 收敛 Workbench server-state 读写口

This commit is contained in:
lyon
2026-06-19 00:54:16 +08:00
parent f1e605b031
commit 9682c2d183
6 changed files with 178 additions and 141 deletions
@@ -22,10 +22,12 @@ test.describe("submit session authority", () => {
expect(legacyGets).toEqual([]);
});
test("replay preserves user prompt when messages page has empty user text but list preview has authority", async ({ page }) => {
test("message page empty user text is diagnostic, not repaired from list preview", async ({ page }) => {
await gotoWorkbench(page, "/workbench/sessions/ses_submit_split");
await expect(page.locator(sessionTab("ses_submit_split"))).toContainText("workbench submit race probe redacted");
await expect(page.locator(`${selectors.messageCard}[data-role="user"]`).first()).toContainText("workbench submit race probe redacted");
const userCard = page.locator(`${selectors.messageCard}[data-role="user"]`).first();
await expect(userCard).not.toContainText("workbench submit race probe redacted");
await expect(userCard).toContainText("Workbench read model 未返回 user text");
await expect(page.locator(`${selectors.messageCard}[data-role="agent"][data-status="running"]`)).toBeVisible();
const state = await fakeServerState(page);