Skip to content

Custom prompt enabled/disabled setting not saved - ReferenceError: prefs is not defined #621

@butterworth1901

Description

@butterworth1901

The problem

Custom prompt enable/disabled checkbox state is not being saved. When I enable a custom prompt and click "Save All", then close and reopen the settings, the prompt reverts to disabled.

Error in Browser Console (Ctrl+Shift+J):

Which Operative System are you using?

Linux Mint 22.2 Cinnamon (Kernel 6.14.0-1019-oem)

Which version of Thunderbird are you using?

Betterbird 140.7.0esr-bb17 (64-bit)

Which version of ThunderAI has the issue?

3.8.0

Which integration are you using?

ollama

Anything in the Thunderbird console logs that might be useful?

Uncaught (in promise) ReferenceError: prefs is not defined
    <anonymous> moz-extension://3518c6e4-55d6-4fad-a7a8-504531569714/options/mzta-options.js:332

Additional information

Technical Details:

  • The WAL file (3647222921wleabcEoxlt-eengsairo.sqlite-wal) is created with 0 bytes when clicking "Save All"
  • This indicates the write operation is failing before any data is written
  • The main database file timestamp does not update after saving
  • Ollama integration is working correctly for AI functionality

Steps to Reproduce:

  1. Open ThunderAI custom prompts settings
  2. Enable any custom prompt checkbox (e.g., "Summarise (Compact)")
  3. Click "Save All" button
  4. Close settings page
  5. Reopen custom prompts settings
  6. Result: The prompt is disabled again

Expected: Settings should persist after saving
Actual: Settings revert to previous state

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstatus: releasedFeature released.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions