Complete prompt presets, body-priority panes and clearer chat and stage layouts
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user