Skip to content

fix: store.update 실패 시 오버레이 리사이즈가 중단되는 문제 수정#55

Merged
lee-sihun merged 1 commit intomasterfrom
fix/store-update-error-handling
Mar 2, 2026
Merged

fix: store.update 실패 시 오버레이 리사이즈가 중단되는 문제 수정#55
lee-sihun merged 1 commit intomasterfrom
fix/store-update-error-handling

Conversation

@eun-yeon
Copy link
Member

@eun-yeon eun-yeon commented Mar 2, 2026

개요

resize_overlay에서 store.update(...)?로 디스크 저장이 실패하면 함수가 조기 종료되어 UI 반영이 중단되는 문제 수정

변경 내용

  • overlay_last_content_top_offset 저장 실패 시 window.set_size/set_position이 스킵되어 창 크기와 내부 콘텐츠가 어긋나는 문제 수정
  • overlay_bounds 저장 실패 시 overlay:resized 이벤트가 발송되지 않아 프론트엔드 상태 불일치가 발생하는 문제 수정
  • store.update는 실패해도 메모리 롤백이 없으므로, ? 대신 if let Err + log::warn으로 변경하여 UI 로직은 끝까지 실행되도록 처리

실제로 fs::write 실패가 발생할 가능성은 낮지만, 방어적 코딩 차원에서 수정했습니다. 불필요하다고 판단되면 폐기해도 무방

@lee-sihun lee-sihun merged commit 203210d into master Mar 2, 2026
1 check passed
@eun-yeon eun-yeon deleted the fix/store-update-error-handling branch March 3, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants