test(app): benchmark populated chat Back and document UX review

This commit is contained in:
2026-10-24 11:24:47 +01:00
parent 877c2f1acd
commit ac75da12e4
6 changed files with 197 additions and 3 deletions
+2 -2
View File
@@ -310,7 +310,7 @@ async function staticFile(base, pathname, req, res) {
* It serves the built probe bundle and upgrades /connect on the same origin, so
* the normal web composition infers this server from Uri.base.
*/
export async function startFixture({ root, runs = RUNS, runDetail, files = {} }) {
export async function startFixture({ root, runs = RUNS, runDetail, files = {}, chatMessages }) {
const base = await realpath(root);
const connections = new Set();
const sockets = new Set();
@@ -564,7 +564,7 @@ export async function startFixture({ root, runs = RUNS, runDetail, files = {} })
client.send({
id: request.id, type: 'chat_history',
chat_history: {
messages: [
messages: chatMessages ?? [
{ id: 'm1', session_id: CHAT_SESSION.id, role: 'user',
parts: [{ type: 'text', text: 'Read-only probe question.' }] },
{ id: 'm2', session_id: CHAT_SESSION.id, role: 'assistant',