Revert "Standardize Session Name Attribute" (#5250)

This commit is contained in:
Michael Neale
2025-10-19 03:44:30 +11:00
committed by GitHub
parent 9b4c8726f1
commit 890393bb68
29 changed files with 237 additions and 1193 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ export function useAgent(): UseAgentReturn {
const messages = agentSession.conversation || [];
return {
sessionId: agentSession.id,
name: agentSession.recipe?.title || agentSession.name,
title: agentSession.recipe?.title || agentSession.description,
messageHistoryIndex: 0,
messages,
recipe: agentSession.recipe,
@@ -182,7 +182,7 @@ export function useAgent(): UseAgentReturn {
const messages = initContext.recipe && !initContext.resumeSessionId ? [] : conversation;
let initChat: ChatType = {
sessionId: agentSession.id,
name: agentSession.recipe?.title || agentSession.name,
title: agentSession.recipe?.title || agentSession.description,
messageHistoryIndex: 0,
messages: messages,
recipe: recipe,
+1 -1
View File
@@ -131,7 +131,7 @@ describe('useChatEngine', () => {
const mockChat: ChatType = {
sessionId: 'test-chat',
messages: initialMessages,
name: 'Test Chat',
title: 'Test Chat',
messageHistoryIndex: 0,
};