fix double cancel

This commit is contained in:
Andrew Pareles 2025-04-30 22:00:52 -07:00
parent d9f2fcd700
commit e424a2cdbd
3 changed files with 0 additions and 8 deletions

View file

@ -1097,7 +1097,6 @@ We only need to do it for files that were edited since `from`, ie files between
// interrupt existing stream
if (this.streamState[threadId]?.isRunning) {
console.log('stopping....')
await this.abortRunning(threadId)
}

View file

@ -314,11 +314,6 @@ export const VoidChatArea: React.FC<VoidChatAreaProps> = ({
onClick={(e) => {
onClickAnywhere?.()
}}
onKeyDown={(e: React.KeyboardEvent) => {
if (e.key === 'Escape' && isStreaming && onAbort) {
onAbort();
}
}}
>
{/* Selections section */}
{showSelections && selections && setSelections && (

View file

@ -667,8 +667,6 @@ const sendGeminiChat = async ({
chatMode,
}: SendChatParams_Internal) => {
console.log('MESSAGES', JSON.stringify(messages, null, 2))
if (providerName !== 'gemini') throw new Error(`Sending Gemini chat, but provider was ${providerName}`)
const thisConfig = settingsOfProvider[providerName]