# v0.11.2 Release Notes

> v0.11.1 -> v0.11.2

## Summary

Patch release fixing error memory keyword matching, system prompt merging in Claude provider, and simplifying tool error file storage by removing date-based directory partitioning.

<details>
<summary>翻譯</summary>
修補版本，修正錯誤記憶關鍵字比對邏輯、Claude provider 多段 system prompt 合併，並簡化工具錯誤檔案儲存結構，移除日期分層目錄。
</details>

## Changes

### FIX
- Fix bidirectional keyword matching in error memory lookup (previously only checked if keyword contains query, now also checks if query contains keyword)
- Fix Claude provider overwriting system prompt when multiple system messages exist — now collects and joins all non-empty parts with `---` separator
- Fix `GetConfigDir` call in skill sync using incorrect path arguments

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

- 修正錯誤記憶關鍵字比對為雙向判斷（原僅檢查 keyword 包含 query，現亦檢查 query 包含 keyword）
- 修正 Claude provider 多段 system message 時後者覆蓋前者的問題，現改為收集所有非空內容並以 `---` 分隔合併
- 修正 skill sync 中 `GetConfigDir` 傳入錯誤路徑參數

</details>

### UPDATE
- Update agent system prompt rules to suppress pre-tool text output — tool calls must be the first action in any response; only ambiguity clarification is allowed as prior text output

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

- 調整 Agent system prompt 思考規則，禁止工具呼叫前輸出說明文字，response 第一個動作必須為工具呼叫；唯一允許先輸出文字的情境為問題存在歧義

</details>

### REFACTOR
- Simplify tool error storage by removing date-based subdirectory partitioning — errors now stored directly under `tool_errors/` and retrieved by hash path directly

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

- 重構工具錯誤儲存結構，移除日期分層目錄，改為直接存放於 `tool_errors/` 下並以 hash 路徑直接讀取

</details>

***

## Files Changed

| File | Status | Tag |
|------|--------|-----|
| `internal/tools/file/errorMemory.go` | Modified | FIX |
| `internal/agents/provider/claude/send.go` | Modified | FIX |
| `internal/skill/sync.go` | Modified | FIX |
| `internal/agents/exec/prompt/systemPrompt.md` | Modified | UPDATE |
| `internal/tools/file/toolError.go` | Modified | REFACTOR |

***

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