# v1.2.0 Release Notes

> v1.1.4 -> v1.2.0

## Summary

Moves agent execution and MCP management behind a daemon socket so the terminal UI becomes a thin client. Trims prompt and tool-schema overhead to keep the cache prefix stable. Adds switches for skill sources and official guides.

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

將代理執行與 MCP 管理移到 daemon 之後，讓終端介面成為輕量用戶端。精簡提示與工具結構的負擔，維持快取前綴穩定。新增技能來源與官方指引的開關。

</details>

## Changes

### FEAT

- Add a Unix socket IPC layer for daemon agent execution, covering run, steer, cancel, pending, ask, reply and sudo approval frames, with window hash, fast and guide flags carried in the run context and session-scoped work-directory updates (@pardnchiu) [42a6efe0, 0278fc90, 7afe02fb, 410337c3, 2f366621, 14c7247b]
- Relay TUI MCP status, reconnect, tool listing and disconnect through the daemon socket so the TUI no longer opens its own MCP connections (@pardnchiu) [5484fae5]
- Add a skill source toggle to the `/skill` popup and the web skills page, persist disabled sources, skip them when scanning, and scan Copilot and Agents skills listed in a user message (@pardnchiu) [4caf91e2, db97a714, 7a650eb9]
- Add an official guide toggle to `/config` and the web UI System tab (@pardnchiu) [25c6a9de, 7d4475ee]
- Gate CLAUDE.md/AGENTS.md prompt injection behind a TUI toggle (@pardnchiu) [22ad0b6f]
- Add search filtering to the model multi-select popup and keep selections across filters (@pardnchiu) [cd491b98]

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

- 新增供 daemon 執行代理的 Unix socket IPC，涵蓋 run、steer、cancel、pending、ask、reply 與 sudo 核准 frame，執行情境帶入 window hash、fast 與 guide 旗標，並支援依工作階段傳遞工作目錄變更
- TUI 的 MCP 狀態、重新連線、工具列表與中斷連線改經 daemon socket 處理，TUI 不再自行建立 MCP 連線
- `/skill` 彈窗與網頁技能頁新增技能來源開關，停用狀態會保存且掃描時略過，並掃描 Copilot 與 Agents 技能、以使用者訊息列出
- `/config` 與網頁 System 分頁新增官方指引開關
- 以 TUI 開關控制是否注入 CLAUDE.md/AGENTS.md
- 模型多選彈窗新增搜尋篩選，篩選時保留已選項目

</details>

### FIX

- Fix TUI input guards, notice dismissal order and reset output (@pardnchiu) [c6d415ad]
- Check tool existence before execution so unregistered tools never run (@pardnchiu) [998e5d2c]

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

- 修正 TUI 輸入防護、通知關閉順序與重設輸出
- 執行前先檢查工具是否存在，未註冊的工具不再被執行

</details>

### UPDATE

- Defer `/model` fallback order saving until confirmation and show position change markers (@pardnchiu) [46ff4031]
- Downgrade noisy session, MCP re-registration and webapp asset logs from Info to Debug (@pardnchiu) [146ca035]
- Trim system prompts, move the reply-language default into Go and ban TUI commands in chatbot channels (@pardnchiu) [59393bec]
- Render text values in `/config` in white (@pardnchiu) [8962228f]
- Clarify the long-form delivery rule in the system prompt to cover reports and MCP deferrals (@pardnchiu) [f0c73670]
- Show Skills and Schedule in the sidebar, label schedule tests with their session and regroup the Other settings heading (@pardnchiu) [d3feb284]

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

- `/model` 備援順序改為確認後才保存，並顯示位置變動標記
- 將吵雜的 session、MCP 重新註冊與 webapp 資源日誌由 Info 降為 Debug
- 精簡系統提示、將回覆語言預設移入 Go，並禁止在聊天機器人頻道使用 TUI 指令
- `/config` 的文字值改以白色顯示
- 釐清系統提示中長篇內容的交付規則，涵蓋報告與 MCP 委派情境
- 側欄顯示 Skills 與 Schedule、排程測試標示所屬工作階段，並調整 Other 設定群組標題位置

</details>

### REFACTOR

- Remove the TUI's in-process agent execution and relay it through the daemon socket (@pardnchiu) [8a53d639]

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

- 移除 TUI 的行程內代理執行，改由 daemon socket 轉送

</details>

### PERF

- Defer tool schemas and route every tool call through `run_tool` (@pardnchiu) [ab272d25]
- Move workdir, permission, skills and the external agent guide from the system prompt into turn context to keep the cache prefix stable (@pardnchiu) [708c1f75, 9c5ff0f7]

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

- 工具結構改為延後載入，所有工具呼叫統一經由 `run_tool`
- 將工作目錄、權限、技能與外部代理指引由系統提示移入每輪情境，維持快取前綴穩定

</details>

### CHORE

- Route macOS Homebrew package management through `pkg_manage` outside the sandbox, so nested `sandbox-exec` no longer fails (@pardnchiu) [12a70ad8]

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

- macOS 的 Homebrew 套件管理改經 `pkg_manage` 在沙箱外執行，避免巢狀 `sandbox-exec` 失敗

</details>

### REMOVE

- Remove Ollama Cloud from provider usage tracking (@pardnchiu) [906d43aa]
- Remove code left unused after the socket migration: the `POST /v1/session/:id/event` bridge, the TUI's own tool registrations, MCP manager and dispatcher selection, and stale resume, steer and skill-scanner leftovers (@pardnchiu) [b30d26bf]

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

- 自 provider 用量追蹤移除 Ollama Cloud
- 移除改走 socket 後不再使用的程式：`POST /v1/session/:id/event` 橋接端點、TUI 自建的工具註冊、MCP manager 與 dispatcher 選擇，以及遺留的 resume、steer 與技能掃描程式

</details>

## Scope

- `internal/runtime/ipc/` — FEAT, ADD (`client.go`, `frame.go`, `run.go`, `server.go`, `pending.go`, `mcp.go`)
- `internal/runtime/tui/` — REFACTOR, FEAT, FIX, UPDATE, REMOVE (multiple files)
- `cmd/app/` — REMOVE (`tui.go`)
- `internal/agents/exec/` — PERF, ADD (`assignTurnContext.go`, `guide/guide.go`)
- `internal/tools/` — PERF, FIX, CHORE, ADD (`executor.go`, `searcher/runTool.go`, `interactive/pkgManage.go`, `runCommand.go`)
- `configs/prompts/system_prompt/` — UPDATE, PERF (multiple files)
- `internal/session/log/` — UPDATE (`format.go`, `record.go`)
- `internal/runtime/routes/` — FEAT, REMOVE (multiple files; `handler/event.go` removed)
- `page/` — FEAT, UPDATE (multiple files)

---

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