Skip to content

[fix]: make default directive seeding idempotent using deterministic UUIDs - #575

Merged
haiphucnguyen merged 2 commits into
askimo-ai:mainfrom
james-217-wq:bugfix/remove-duplicate-directives-after-user-clear-user-preferences
Jul 28, 2026
Merged

[fix]: make default directive seeding idempotent using deterministic UUIDs#575
haiphucnguyen merged 2 commits into
askimo-ai:mainfrom
james-217-wq:bugfix/remove-duplicate-directives-after-user-clear-user-preferences

Conversation

@james-217-wq

Copy link
Copy Markdown
Contributor

Default directives were being seeded on first launch, gated by ApplicationPreferences.isOnboardingCompleted(). However, ApplicationPreferences can be cleared by the user (e.g. via a "Reset Settings" action). When that happens, the onboarding flag resets to false, causing seedDefaultDirectives() to run again on the next launch.

@CLAassistant

CLAassistant commented Jul 28, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Thank you @james-217-wq for your first PR. Can you reformat the code by running

./gradlew spotlessApply

or install git hook

tools/git/pre-commit

then in the future when you commit, it will auto format for you

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @james-217-wq

@haiphucnguyen
haiphucnguyen merged commit fc7394b into askimo-ai:main Jul 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants