File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 24172417 history .messages [responseMessage .id ] = responseMessage ;
24182418 };
24192419
2420- const stopResponse = async () => {
2420+ const stopResponse = async (processQueue = true ) => {
24212421 if (taskIds ) {
24222422 for (const taskId of taskIds ) {
24232423 const res = await stopTask (localStorage .token , taskId ).catch ((error ) => {
24492449 generationController = null ;
24502450 }
24512451
2452- await processNextInQueue ($chatId );
2452+ if (processQueue ) {
2453+ await processNextInQueue ($chatId );
2454+ }
24532455 };
24542456
24552457 const submitMessage = async (parentId , prompt ) => {
29132915 ... q ,
29142916 [$chatId ]: queue .filter ((m ) => m .id !== id )
29152917 }));
2916- // Stop current generation first
2917- await stopResponse ();
2918+ await stopResponse (false );
29182919 await tick ();
2919- // Submit queued message directly without clearing input
29202920 await submitPrompt (item .prompt , item .files );
29212921 }
29222922 }}
You can’t perform that action at this time.
0 commit comments