Skip to content

fix: restore DefaultDictionaryPredictor so custom words appear in suggestions#342

Merged
bartekplus merged 4 commits intomasterfrom
claude/interesting-nightingale
Mar 22, 2026
Merged

fix: restore DefaultDictionaryPredictor so custom words appear in suggestions#342
bartekplus merged 4 commits intomasterfrom
claude/interesting-nightingale

Conversation

@bartekplus
Copy link
Owner

Summary

  • Restores DefaultDictionaryPredictor to the PREDICTORS registry in all 9 language presage.xml files and the lang template
  • The predictor was accidentally removed during the build script refactor (Refactor build scripts, refresh language assets, and stabilize E2E tests #204), causing custom words to be silently ignored by Presage
  • UserDictionaryManager was correctly writing words to disk and calling libPresage.config(...), but without the predictor registered in the XML it was never activated

Fixes #341

Test plan

  • Add a custom word in Settings → Snippets and Dictionary → Custom Words
  • Type the first few characters of that word in any text field
  • Verify the custom word appears in the suggestion list

🤖 Generated with Claude Code

bartekplus and others added 4 commits March 22, 2026 14:06
…iles

The DefaultDictionaryPredictor was accidentally dropped from the
PREDICTORS registry in all presage.xml files during the build script
refactor (#204). As a result, custom words saved in Settings were
written to disk but never queried by Presage, so they never appeared
in suggestions.

Fixes #341

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Repacked all language .data files and updated libpresage.js metadata
after restoring DefaultDictionaryPredictor to presage.xml configs.

Also documents the repack workflow in docs/agents/commands.md so it
is clear when and how to repack after presage.xml changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add 'bun run check' quality gate section to docs/agents/commands.md
  so agents know to run and pass the full check suite before every PR
- Add scripts/.deps/** to eslint ignores to prevent generated build
  artifacts from being linted

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a live test to PresageHandler.live.test.ts that verifies custom
words in userDictionaryList appear in predictions. This would have
caught the missing DefaultDictionaryPredictor registration.

Also adds a regression test policy to docs/agents/testing.md: every
bug fix must include a test that fails on unfixed code.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bartekplus bartekplus merged commit 78245c2 into master Mar 22, 2026
8 checks passed
@bartekplus bartekplus deleted the claude/interesting-nightingale branch March 22, 2026 13:32
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.

Custom words not showing on the suggestions.

1 participant