Unable to persist ExApp settings

I’m in the process of getting my app ready for release, but I’m unable to get settings working. I’m making an ExApp in Python using nc_py_api and as far as I can see I’m following the example apps and documentation.

The problem is that any change made in the settings form does not persist. If I click another menu item and then back the displayed settings will be back to the configured defaults, and when I try to read from appconfig or preferences the returned values are always None.

Is there anyone that has this working? My NC instance is running v32.0.8 and I’ve tried all combinations of admin/personal appconfig/preferences and ai_integration_team/declarative_settings. When I change something in my settings form I see a perfectly valid Post made with a 200 OK response and the intended changed value.

    SettingsField(
        id="auto_analyze",
        title="AI Analysis",
        type=SettingsFieldType.CHECKBOX,
        default=SETTINGS_DEFAULTS["auto_analyze"],
        label="Enable AI-powered image analysis",
    ),

https://nc_server/ocs/v2.php/settings/api/declarative/value
[HTTP/1.1 200 OK 48ms]

app	“tagger”
fieldId	“auto_analyze”
formId	“settings”
value	1

auto_analyze_config = await nc.appconfig_ex.get_value(“auto_analyze”)

… returns “None”. Form registration works fine, it becomes visible and POSTs are made to the OCS API when I change values.

I’m at a bit of a loss here, any help appreciated.