v0.1.1 Release Notes
v0.1.0 -> v0.1.1
Summary
Fix file watcher race conditions with proper mutex protection and refactor request detail rendering for better performance.
翻譯
修正檔案監控的競爭條件並加入適當的讀寫鎖保護,同時重構請求詳情渲染以提升效能。Changes
FIX
- Fix debounce timer race condition in file watcher by replacing shared timer with mutex-protected
time.AfterFunc - Add
sync.RWMutexto protectTUI.Requestsslice from concurrent read/write access - Add bounds check before accessing
requests[0]inUpdateLeftViewto prevent panic on empty request list
翻譯
- 修正檔案監控 debounce timer 競爭條件,改用 mutex 保護的
time.AfterFunc - 新增
sync.RWMutex保護TUI.Requestsslice 的並發讀寫存取 - 在
UpdateLeftView中加入邊界檢查,防止空請求列表時 panic
REFACTOR
- Replace string concatenation with
strings.BuilderinshowRequestDetailfor better memory efficiency - Replace
panicwithfmt.Fprintf+os.Exit(1)for TUI runtime error handling in main
翻譯
- 在
showRequestDetail中以strings.Builder取代字串串接以提升記憶體效率 - 在 main 中以
fmt.Fprintf+os.Exit(1)取代panic處理 TUI 執行錯誤
Files Changed
| File | Status | Tag |
|---|---|---|
cmd/tui/main.go |
Modified | REFACTOR |
internal/parser/parser.go |
Modified | FIX |
internal/ui/tui.go |
Modified | FIX, REFACTOR |
README.md |
Modified | DOC |
README.zh.md |
Modified | DOC |
cover.png |
Added | DOC |
test.http |
Modified | CHORE |
Generated by Claude Code