fix(suggestion): stop generating mid-typing and let a pause bring a suggestion at once

With a 100 ms trigger left in the installed config, generation started in the
gaps between keystrokes; the next key ended the session silently, and that
session still counted against the 5 s minimum interval, so the moment the
user actually paused nothing came (rate-limited). The log showed a
generate-then-vanish cycle every 5-6 s.

The trigger delay now has a 500 ms floor and settings revision 6 resets a
stored value below it to 600 ms. A session ended because the user kept typing
no longer blocks the next request by the minimum interval (per-minute and
daily caps still apply), and that dismissal is logged.
This commit is contained in:
Yun Chan 2026-09-27 22:55:26 +09:00
parent 7e0c20b510
commit 1b8fe445f3
5 changed files with 63 additions and 5 deletions

View file

@ -1276,6 +1276,12 @@ export const SUGGESTION_DEFAULTS = {
*/
minPrefixChars: 8,
minIntervalMs: 5000,
/**
* 멈춤 판단의 하한. 이보다 짧으면 글자 사이의 순간 멈춤에도 생성이 시작돼,
* 치는 도중 창이 떴다 사라지기를 반복한다(실측 2026-09-27: 100ms 설정에서
* 5~6초마다 생성→소멸 반복).
*/
minTriggerDelayMs: 500,
maxRequestsPerMinute: 6,
dailyBudget: 500,
/** 로컬 기억 경로(폴백)에서 한 번에 만드는 후보 수 — 채우기 루프가 없다. */