# v0.15.0 Release Notes

> v0.14.2 -> v0.15.0

## Summary

Add Copilot Responses API endpoint support and token-budget message trimming, harden sandbox with sensitive path denial rules, and make history message limits configurable.
<details>
<summary>翻譯</summary>
新增 Copilot Responses API endpoint 支援與 token-budget 訊息裁剪機制，強化 sandbox 敏感路徑存取拒絕規則，並支援歷史訊息上限環境變數設定。
</details>

## Changes

### FEAT
- Add Copilot Responses Endpoint support for GPT-5.4 and Codex models with dedicated response parsing
- Add token-budget message trimming at session level to prevent input token overflow before agent execution

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

- 新增 Copilot Responses Endpoint 支援 GPT-5.4 與 Codex 模型，含專用回應解析
- 新增 session 層級 token-budget 訊息裁剪，避免 agent 執行前超出輸入 token 上限

</details>

### UPDATE
- Make max history messages configurable via `MAX_HISTORY_MESSAGES` environment variable (default: 16)
- Switch summary delimiter from HTML comments to XML tags and update trailing JSON regex to match `xml` format
- Exclude lite models (flash-lite, nano, haiku) from agent selection to ensure stable structured output

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

- 支援透過 `MAX_HISTORY_MESSAGES` 環境變數設定歷史訊息上限（預設：16）
- 將 summary 分隔符從 HTML comment 改為 XML tag，並更新 trailing JSON regex 支援 `xml` 格式
- 排除輕量模型（flash-lite、nano、haiku）於 agent 選擇，確保結構化輸出穩定性

</details>

### SECURITY
- Add sensitive path denial rules to macOS sandbox-exec and Linux bwrap with configurable denied paths from embedded JSON config
- Restore `--unshare-all` namespace isolation with graceful fallback probe on Linux
- Add `--new-session` flag to bwrap for additional process isolation

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

- 新增 macOS sandbox-exec 與 Linux bwrap 敏感路徑存取拒絕規則，支援從嵌入式 JSON 設定檔載入
- 恢復 `--unshare-all` namespace 隔離並加入 graceful fallback 探測機制（Linux）
- 新增 bwrap `--new-session` 旗標以強化 process 隔離

</details>

### PERF
- Add `MaxInputTokens()` method to all provider agents for accurate per-model token budget calculation

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

- 為所有 provider agent 新增 `MaxInputTokens()` 方法，實現精確的 per-model token budget 計算

</details>

***

## Files Changed

| File | Status | Tag |
|------|--------|-----|
| `configs/jsons/providors/copilot.json` | Modified | FEAT |
| `internal/agents/provider/copilot/response/responses.go` | Added | FEAT |
| `internal/agents/provider/copilot/send.go` | Modified | FEAT |
| `internal/agents/exec/trimMessages.go` | Added | FEAT |
| `internal/agents/exec/execute.go` | Modified | FEAT |
| `internal/agents/types/agent.go` | Modified | FEAT |
| `.env.example` | Modified | UPDATE |
| `internal/filesystem/sessionManager/session.go` | Modified | UPDATE |
| `internal/agents/exec/getSession.go` | Modified | UPDATE |
| `cmd/cli/main.go` | Modified | UPDATE |
| `configs/prompts/system_prompt.md` | Modified | UPDATE |
| `internal/agents/exec/extractSummary.go` | Modified | UPDATE |
| `configs/prompts/agent_selector.md` | Modified | UPDATE |
| `internal/sandbox/darwin.go` | Modified | SECURITY |
| `internal/sandbox/linux.go` | Modified | SECURITY |
| `internal/sandbox/sandbox.go` | Modified | SECURITY |
| `internal/agents/provider/claude/new.go` | Modified | PERF |
| `internal/agents/provider/compat/new.go` | Modified | PERF |
| `internal/agents/provider/copilot/new.go` | Modified | PERF |
| `internal/agents/provider/gemini/new.go` | Modified | PERF |
| `internal/agents/provider/nvidia/new.go` | Modified | PERF |
| `internal/agents/provider/openai/new.go` | Modified | PERF |

***

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