Skip to content

fix(settings): Settings no longer crashes before the AI panel opens - #94

Merged
flowtricks merged 1 commit into
flowtricks:mainfrom
SylvainDruaux:fix/dictation-words-no-project
Nov 23, 2026
Merged

flowtricks merged 1 commit into
flowtricks:mainfrom
SylvainDruaux:fix/dictation-words-no-project

Conversation

@SylvainDruaux

Copy link
Copy Markdown
Contributor

Settings > Editor > Dictation suggests the open project's component names as vocabulary. It asked the AI panel's store for the project's files, and that store learns a project only when the AI panel opens, so opening Settings before the panel (or from the welcome screen) failed its assertion and took Settings down. With a project switched while the panel stayed closed, it would also have suggested the previous project's names.

Settings now passes its own open project to the word list, which asks the main process for that project's files directly: no project, no request and no suggestions; a failed read leaves no suggestions. A test mounts the list with the AI store empty, the crash's condition, and fails on the previous code with the same assertion.

Settings > Editor > Dictation suggests the open project's component names as vocabulary. It asked the AI panel's store for the project's files, and that store learns a project only when the AI panel opens, so opening Settings before the panel (or from the welcome screen) failed its assertion and took Settings down. With a project switched while the panel stayed closed, it would also have suggested the previous project's names.

Settings now passes its own open project to the word list, which asks the main process for that project's files directly: no project, no request and no suggestions; a failed read leaves no suggestions. A test mounts the list with the AI store empty, the crash's condition, and fails on the previous code with the same assertion.
@flowtricks
flowtricks merged commit 31ece7d into flowtricks:main Nov 23, 2026
16 of 17 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.

2 participants