# v1.5.2 Release Notes

> v1.5.1 -> v1.5.2

## Summary

`http_request` now checks multipart attachment paths and requires approval for restricted paths, reducing the risk that background tasks inadvertently upload confidential files. Skill and scheduler setup now use built-in guides, with validation for skill metadata.

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

這版在 `http_request` 的 multipart 上傳加入附件路徑檢查，受限路徑須先取得核准，降低背景任務誤傳機密檔案的風險。技能與排程的建立流程改用內建指引，並提供技能前置資料驗證。

</details>

### FIX

- Surface previously ignored session and task lifecycle errors (@pardnchiu) [6c8febd0, 0de971d4]
  - Return errors when session reset cannot clear pending state or history
  - Log failures while cleaning up pending tasks or background jobs, clearing session history, or canceling TUI execution
- Log unexpected history lookup and chatbot resume notification failures (@pardnchiu) [0de971d4]
- Handle temporary update script close errors before execution (@pardnchiu) [0de971d4]

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

- 回報先前被忽略的工作階段與任務生命週期錯誤
  - 重設工作階段時，若無法清除待處理狀態或歷史紀錄，回傳錯誤
  - 清理待處理任務或背景工作、清除工作階段歷史紀錄或取消 TUI 執行失敗時，寫入日誌
- 記錄非預期的歷史紀錄查詢失敗，以及聊天機器人恢復任務時的通知傳送失敗
- 在執行暫存的更新腳本前，先處理關閉腳本檔案時的錯誤

</details>

### SECURITY

- Apply file access boundaries to `http_request` multipart uploads (@pardnchiu) [3a3c4519]
  - Resolve attachment paths from the working directory and require approval for restricted paths
- Serve MCP OAuth callback messages as plain text and disable MIME sniffing (@pardnchiu) [0de971d4]

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

- 將檔案存取限制套用到 `http_request` 的 multipart 上傳
  - 以工作目錄解析附件路徑，受限路徑須先取得核准
- 以純文字回傳 MCP OAuth 回呼訊息，並停用 MIME 類型嗅探

</details>

### REFACTOR

- Move skill authoring to built-in guidance and frontmatter checks (@pardnchiu) [484e1217]
  - Add `validate_skill` for explicit checks
  - Normalize missing or mismatched names during skill writes and patches, and reject missing or overlong descriptions
- Move scheduler skill creation to built-in guidance (@pardnchiu) [833d3e11]
  - Keep the existing schedule binding and manual execution paths

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

- 將技能建立流程改用內建指引與前置資料檢查
  - 新增 `validate_skill` 供主動檢查
  - 寫入或修補技能時修正缺漏或不符的名稱，並拒絕缺少描述或描述過長的內容
- 將排程技能建立流程改用內建指引
  - 保留既有的排程綁定與手動執行方式

</details>

### CHORE

- Allow release packaging when the bundled skills directory is absent (@pardnchiu) [833d3e11]
- Update vendored nanomd assets to 2.0.16 (@pardnchiu) [3a3c4519]

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

- 允許在未附帶技能目錄的情況下打包發行版本
- 將內附的 nanomd 資源更新至 2.0.16

</details>

## Scope

- `.github/workflows/release.yml` — CHORE
- `cmd/app/main.go` — FIX
- `configs/` — REFACTOR
- `extensions/skills/` — REFACTOR
- `internal/filesystem/skill/` — REFACTOR
- `internal/runtime/chatbot/` — FIX
- `internal/runtime/mcp/oauth.go` — SECURITY
- `internal/runtime/store/` — FIX
- `internal/runtime/tui/` — FEAT, FIX
- `internal/session/reset.go` — FIX
- `internal/tools/cron/` — REFACTOR
- `internal/tools/file/` — SECURITY, REFACTOR
- `internal/tools/guide.go` — REFACTOR
- `internal/tools/interactive/` — FIX
- `internal/tools/toolAdapter/` — SECURITY
- `internal/utils/toolFormat.go` — REFACTOR
- `page/vendor.json` — CHORE

---

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