ConnectionRequirement disables autocomplete?

I am creating a pack and I need to use an authentification key for some formulas.
When a formula needs the key (and therefore there is an autocomplete to select the one you want to use), the other autocompletes of the formula work normally. But if in a formula I specify connectionRequirement: coda.ConnectionRequirement.None or connectionRequirement: coda.ConnectionRequirement.Optional the other autocomplete don’t display any suggestion.
Am I doing something wrong or is it a bug?

With connection requirement

Without connection requirement

Example code

pack.setUserAuthentication({
    type: coda.AuthenticationType.QueryParamToken,
    paramName: "key"
});

pack.addFormula({
    name: "Test",
    description: "Formula with autocomplete",
    resultType: coda.ValueType.String,
    /**
     * If I add 
     *  connectionRequirement: coda.ConnectionRequirement.None 
     *  or 
     *  connectionRequirement: coda.ConnectionRequirement.Optional
     * then the autocomplete suggestions are not displayed
     */
    parameters: [
        coda.makeParameter({
            type: coda.ParameterType.String,
            name: "autocomplete",
            description: "Autocomplete example",
            autocomplete: ["Lorem", "ipsum"]
        })
    ],
    execute: async function ([autocomplete], context) {
        return autocomplete;
    }
});

²

Hi @PixiGeko - This does indeed appear to be a bug in our auto-complete logic. I’ve filed it with the team, but I don’t know if it will get fixed in the short term.

As a workaround you can keep the authentication required, and if you need to prevent the credentials from being passed with an HTTP request use the disableAuthentication: true option:

Ok, thank you for your quick reply !