Basic app intent always showing error in Shortcuts app "The action could not run because an internal error occurred."

I have a very basic App Intent extension in my macOS app that does nothing than accepting two parameters, but running it in Shortcuts always produces the error "The action “Compare” could not run because an internal error occurred.".

What am I doing wrong?

struct CompareIntent: AppIntent {
    static let title = LocalizedStringResource("intent.compare.title")
    static let description = IntentDescription("intent.compare.description")
    static let openAppWhenRun = true
    
    @Parameter(title: "intent.compare.parameter.original")
    var original: String
    @Parameter(title: "intent.compare.parameter.modified")
    var modified: String
    
    func perform() async throws -> some IntentResult {
        return .result()
    }
}

Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. While the code above is helpful, I want to see it in context as you are, including your Xcode project target setup. If you're not familiar with preparing a test project, take a look at Creating a test project.

—Ed Ford,  DTS Engineer

Here's a link to a sample project: https://www.swisstransfer.com/d/e8ad8888-ae2e-4371-8e82-0d5915c967c7

I really just created an empty macOS App project, added a target App Intents Extension named CompareIntent, and pasted the code I provided above in the CompareIntent.swift file. Then I build the project and copied the app into my Applications folder, and I can still reproduce the issue when running the app intent in Shortcuts.

Basic app intent always showing error in Shortcuts app "The action could not run because an internal error occurred."
 
 
Q