feat(harness): add system alert for conversation switching (#910)

This commit is contained in:
Kian Jones
2026-02-12 12:43:23 -08:00
committed by GitHub
parent cbd46b9923
commit a81b8f7b5d
5 changed files with 283 additions and 6 deletions

View File

@@ -17,7 +17,13 @@ interface ConversationSelectorProps {
agentId: string;
agentName?: string;
currentConversationId: string;
onSelect: (conversationId: string) => void;
onSelect: (
conversationId: string,
context?: {
summary?: string;
messageCount: number;
},
) => void;
onNewConversation: () => void;
onCancel: () => void;
}
@@ -370,7 +376,10 @@ export function ConversationSelector({
} else if (key.return) {
const selected = pageConversations[selectedIndex];
if (selected?.conversation.id) {
onSelect(selected.conversation.id);
onSelect(selected.conversation.id, {
summary: selected.conversation.summary ?? undefined,
messageCount: selected.messageCount,
});
}
} else if (key.escape) {
onCancel();