Skip to content

v1.1.1 — 保存リトライ(同期/AVの横入り対策)/ Save retry for sync・AV interference

Latest

Choose a tag to compare

@piguo45 piguo45 released this 19 Jun 06:12
· 5 commits to main since this release

修正 / Fixes

🇯🇵 保存時の InvalidStateError(同期・ウイルス対策の横入り)を自動リトライ(#74

  • OneDrive 等の同期やウイルス対策がファイルに触れた一瞬と保存が重なると、ブラウザが書込を弾くこと(「An operation that depends on state … the state had changed since it was read from disk」)がありました。
  • これを検知したら 250ms 後に1回だけ自動で再保存し、ほぼ回復します。
  • createWritable書込前に弾くため原本は無傷(データ消失なし)。再試行も失敗した場合は未保存状態を保持し、次の編集/タブ離脱で再保存します。
  • 会社環境(Edge+OneDrive)の実機で、エラーが出なくなることを確認済み。

互換性:表示ロジック・データ形式(wbs.json)の変更なし。wbs_viewer.html を差し替えるだけ(PATCH)。


🇬🇧 Auto-retry on InvalidStateError (sync / antivirus interference) when saving (#74)

  • When a sync client (OneDrive, etc.) or antivirus touched the file at the same instant as a save, the browser could reject the write ("the state had changed since it was read from disk").
  • The tool now waits 250 ms and retries the save once, which almost always recovers.
  • The write is rejected before touching disk, so the original file stays intact (no data loss). If the retry also fails, the unsaved state is kept and re-saved on the next edit or on tab close.
  • Verified on a real corporate setup (Edge + OneDrive): the error no longer appears.

Compatibility: no changes to view logic or the wbs.json data format — just replace wbs_viewer.html (PATCH).