App Intents: String array parameter value clears immediately in Shortcuts editor

Hello,

I am experiencing an issue with the App Intents framework where a parameter of type [String] (String Array) fails to persist user input in the Shortcuts app action editor.

Issue Description: When adding an item to the String Array parameter in the Shortcuts app action editor, the input text automatically clears/resets to empty within less than 1 second. This happens spontaneously while the keyboard is still active, or immediately after typing, making it impossible to input any values.

Environment:

  • Xcode Version: 26.2 (17C52)

  • iOS Version: 26.2.1

  • Device: iPhone 17

Code Snippet:

import AppIntents
import SwiftUI

struct TestStringArrayIntent: AppIntent {
    
    static var title: LocalizedStringResource = "Test Array Input Bug"
    static var description: IntentDescription = "Reproduces the issue where String Array input clears automatically."

    // PROBLEM:
    // Input for this parameter vanishes automatically < 1s after typing.
    @Parameter(title: "Test Strings", default: [])
    var strings: [String]

    func perform() async throws -> some IntentResult & ReturnsValue<String> {
        return .result(value: "Count: \(strings.count)")
    }
}

Steps to Reproduce:

Build and install the app containing the code above.

Open the Shortcuts app and create a new shortcut.

Add the "Test Array Input Bug" action.

Tap the "Test Strings" parameter to add a new item.

Type any text (e.g., "Hi").

Observe: Wait for about 1 second

Observed Behavior: The text field clears itself automatically. The array remains empty ([]).

Expected Behavior: The text should remain in the field and be successfully added to the array.

**Filed as Feedback:**FB21808619

Thank you.

App Intents: String array parameter value clears immediately in Shortcuts editor
 
 
Q