mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
[PR #2] [CLOSED] Make recording debounce atomic, harden WAV/file I/O, secure config saving, and validate whisper model #3
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/jahruz67/wisp-open/pull/2
Author: @jahruz67
Created: 5/15/2026
Status: ❌ Closed
Base:
main← Head:codex/review-code-for-bugs-and-improvements-upuyf8📝 Commits (2)
54ec0fbFix silent I/O failures and harden whisper model handling1639459Fix debounce race and recorder callback write handling📊 Changes
4 files changed (+73 additions, -25 deletions)
View changed files
📝
app.go(+10 -4)📝
internal/audio/recorder/recorder.go(+47 -14)📝
internal/config/config.go(+2 -2)📝
internal/services/whisper/whisper.go(+14 -5)📄 Description
Motivation
Description
lastToggle time.TimewithlastToggleUnixNano int64and usedatomic.LoadInt64/atomic.StoreInt64with a nanosecond-based debounce check inToggleRecordingto avoid races and Wayland/double-bind glitches.writeWAVHeaderso eachWrite/binary.Writecall returns an error instead of being ignored.0700and writing config files with0600inSave.Managerby checkingModels[info.Model]existence before using the filename and returning an error on invalid installed model, and improveddownloadFileto handle and return errors fromout.Write.Testing
go build ./...and the build completed successfully.go test ./...and all tests passed.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.