Exported Arrays Get Forgotten

Godot Version

v4.4.1.stable.official [49a5bc7b6]

Question

I often use the Array or PackedStringArray types for storing information, like:

@export var choices : PackedStringArray = ["1","2","3"]

For example: in the inspector, I set choices to include “4” too.

And it works quite well! But every time I try to change the code, like this:

@export var choices : PackedStringArray = ["1","2","3"]

func _ready() -> void:
    print("Your choices are: "+str(choices))

In the inspector, after having saved this change, choices is reset to its default state.

Is this intentional? It is quite annoying having to re enter the choices each time I have to make a change to the code, and other exports, like numbers, persist when you make changes to the code.

Thanks!