@@ -233,13 +233,15 @@ export async function openAssistantForm({
233233 view . loading = false
234234 view . showSyncTaskRunning = false
235235 view . taskPosition = null
236+ cancelTaskPositionPolling ( )
236237 emit ( 'assistant:task:updated' , finishedTask )
237238 } ) . catch ( error => {
238239 console . debug ( '[assistant] poll error' , error . message )
239240 if ( error . message === 'task-not-found' ) {
240241 view . loading = false
241242 view . showSyncTaskRunning = false
242243 view . taskPosition = null
244+ cancelTaskPositionPolling ( )
243245 view . isNotifyEnabled = false
244246 view . outputs = null
245247 view . selectedTaskId = null
@@ -342,13 +344,15 @@ export async function openAssistantForm({
342344 view . loading = false
343345 view . showSyncTaskRunning = false
344346 view . taskPosition = null
347+ cancelTaskPositionPolling ( )
345348 emit ( 'assistant:task:updated' , finishedTask )
346349 } ) . catch ( error => {
347350 console . debug ( '[assistant] poll error' , error )
348351 if ( error . message === 'task-not-found' ) {
349352 view . loading = false
350353 view . showSyncTaskRunning = false
351354 view . taskPosition = null
355+ cancelTaskPositionPolling ( )
352356 view . isNotifyEnabled = false
353357 view . outputs = null
354358 view . selectedTaskId = null
@@ -843,6 +847,7 @@ export async function openAssistantTask(
843847 view . loading = false
844848 view . showSyncTaskRunning = false
845849 view . taskPosition = null
850+ cancelTaskPositionPolling ( )
846851 emit ( 'assistant:task:updated' , finishedTask )
847852 } ) . catch ( error => {
848853 console . debug ( '[assistant] poll error' , error )
@@ -851,6 +856,7 @@ export async function openAssistantTask(
851856 view . loading = false
852857 view . showSyncTaskRunning = false
853858 view . taskPosition = null
859+ cancelTaskPositionPolling ( )
854860 view . isNotifyEnabled = false
855861 view . selectedTaskId = null
856862 lastTask = null
@@ -948,13 +954,15 @@ export async function openAssistantTask(
948954 view . loading = false
949955 view . showSyncTaskRunning = false
950956 view . taskPosition = null
957+ cancelTaskPositionPolling ( )
951958 emit ( 'assistant:task:updated' , finishedTask )
952959 } ) . catch ( error => {
953960 console . debug ( '[assistant] poll error' , error )
954961 if ( error . message === 'task-not-found' ) {
955962 view . loading = false
956963 view . showSyncTaskRunning = false
957964 view . taskPosition = null
965+ cancelTaskPositionPolling ( )
958966 view . isNotifyEnabled = false
959967 view . outputs = null
960968 view . selectedTaskId = null
0 commit comments