strautomator / web

Strautomator Web / API
https://strautomator.com/
MIT License
30 stars 1 forks source link

Preferences not saved #25

Open Glennmen opened 4 weeks ago

Glennmen commented 4 weeks ago

Since about a week I noticed that my preferences are reset. I set them back, manual sync activity again, language and weather provider seem to be correct but not AI provider. It keeps using Gemini, even when I have set it to OpenAI.

Then after some time, not sure how long, it gets reset again and I have to change all my preferences.

igoramadas commented 4 weeks ago

Hi Glenn, this is a known issue that I completely forgot to get sorted some days ago. This will be fixed with the next release (happening at the weekend, at the latest, but possibly earlier). Sorry for the trouble.

Root cause: OpenAI is treated as the default provider on the user preferences handler, so when you select it, the value will be simply removed from your preferences. Then it will randomly select between OpenAI or Gemini when doing the actual prompts, because there's no value set for your user.

igoramadas commented 4 weeks ago

https://github.com/strautomator/web/commit/1eec24e1cb75f608c083e2266ac7f79fdb691613

Glennmen commented 4 weeks ago

@igoramadas Not sure how that explains why my other preferences also being cleared 🤔

igoramadas commented 4 weeks ago

This I am not aware. I'll investigate the logs and come back to you once I find out what's going on.