feat(monitoring): scope authorization-failure cancellation to platform across accounts
When a monitor task's final account hits human verification or an authorization failure, cancel the remaining queued desktop/monitoring tasks for the whole platform instead of only the same account. Follow-up tasks are now marked skipped/aborted (not failed) with a platform_human_verification / platform_authorization_unavailable reason and a user-facing cancellation message, and emit task_canceled lifecycle events for monitor kinds. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1269,7 +1269,7 @@ func (s *DesktopTaskService) Complete(ctx context.Context, client *repository.De
|
||||
|
||||
s.publishTaskEvent(ctx, task, "task_completed")
|
||||
for _, failedTask := range bulkFailure.Tasks {
|
||||
s.publishTaskEvent(ctx, failedTask, "task_completed")
|
||||
s.publishTaskEvent(ctx, failedTask, desktopAuthorizationFollowupEventType(failedTask))
|
||||
}
|
||||
|
||||
view := buildDesktopTaskView(task)
|
||||
|
||||
Reference in New Issue
Block a user