(chatKey: string, assistantId: string)
| 516 | } |
| 517 | |
| 518 | function selectAssistantForSession(chatKey: string, assistantId: string): boolean { |
| 519 | const state = getSessionState(chatKey) |
| 520 | if (!state || state.isAIThinking) return false |
| 521 | |
| 522 | const buffer = getOrCreateBuffer(state, getDisplayedBufferKey(state), assistantId) |
| 523 | buffer.assistantId = assistantId |
| 524 | state.selectedAssistantId = assistantId |
| 525 | assistantStore.selectAssistant(assistantId) |
| 526 | return true |
| 527 | } |
| 528 | |
| 529 | async function loadAIChat(chatKey: string, aiChatId: string): Promise<boolean> { |
| 530 | const state = getSessionState(chatKey) |
no test coverage detected