Appintent: openAppWhenRun breaks shortcut when phone is locked

I have an app intent like the one below. If the intent is run via siri when the phone is locked then the user is asked to unlock their phone but the shortcut is interrupted. Is it possible to delay opening the app until the result dialog is returned?

import AppIntents

struct MyIntent: AppIntent {
    
    static var title: LocalizedStringResource = "MyApp"
    static var description = IntentDescription("Captures data")
    static var openAppWhenRun: Bool = true
    
    @Parameter(title: "The Data")
    var theData: String
    
    @MainActor
    func perform() async throws -> some IntentResult {
        
  
            _ = try await RESTClient.postData(theData: theData)            
            
            return .result(dialog:"Thank you!")
            
            //TODO: Now try to open app
        }
        
    }