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

@ -54,13 +54,13 @@ describe('SUGGESTION.SET_CONFIG', () => {
expect(configSet).not.toHaveBeenCalledWith('suggestionEnabled', true)
})
it('분당 요청 상한을 12로 강제한다', async () => {
it('분당 요청 상한을 30으로 강제한다', async () => {
const handler = handlers.get(IPC_CHANNELS.SUGGESTION.SET_CONFIG)
if (!handler) throw new Error('suggestion config handler was not registered')
await handler({}, { maxRequestsPerMinute: 99 })
expect(configSet).toHaveBeenCalledWith('suggestionMaxRequestsPerMinute', 12)
expect(configSet).toHaveBeenCalledWith('suggestionMaxRequestsPerMinute', 30)
})
})