# v1.3.20 Release Notes

> v1.3.19 -> v1.3.20

## Summary

Improves the reliability of file editing and keeps prompts and notifications usable when translations are unavailable.

<details>
<summary>翻譯</summary>

提升檔案編輯的可靠性，並讓提示與通知在譯文無法使用時仍能正常顯示。

</details>

## Changes

### FIX

- Fall back to English when localized prompts, notifications, or refusal messages are missing or invalid (@pardnchiu) [b5e3d433]
- Fix file patch matching to avoid false conflicts and missed deletions (@pardnchiu) [c6cdf15c, 14275518]
  - Allow edits on the same line when their matched ranges do not overlap
  - Delete every matched occurrence when `replace_all` is enabled
  - Cover patch matching and deletion with regression tests

<details>
<summary>翻譯</summary>

- 提示、通知或拒絕訊息的譯文缺漏或無效時，改用英文
- 修正檔案修補的比對邏輯，避免誤判衝突及漏刪
  - 同一行的比對範圍未重疊時，允許一起編輯
  - 啟用 `replace_all` 時，刪除所有符合的項目
  - 新增修補比對與刪除的迴歸測試

</details>

### REFACTOR

- Consolidate whole-file writes and patches in `write_file` (@pardnchiu) [c6cdf15c, 14275518]
  - Update bundled skills and display the tool as `Write` by default
  - If you have a saved rule naming `edit_file`, rename it to `write_file` in your global or project allow list to retain the approval
- Detect Markdown or HTML reports from their content (@pardnchiu) [c6cdf15c]
- Share path resolution across file writes, file opening, and file history (@pardnchiu) [c6cdf15c, 14275518]

<details>
<summary>翻譯</summary>

- 將整檔寫入與局部修補統一到 `write_file`
  - 同步更新內建技能，工具預設顯示為 `Write`
  - 如果已儲存指定 `edit_file` 的免確認規則，請在全域或專案允許清單中改成 `write_file`，以保留原本的核准設定
- 依內容自動判斷報告是 Markdown 或 HTML
- 讓檔案寫入、開啟及歷程查詢共用路徑解析

</details>

## Scope

- `configs/` — FIX, REFACTOR
- `extensions/skills/` — REFACTOR
- `internal/agents/` — FIX, REFACTOR
- `internal/filesystem/` — FIX
- `internal/locale/` — FIX
- `internal/runtime/` — FIX, REFACTOR
- `internal/tools/` — FIX, REFACTOR
- `internal/utils/` — FIX, REFACTOR

---

Generated by [SKILL](https://github.com/pardnchiu/skill-version-generate)
