Complete prompt presets, body-priority panes and clearer chat and stage layouts

This commit is contained in:
2026-10-25 23:11:06 +00:00
parent de1b62791f
commit 121ace1cee
31 changed files with 990 additions and 396 deletions
+21 -1
View File
@@ -327,6 +327,8 @@ export async function startFixture({ root, runs = RUNS, runDetail, files = {}, c
let chatSubscribed = 0;
let chatHistory = 0;
const chatPrompts = [];
const chatCreateRequests = [];
const createdChats = [];
const shellOutputRequests = [];
const fileReads = [];
let chatRunning = false;
@@ -421,6 +423,7 @@ export async function startFixture({ root, runs = RUNS, runDetail, files = {}, c
chatSubscribed,
chatHistory,
chatPrompts,
chatCreateRequests,
shellOutputRequests,
chatRunning,
chatInterrupts,
@@ -552,7 +555,24 @@ export async function startFixture({ root, runs = RUNS, runDetail, files = {}, c
}
if (request.type === 'chat_sessions') {
client.send({ id: request.id, type: 'chat_sessions',
chat_sessions: chatSessions ?? [CHAT_SESSION] });
chat_sessions: [...(chatSessions ?? [CHAT_SESSION]), ...createdChats] });
return;
}
if (request.type === 'chat_directories') {
client.send({ id: request.id, type: 'chat_directories', chat_directories: ['/home/fixture', '/srv/probe'] });
return;
}
if (request.type === 'chat_backends') {
client.send({ id: request.id, type: 'chat_backends', chat_backends: ['opencode', 'claude'] });
return;
}
if (request.type === 'chat_create') {
const body = request.chat_create ?? {};
chatCreateRequests.push(body);
const session = { id: 'fixture_created_' + chatCreateRequests.length,
title: body.title, directory: body.directory, backend: body.backend };
createdChats.push(session);
client.send({ id: request.id, type: 'chat_create', chat_session: session });
return;
}
if (request.type === 'chat_subscribe') {