FluidVoice icon indicating copy to clipboard operation
FluidVoice copied to clipboard

Configurable delay for automatic dictionary correction suggestions

Open connor494 opened this issue 1 month ago • 1 comments

Problem

After manually replacing a misrecognized word, the dictionary suggestion can take long enough to appear that it seems broken. In my recent testing it eventually appeared after I stopped interacting with the editor.

Environment: FluidVoice 1.6.13-beta.1, macOS 26.6.2, Apple Silicon. Learn from my corrections is enabled and set to ask after one correction. This happened in the ChatGPT/Codex desktop editor. The delay was not measured, and I have not isolated a reproducible mouse-movement trigger.

Proposed option

Add a prompt delay setting next to Learn from my corrections, with 0.75, 1, 2, and 3 seconds. Keep 3 seconds as the default. The shorter choices would let users opt into faster suggestions while accepting that a pause in the middle of editing might trigger a prompt.

There is also a related behavior worth fixing: in the beta source, handleObservedSelectionChange schedules a new evaluation for every selection notification, even if the selected range has not changed. Ignoring duplicate range notifications should prevent those events from repeatedly postponing evaluation. Actual text edits and selection changes would still reset the appropriate timer.

Source: AutomaticDictionaryCorrectionTracker.swift at v1.6.13-beta.1. The existing delays are 3 seconds for inactivity and 1 second after a completion signal.

Related to #272. Would this small settings option and duplicate-notification fix be an acceptable scope for a contribution? A local experimental patch is being compiled and tested; this issue requests approval for the upstream UI change, and no PR has been submitted.

Codex helped inspect the source and draft this proposal. The local patch has not yet been manually validated in the target editor.

connor494 avatar Oct 29 '26 20:10 connor494

Implemented on B/1.6.13-beta.3 in 6694374ef8afbaf0f73c151ff1116a77a1996db3, pending merge:

  • Settings → Dictation → Learn from my corrections → Prompt delay offers 0.75, 1, 2, and 3 seconds. The default remains 3 seconds; “Ask after” still controls the number of corrections.
  • Duplicate selection notifications with an unchanged range no longer restart the wait. Actual edits and caret moves still update it.
  • The delay is included in settings backups; older backups preserve the current choice.

The automated regression reproduces the duplicate-notification problem on the previous code and passes with the fix. The full signed local test suite passed, and the installed settings dropdown was checked. A live dictation → manual correction → suggestion test in Codex/ChatGPT is still outstanding, so this issue remains open for that verification and merge. These changes are planned for beta 3.

altic-dev avatar Nov 02 '26 20:11 altic-dev