feat(desktop): propose typo fixes inside the suggestion popup and make suggestions snappier

While suggestions are on, typos are no longer replaced silently. The popup shows
the fix next to the candidate and applies it only when the candidate is accepted.
The per-minute request cap rises from 6 to 20 so suggestions keep appearing after
accepting one and continuing to type.
This commit is contained in:
Yun Chan 2026-10-18 07:06:55 +09:00
parent d63854db67
commit f5ae4c8c04
38 changed files with 1239 additions and 660 deletions

View file

@ -48,9 +48,9 @@ describe('ConfigService suggestion tuning migration', () => {
)
await initConfigService()
expect(configGet('suggestionTuningRevision')).toBe(6)
expect(configGet('suggestionTuningRevision')).toBe(7)
expect(configGet('suggestionTriggerDelayMs')).toBe(600)
expect(configGet('suggestionMaxRequestsPerMinute')).toBe(6)
expect(configGet('suggestionMaxRequestsPerMinute')).toBe(20)
expect(configGet('suggestionMinPrefixChars')).toBe(17)
expect(configGet('suggestionDailyBudget')).toBe(777)
expect(configGet('suggestionRequestTimeoutMs')).toBe(23000)
@ -114,7 +114,7 @@ describe('ConfigService suggestion tuning migration', () => {
// 옮기지 않는 액션은 그대로 남는다.
expect(bindings['suggestion-next']).toEqual(OLD_NEXT)
expect(bindings['suggestion-prev']).toEqual(OLD_PREV)
expect(configGet('suggestionTuningRevision')).toBe(6)
expect(configGet('suggestionTuningRevision')).toBe(7)
resetInMemoryConfig()
})
@ -176,7 +176,7 @@ describe('ConfigService suggestion tuning migration', () => {
'../../../src/main/services/ConfigService'
)
await initConfigService()
expect(configGet('suggestionTuningRevision')).toBe(6)
expect(configGet('suggestionTuningRevision')).toBe(7)
expect(configGet('suggestionTriggerDelayMs')).toBe(expected)
resetInMemoryConfig()
vi.doUnmock('electron-store')