From b56ddd44bc68a6514bc2a0d38aaf4326c5368362 Mon Sep 17 00:00:00 2001 From: aihop <4408344+hhyykk@users.noreply.github.com> Date: Sat, 14 Nov 2026 11:11:34 +0800 Subject: [PATCH 1/3] perf(chat): avoid repeated timeline route scans Signed-off-by: aihop <4408344+hhyykk@users.noreply.github.com> --- .github/workflows/python-tests.yml | 1 + apps/presentation/dashboard/package.json | 2 + .../smoke/explore-timeline-benchmark.tsx | 85 +++++++++++++++++++ .../smoke/explore-timeline-scan-smoke.tsx | 53 ++++++++++++ .../goal-research-timeline.tsx | 25 +++++- 5 files changed, 164 insertions(+), 2 deletions(-) create mode 100644 apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx create mode 100644 apps/presentation/dashboard/smoke/explore-timeline-scan-smoke.tsx diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 2e9f6beac0..fd8033e79c 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -192,6 +192,7 @@ jobs: npm run smoke:chat-upgrade npm run smoke:delegation-search npm run smoke:task-inspector-route + npm run smoke:explore-timeline-scan - name: Qualify packaged team evidence and feedback recovery if: matrix.shard == 2 working-directory: apps/presentation/dashboard diff --git a/apps/presentation/dashboard/package.json b/apps/presentation/dashboard/package.json index 0051fbfde2..52a27c8eaf 100644 --- a/apps/presentation/dashboard/package.json +++ b/apps/presentation/dashboard/package.json @@ -12,6 +12,7 @@ "build": "tsc --noEmit && vite build && npm run build:chat", "build:chat": "node ../../../scripts/chat_bundle_launcher.mjs build", "build:desktop": "tsc --noEmit && vite build", + "benchmark:explore-timeline": "vite build --ssr smoke/explore-timeline-benchmark.tsx --outDir node_modules/.cache/explore-timeline-benchmark --emptyOutDir && NODE_ENV=production node node_modules/.cache/explore-timeline-benchmark/explore-timeline-benchmark.js", "check:css-custom-properties": "node ../../../scripts/check-css-custom-properties.test.mjs && node ../../../scripts/check-css-custom-properties.mjs dashboard", "dev": "bash ../../../scripts/dashboard-dev.sh", "dev:web": "vite --host 127.0.0.1", @@ -24,6 +25,7 @@ "smoke:capability-configuration": "rm -rf node_modules/.cache/loopx-capability-configuration-smoke && tsc --ignoreConfig --target ES2022 --module NodeNext --moduleResolution NodeNext --types node --skipLibCheck --strict --outDir node_modules/.cache/loopx-capability-configuration-smoke smoke/capability-configuration-smoke.ts src/data/capability-configuration.ts && node node_modules/.cache/loopx-capability-configuration-smoke/smoke/capability-configuration-smoke.js", "smoke:chat-model-menu": "vite build --ssr smoke/chat-model-menu-smoke.mjs --outDir node_modules/.cache/chat-model-menu --emptyOutDir && node node_modules/.cache/chat-model-menu/chat-model-menu-smoke.js", "smoke:chat-route": "vite build --ssr smoke/chat-route-smoke.ts --outDir node_modules/.cache/loopx-chat-route-smoke --emptyOutDir && node node_modules/.cache/loopx-chat-route-smoke/chat-route-smoke.js", + "smoke:explore-timeline-scan": "vite build --ssr smoke/explore-timeline-scan-smoke.tsx --outDir node_modules/.cache/explore-timeline-scan --emptyOutDir && node node_modules/.cache/explore-timeline-scan/explore-timeline-scan-smoke.js", "smoke:chat-stream-stall": "vite build --ssr smoke/chat-stream-stall-smoke.ts --outDir node_modules/.cache/loopx-chat-stream-stall --emptyOutDir && node node_modules/.cache/loopx-chat-stream-stall/chat-stream-stall-smoke.js", "smoke:chat-turn-acceptance-retry": "vite build --ssr smoke/chat-turn-acceptance-retry-smoke.ts --outDir node_modules/.cache/loopx-chat-turn-acceptance-retry --emptyOutDir && node node_modules/.cache/loopx-chat-turn-acceptance-retry/chat-turn-acceptance-retry-smoke.js", "smoke:demo-readiness": "bash ../../../scripts/loopx-python.sh --exec ../../../examples/dashboard-demo-readiness-smoke.py", diff --git a/apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx b/apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx new file mode 100644 index 0000000000..0947b4b678 --- /dev/null +++ b/apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx @@ -0,0 +1,85 @@ +import {createHash} from "node:crypto"; +import {mkdirSync, readFileSync, writeFileSync} from "node:fs"; +import {join} from "node:path"; +import {performance} from "node:perf_hooks"; +import {renderToStaticMarkup} from "react-dom/server"; +import {GoalResearchTimeline} from "../src/features/personal-workspace/goal-research-timeline"; +import {groupUnlinkedHistoryQuestions, parseExploreHistoryPage, projectExploreHistory} from "../../../../loopx/control_plane/presentation/explore_history"; +import {buildExploreTimeline} from "../../../../loopx/control_plane/presentation/explore_timeline"; + +const [fixturePath, outputDir] = process.argv.slice(2); +if (!fixturePath || !outputDir) throw new Error("Use --make-fixture or "); +if (fixturePath === "--make-fixture") { + const real = JSON.parse(readFileSync("src/data/fixtures/edgebench-graph-checkpoint-history.json", "utf8")); + const many: Record[] = [], single: Record[] = []; + const start = Date.UTC(2026, 0, 1); + const stamp = (ms: number) => new Date(ms).toISOString().replace(".000Z", "Z"); + for (let index = 0; index < 1200; index++) { + const goal = "synthetic-timeline", parent = `route-${index}-parent`, child = `route-${index}-child`; + const when = start + index * 120_000; + const event = (kind: string, id: string, extra: Record = {}) => ({ + schema_version: "loopx_explore_result_event_v0", event_id: `${kind}-${id}`, goal_id: goal, + event_kind: kind, result_id: id, recorded_at: stamp(when), title: `${kind} ${id}`, ...extra, + }); + many.push(event("node", child, {parent_id: parent, recorded_at: index % 100 === 0 ? "unknown" : stamp(when + 3_600_000), status: "open"})); + many.push(event("node", parent, {status: "exploring"})); + many.push(event("edge", `relation-${index}`, {from_node: parent, to_node: child, + edge_type: index % 3 === 0 ? "refutes" : "supports", summary: "Recorded relationship"})); + if (index % 25 === 0) many.push(event("edge", `dangling-${index}`, {from_node: parent, to_node: `missing-${index}`, edge_type: "supports"})); + if (index % 5 === 0) many.push(event("finding", `finding-${index}`, {node_id: parent, + status: index % 2 === 0 ? "refuted" : "confirmed", summary: "Recorded finding", evidence_refs: [`evidence:fixture-${index}`]})); + } + for (let index = 0; index < 800; index++) { + const goal = "synthetic-one-route", when = stamp(start + index * 300_000); + single.push({schema_version: "loopx_explore_result_event_v0", event_id: `node-${index}`, goal_id: goal, + event_kind: "node", result_id: `node-${index}`, recorded_at: when, title: `Node ${index}`, + parent_id: index ? `node-${index - 1}` : "", status: "open"}); + if (index) single.push({schema_version: "loopx_explore_result_event_v0", event_id: `edge-${index}`, goal_id: goal, + event_kind: "edge", result_id: `edge-${index}`, recorded_at: when, title: `Edge ${index}`, + from_node: `node-${index - 1}`, to_node: `node-${index}`, edge_type: "supports", summary: "Recorded relationship"}); + } + const fixture = [{name: "public-checkpoint", goal_id: real.goal_id, events: real.events}, + {name: "synthetic-many-routes", goal_id: "synthetic-timeline", events: many}, + {name: "synthetic-one-route", goal_id: "synthetic-one-route", events: single}]; + const bytes = Buffer.from(JSON.stringify(fixture)); + writeFileSync(outputDir, bytes, {flag: "wx"}); + console.log(JSON.stringify({fixture_sha256: createHash("sha256").update(bytes).digest("hex"), cases: fixture.map(row => ({name: row.name, events: row.events.length}))})); + process.exit(0); +} +const fixtureBytes = readFileSync(fixturePath); +const fixtures = JSON.parse(fixtureBytes.toString()) as Array<{name: string; goal_id: string; events: unknown[]}>; +mkdirSync(outputDir); +const cases = []; +for (const fixture of fixtures) { + const events = parseExploreHistoryPage({ok: true, goal_id: fixture.goal_id, total: fixture.events.length, + next_cursor: null, items: fixture.events}, fixture.goal_id).items; + const history = projectExploreHistory(events, fixture.goal_id); + const timeline = buildExploreTimeline(history.nodes, history.edges, history.events); + const dayGroups = groupUnlinkedHistoryQuestions(history.nodes, history.edges).groups; + const render = (zh: boolean, phase: number | null, complete: boolean) => renderToStaticMarkup( + {}} onSelect={() => {}} + onSelectMany={() => {}} onPhase={() => {}} timeLabel={value => new Date(value).toISOString()} + dayLabel={value => new Date(value).toISOString().slice(0, 10)}/>, + ); + const snapshots = []; + for (const [name, zh, phase, complete] of [["zh-all", true, null, true], ["en-phase", false, 1, true], ["zh-partial", true, null, false]] as const) { + const html = render(zh, phase, complete); + writeFileSync(join(outputDir, `${fixture.name}-${name}.html`), html); + snapshots.push({name, bytes: Buffer.byteLength(html), sha256: createHash("sha256").update(html).digest("hex")}); + } + for (let index = 0; index < 3; index++) render(true, null, true); + const samples = []; + for (let index = 0; index < 12; index++) { + const start = performance.now(); + const html = render(true, null, true); + samples.push(performance.now() - start); + if (createHash("sha256").update(html).digest("hex") !== snapshots[0]!.sha256) throw new Error("Repeated render changed output"); + } + const sorted = [...samples].sort((a, b) => a - b); + cases.push({name: fixture.name, events: events.length, nodes: timeline.nodes.size, edges: timeline.edges.length, + routes: timeline.routes.length, snapshots, samples_ms: samples, median_ms: (sorted[5]! + sorted[6]!) / 2}); +} +const report = {node: process.version, node_env: process.env.NODE_ENV, fixture_sha256: createHash("sha256").update(fixtureBytes).digest("hex"), cases}; +writeFileSync(join(outputDir, "report.json"), JSON.stringify(report, null, 2) + "\n"); +console.log(JSON.stringify(report)); diff --git a/apps/presentation/dashboard/smoke/explore-timeline-scan-smoke.tsx b/apps/presentation/dashboard/smoke/explore-timeline-scan-smoke.tsx new file mode 100644 index 0000000000..7b15223c0f --- /dev/null +++ b/apps/presentation/dashboard/smoke/explore-timeline-scan-smoke.tsx @@ -0,0 +1,53 @@ +import assert from "node:assert/strict"; +import {renderToStaticMarkup} from "react-dom/server"; +import {GoalResearchTimeline} from "../src/features/personal-workspace/goal-research-timeline"; +import {parseExploreHistoryPage, projectExploreHistory} from "../../../../loopx/control_plane/presentation/explore_history"; +import {buildExploreTimeline} from "../../../../loopx/control_plane/presentation/explore_timeline"; + +const goalId = "timeline-scan-fixture"; +const events: Record[] = []; +for (let index = 0; index < 40; index++) { + const parent = `parent-${index}`, child = `child-${index}`; + const event = (kind: string, id: string, extra: Record) => ({ + schema_version: "loopx_explore_result_event_v0", goal_id: goalId, event_kind: kind, + event_id: `${kind}-${id}`, result_id: id, title: id, recorded_at: "2026-01-01T00:00:00Z", ...extra, + }); + if (index === 0) { + events.push(event("node", "child-later", {parent_id: parent, recorded_at: "2026-01-01T02:00:00Z"})); + events.push(event("node", "child-unknown", {parent_id: parent, recorded_at: "unknown"})); + } + events.push(event("node", child, {parent_id: parent, recorded_at: "2026-01-01T01:00:00Z"})); + events.push(event("node", parent, {})); + events.push(event("edge", `edge-${index}`, {from_node: parent, to_node: child, edge_type: "supports", summary: `route-edge-${index}`})); + if (index === 0) { + events.push(event("edge", "back", {from_node: child, to_node: parent, edge_type: "refutes", summary: "route-back"})); + events.push(event("edge", "unknown", {from_node: parent, to_node: "child-unknown", edge_type: "supports", summary: "unknown-time-edge"})); + events.push(event("edge", "missing", {from_node: parent, to_node: "missing-node", edge_type: "supports", summary: "missing-node-edge"})); + } +} +const parsed = parseExploreHistoryPage({ok: true, goal_id: goalId, total: events.length, next_cursor: null, items: events}, goalId).items; +const history = projectExploreHistory(parsed, goalId); +const timeline = buildExploreTimeline(history.nodes, history.edges, history.events); +// Count source accesses instead of depending on a machine-specific time limit. +let routeReads = 0, edgeReads = 0; +const nodes = new Map([...timeline.nodes].map(([id, item]) => [id, { + ...item, get routeId() {routeReads++; return item.routeId;}, +}])); +const edges = timeline.edges.map(edge => ({...edge, get from_node() {edgeReads++; return edge.from_node;}})); +const html = renderToStaticMarkup( {}} onSelect={() => {}} onSelectMany={() => {}} + onPhase={() => {}} timeLabel={value => new Date(value).toISOString()} dayLabel={value => new Date(value).toISOString().slice(0, 10)}/>); +const routes = [...html.matchAll(/]*class="research-history-edges"[^>]*>(.*?)<\/svg>/gs)].map(match => match[1]!); +assert.equal(routes.length, 40); +for (const [index, route] of routes.entries()) { + const titles = [...route.matchAll(/(.*?)<\/title>/g)].map(match => match[1]); + assert.deepEqual(titles, index ? [`supports: route-edge-${index}`] : ["supports: route-edge-0", "refutes: route-back"]); +} +const firstParents = [...routes[0]!.matchAll(/class="is-grouping" d="([^"]+)"/g)].map(match => match[1]!); +assert.equal(firstParents.length, 2); +const endpoint = (path: string) => Number(path.match(/ ([\d.]+),26$/)?.[1]); +assert.ok(endpoint(firstParents[0]!) > endpoint(firstParents[1]!), "parent arcs keep source order, not timestamp order"); +assert.doesNotMatch(html, /unknown-time-edge|missing-node-edge/); +assert.ok(routeReads <= 4 * (nodes.size + edges.length), `nodes were repeatedly scanned: ${routeReads}`); +assert.ok(edgeReads <= 4 * edges.length, `edges were repeatedly scanned: ${edgeReads}`); +console.log(`explore timeline: 40 routes retained; ${routeReads} node and ${edgeReads} edge identity reads`); diff --git a/apps/presentation/dashboard/src/features/personal-workspace/goal-research-timeline.tsx b/apps/presentation/dashboard/src/features/personal-workspace/goal-research-timeline.tsx index 5dbf027af0..15ab93b594 100644 --- a/apps/presentation/dashboard/src/features/personal-workspace/goal-research-timeline.tsx +++ b/apps/presentation/dashboard/src/features/personal-workspace/goal-research-timeline.tsx @@ -109,6 +109,25 @@ export function GoalResearchTimeline({timeline, complete, zh, selectedIds, selec const groupedIds = new Set(dayGroups.flatMap(group => group.nodes.map(node => node.id))); const swarm = timeline.singles.filter(id => !groupedIds.has(id)).map(id => timeline.nodes.get(id)!).filter(item => item.first !== null); const unknownTime = [...timeline.nodes.values()].filter(item => item.first === null).length; + const routeParents = new Map<string, TimelineNode[]>(); + const routeEdges = new Map<string, (typeof timeline.edges)[number][]>(); + const manyRoutes = timeline.routes.length > 1; + if (manyRoutes) { + // Routes join known edge endpoints; preserve source order in the indexes. + for (const item of timeline.nodes.values()) { + if (item.routeId === null || !item.node.latest.parent_id) continue; + const parents = routeParents.get(item.routeId) ?? []; + parents.push(item); + routeParents.set(item.routeId, parents); + } + for (const edge of timeline.edges) { + const routeId = timeline.nodes.get(edge.from_node)?.routeId; + if (routeId == null || routeId !== timeline.nodes.get(edge.to_node)?.routeId) continue; + const edges = routeEdges.get(routeId) ?? []; + edges.push(edge); + routeEdges.set(routeId, edges); + } + } const phaseNote = timeline.phases.length === 1 ? (zh ? "全部记录归入同一阅读分组,仅为阅读组织,不是预声明的评估窗口。" : "All records share one reading group, for reading only; not a pre-declared evaluation window.") : copy.phaseNote; @@ -175,10 +194,12 @@ export function GoalResearchTimeline({timeline, complete, zh, selectedIds, selec const first = members[0]!, last = members.at(-1)!; const position = new Map(members.map(item => [item.node.id, item.first ?? start])); const x = (id: string) => ((position.get(id)! - start) / span) * 1000; + const parents = manyRoutes ? routeParents.get(route.id) ?? [] : [...timeline.nodes.values()]; + const edges = manyRoutes ? routeEdges.get(route.id) ?? [] : timeline.edges; const arcs = [ - ...[...timeline.nodes.values()].filter(item => item.routeId === route.id && position.has(item.node.id) && item.node.latest.parent_id && position.has(item.node.latest.parent_id)) + ...parents.filter(item => item.routeId === route.id && position.has(item.node.id) && item.node.latest.parent_id && position.has(item.node.latest.parent_id)) .map(item => ({key: `parent:${item.node.id}`, from: item.node.latest.parent_id, to: item.node.id, kind: "is-grouping", title: ""})), - ...timeline.edges.filter(edge => position.has(edge.from_node) && position.has(edge.to_node)) + ...edges.filter(edge => position.has(edge.from_node) && position.has(edge.to_node)) .map(edge => ({key: edge.event_id, from: edge.from_node, to: edge.to_node, kind: edge.edge_type === "refutes" ? "is-refutation" : "", title: `${edge.edge_type}: ${edge.summary}`})), ]; return <div className="research-route" key={route.id} role="group" aria-label={`${members.length} · ${first.node.latest.title}`}> From 818c5f848e6db5b60856d1231476e1a6ff6cfc31 Mon Sep 17 00:00:00 2001 From: aihop <4408344+hhyykk@users.noreply.github.com> Date: Tue, 17 Nov 2026 11:19:50 +0800 Subject: [PATCH 2/3] test(explore): benchmark timed and undated structured decisions Signed-off-by: aihop <4408344+hhyykk@users.noreply.github.com> --- .../dashboard/smoke/explore-timeline-benchmark.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx b/apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx index 0947b4b678..d3434e0c49 100644 --- a/apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx +++ b/apps/presentation/dashboard/smoke/explore-timeline-benchmark.tsx @@ -27,7 +27,10 @@ if (fixturePath === "--make-fixture") { edge_type: index % 3 === 0 ? "refutes" : "supports", summary: "Recorded relationship"})); if (index % 25 === 0) many.push(event("edge", `dangling-${index}`, {from_node: parent, to_node: `missing-${index}`, edge_type: "supports"})); if (index % 5 === 0) many.push(event("finding", `finding-${index}`, {node_id: parent, - status: index % 2 === 0 ? "refuted" : "confirmed", summary: "Recorded finding", evidence_refs: [`evidence:fixture-${index}`]})); + status: index % 2 === 0 ? "refuted" : "confirmed", recorded_at: index % 50 === 0 ? "unknown" : stamp(when), + summary: index % 10 === 0 + ? "Input revision: fixture Applicability: local rendering Observation: recorded relationship Interpretation: Outcome: changed retained: - source context changed: - next route stopped: - previous route" + : "Recorded finding", evidence_refs: [`evidence:fixture-${index}`]})); } for (let index = 0; index < 800; index++) { const goal = "synthetic-one-route", when = stamp(start + index * 300_000); From 9762c764b0f7a7a66fab687f5f4bf0775b1641a4 Mon Sep 17 00:00:00 2001 From: aihop <4408344+hhyykk@users.noreply.github.com> Date: Tue, 17 Nov 2026 12:22:56 +0800 Subject: [PATCH 3/3] fix(chat): preserve expanded queue body typography and evidence Signed-off-by: aihop <4408344+hhyykk@users.noreply.github.com> --- .github/workflows/release-artifacts.yml | 1 + .../src/features/personal-workspace/conversation-queue.css | 2 +- .../personal-workspace-browser/attached-host-follow-up.mjs | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index b7ce17a6f8..75fd2b46e5 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -570,6 +570,7 @@ jobs: path: | output/playwright/personal-workspace/acceptance-results.json output/playwright/personal-workspace/qualification.json + output/playwright/personal-workspace/attached-host-pending-queue*.png if-no-files-found: error retention-days: 7 diff --git a/apps/presentation/dashboard/src/features/personal-workspace/conversation-queue.css b/apps/presentation/dashboard/src/features/personal-workspace/conversation-queue.css index 88a98a01dd..f3ff8c147f 100644 --- a/apps/presentation/dashboard/src/features/personal-workspace/conversation-queue.css +++ b/apps/presentation/dashboard/src/features/personal-workspace/conversation-queue.css @@ -13,7 +13,7 @@ .personal-conversation-queue button:focus-visible, .personal-queue-row summary:focus-visible { outline: 2px solid var(--pw-blue); outline-offset: 2px; } .personal-queue-steer { flex-shrink: 0; } .personal-queue-message { margin: 8px 0 0; font-size: var(--text-body); line-height: var(--leading-body); } -.personal-queue-message p { white-space: pre-wrap; overflow-wrap: anywhere; } +.personal-queue-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-body); line-height: var(--leading-body); } .personal-queue-message img { display: block; max-width: 100%; max-height: 120px; object-fit: contain; } .personal-queue-feedback { margin: 0; padding: 0 10px 8px; color: var(--pw-muted); overflow-wrap: anywhere; } .personal-queue-actions { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; } diff --git a/examples/personal-workspace-browser/attached-host-follow-up.mjs b/examples/personal-workspace-browser/attached-host-follow-up.mjs index 2f70547ce1..8c372e6bfc 100644 --- a/examples/personal-workspace-browser/attached-host-follow-up.mjs +++ b/examples/personal-workspace-browser/attached-host-follow-up.mjs @@ -103,7 +103,7 @@ export const attachedHostFollowUpScenario = { const queuedFollowUp = page.locator(".personal-conversation-queue li").filter({ hasText: followUp }); await queuedFollowUp.waitFor({ timeout: 10_000 }); await queuedFollowUp.locator("summary").click(); - const expandedMessage = queuedFollowUp.locator(".personal-queue-message > p"); + const expandedMessage = queuedFollowUp.locator(".personal-queue-message").getByText(followUp, { exact: true }); await expandedMessage.waitFor(); const assertExpandedBodyTypography = async (viewport) => { const typography = await expandedMessage.evaluate(element => { @@ -125,6 +125,7 @@ export const attachedHostFollowUpScenario = { throw new Error(`Expanded queued message lost body typography at ${viewport}: ${JSON.stringify(typography)}`); } }; + await page.screenshot({ path: resolve(outputDir, "attached-host-pending-queue.png"), fullPage: false }); await assertExpandedBodyTypography("1440x900"); await page.locator(`.personal-composer-stop[data-turn-id="${runningTurnId(attachedGoal.id)}"]`).waitFor({ timeout: 10_000 }); if (page.__loopxRuntime.sessions.get(sessionIdFor(attachedGoal.id)).active_turn_id !== runningTurnId(attachedGoal.id)) { @@ -134,7 +135,6 @@ export const attachedHostFollowUpScenario = { if (await page.getByRole("alert").filter({ hasText: /发送失败|already running/u }).count()) { throw new Error("The queued follow-up was reported as a failed send"); } - await page.screenshot({ path: resolve(outputDir, "attached-host-pending-queue.png"), fullPage: false }); await page.setViewportSize({ width: 390, height: 844 }); await assertExpandedBodyTypography("390x844"); const stop = page.locator(`.personal-composer-stop[data-turn-id="${runningTurnId(attachedGoal.id)}"]`);