## ✨ Added

**Multi-Agent System**

- **Background Task Support**: Background execution for inter-agent communication with task tracking, status polling, and cancellation via CLI `--background` flag ([#2345](https://github.com/agentscope-ai/CoPaw/pull/2345))
- **Agent Enable/Disable Toggle**: Agents can be enabled or disabled through the console UI and API ([#2249](https://github.com/agentscope-ai/CoPaw/pull/2249))
- **Unified Priority Queue System and `/stop` command**: Per-channel, per-session priority queue system with `/stop` command support for canceling running tasks and clearing queued messages ([#2411](https://github.com/agentscope-ai/CoPaw/pull/2411))

**Providers and Models**

- **CoPaw Local Model**: Built-in local model provider using llama.cpp with automatic download, configuration, and custom repository support ([#2419](https://github.com/agentscope-ai/CoPaw/pull/2419), [#2476](https://github.com/agentscope-ai/CoPaw/pull/2476))
- **Scoped Active Model Selection**: Active model can be set globally in Settings or per-agent in Chat ([#2278](https://github.com/agentscope-ai/CoPaw/pull/2278))
- **Global LLM Rate Limiter**: QPM (queries per minute) sliding window rate limiting, concurrency control with semaphore, and global 429 pause coordination with jitter to prevent thundering-herd retries ([#2282](https://github.com/agentscope-ai/CoPaw/pull/2282))

**Security**

- **System Reboot & Service Protection**: Tool guard rules to block system reboot, shutdown, service control, broad process kill, and privilege escalation commands ([#2333](https://github.com/agentscope-ai/CoPaw/pull/2333))
- **Chinese Prompt Injection Detection**: Extended skill security scanner with Chinese regex patterns for prompt injection and jailbreak attempts ([#2381](https://github.com/agentscope-ai/CoPaw/pull/2381))

**Console & UI**

- **Download Page**: New downloads page for desktop installers with mirror sites ([#2555](https://github.com/agentscope-ai/CoPaw/pull/2555))
- **Multimodal Preview**: Image, audio, video, and file attachments are displayed with proper preview URLs in history messages and streaming ([#2297](https://github.com/agentscope-ai/CoPaw/pull/2297), [#2332](https://github.com/agentscope-ai/CoPaw/pull/2332))
- **Chat Session Labels**: Chat sessions display channel labels and icons for easy identification of message source ([#2483](https://github.com/agentscope-ai/CoPaw/pull/2483))
- **Command Suggestions**: Slash-style command suggestions (`/clear`, `/compact`, `/approve`, `/deny`) in the chat input ([#2415](https://github.com/agentscope-ai/CoPaw/pull/2415))

**Channels**

- **WeChat iLink Bot**: New WeChat personal channel using iLink Bot API ([#2260](https://github.com/agentscope-ai/CoPaw/pull/2260))
- **Custom Channel HTTP Routes**: Custom channels can now register FastAPI routes for webhooks and custom endpoints ([#2140](https://github.com/agentscope-ai/CoPaw/pull/2140))
- **Discord Bot Message Filtering**: New configuration option to control whether messages from other bots are processed ([#2122](https://github.com/agentscope-ai/CoPaw/pull/2122))
- **DingTalk Widescreen Cards**: Support widescreen AI card layout in DingTalk ([#2238](https://github.com/agentscope-ai/CoPaw/pull/2238))
- **WeCom Media Upload**: WebSocket-based media upload for improved reliability over HTTP download paths ([#2401](https://github.com/agentscope-ai/CoPaw/pull/2401))

**Tools & Skills**

- **Async Tool Execution**: Per-tool async execution flag with automatic registration of background task helpers (`view_task`, `wait_task`, `cancel_task`) ([#2391](https://github.com/agentscope-ai/CoPaw/pull/2391))
- **Skill Pool Architecture**: Two-layer skill system with shared skill pool and per-agent workspace skills ([#2173](https://github.com/agentscope-ai/CoPaw/pull/2173), [#2436](https://github.com/agentscope-ai/CoPaw/pull/2436), [#2440](https://github.com/agentscope-ai/CoPaw/pull/2440), [#2477](https://github.com/agentscope-ai/CoPaw/pull/2477), [#2480](https://github.com/agentscope-ai/CoPaw/pull/2480))
- **Browser CDP Support**: Chrome DevTools Protocol (CDP) integration for connecting to running Chrome instances, port scanning, cache clearing, and attaching to remote browsers ([#2294](https://github.com/agentscope-ai/CoPaw/pull/2294))
- **Multi-Workspace Cookie Management**: Browser automation now uses per-workspace persistent user data directories for cookie isolation and persistence across restarts ([#2131](https://github.com/agentscope-ai/CoPaw/pull/2131))

**Internationalization**

- **Server-Side Language Persistence**: UI language preference is now persisted to server-side settings ([#2408](https://github.com/agentscope-ai/CoPaw/pull/2408))
- **Expanded Multi-Language Support**: Additional console UI components now support multiple languages ([#2478](https://github.com/agentscope-ai/CoPaw/pull/2478), [#2508](https://github.com/agentscope-ai/CoPaw/pull/2508))

## 🔄 Changed

**Context and Memory**

- **Context Management v2.0**: Major restructuring of context and memory management with nested configuration models, new compaction hooks, tool result compaction, rewritten summarizer prompts, and proactive memory search ([#2300](https://github.com/agentscope-ai/CoPaw/pull/2300), [#2410](https://github.com/agentscope-ai/CoPaw/pull/2410), [#2519](https://github.com/agentscope-ai/CoPaw/pull/2519), [#2525](https://github.com/agentscope-ai/CoPaw/pull/2525))
- **Improved Truncation Logic**: Enhanced file truncation with markdown protection up to 50KB, clearer truncation prompts for LLMs, and refined recent window length logic ([#2449](https://github.com/agentscope-ai/CoPaw/pull/2449))

**Tools and Skills**

- **Streaming Grep Search**: Grep search now reads files line-by-line with a sliding window for context, significantly reducing memory usage for large files ([#2344](https://github.com/agentscope-ai/CoPaw/pull/2344))
- **MCP None Config Handling**: Added null checks when agent MCP config is None to prevent crashes ([#2471](https://github.com/agentscope-ai/CoPaw/pull/2471))
- **Himalaya Version Recommendation**: Updated Himalaya skill documentation to recommend CLI version ≥ 1.2.0 ([#2334](https://github.com/agentscope-ai/CoPaw/pull/2334))

**Console & UI**

- **Console Visual Refresh and Enhancement**: Major console style update with overall layout improvements and theme adjustments ([#2228](https://github.com/agentscope-ai/CoPaw/pull/2228), [#2271](https://github.com/agentscope-ai/CoPaw/pull/2271), [#2352](https://github.com/agentscope-ai/CoPaw/pull/2352), [#2404](https://github.com/agentscope-ai/CoPaw/pull/2404), [#2470](https://github.com/agentscope-ai/CoPaw/pull/2470), [#2479](https://github.com/agentscope-ai/CoPaw/pull/2479), [#2511](https://github.com/agentscope-ai/CoPaw/pull/2511), [#2522](https://github.com/agentscope-ai/CoPaw/pull/2522), [#2528](https://github.com/agentscope-ai/CoPaw/pull/2528), [#2540](https://github.com/agentscope-ai/CoPaw/pull/2540), [#2552](https://github.com/agentscope-ai/CoPaw/pull/2552))
- **Website UI Refactoring**: Major website UI refactoring for improved internationalization and modern styling ([#2558](https://github.com/agentscope-ai/CoPaw/pull/2558), [#2575](https://github.com/agentscope-ai/CoPaw/pull/2575), [#2582](https://github.com/agentscope-ai/CoPaw/pull/2582))

## 🐛 Fixed

**Channels**

- **WeCom Heartbeat Reconnection**: WebSocket now automatically reconnects when heartbeat fails to prevent permanent disconnection ([#2515](https://github.com/agentscope-ai/CoPaw/pull/2515))
- **Feishu WebSocket Reconnection**: Automatic reconnection with exponential backoff, health monitoring for silent disconnects, and stale message filtering ([#2311](https://github.com/agentscope-ai/CoPaw/pull/2311), [#2376](https://github.com/agentscope-ai/CoPaw/pull/2376))
- **Feishu Multi-Instance Message Routing**: Serialized WebSocket startup and app_id verification to prevent cross-workspace message misrouting in multi-instance setups ([#2244](https://github.com/agentscope-ai/CoPaw/pull/2244))
- **Discord Duplicate Messages**: Bounded cache of processed message IDs prevents duplicate message processing after WebSocket reconnects ([#2253](https://github.com/agentscope-ai/CoPaw/pull/2253))
- **Telegram Timeout**: Increased read and connect timeouts to prevent premature timeout during long polling ([#2280](https://github.com/agentscope-ai/CoPaw/pull/2280))
- **QQ Voice Message Conversion**: AMR/AMR-WB audio files now use larger ffmpeg probe parameters for correct codec detection ([#2248](https://github.com/agentscope-ai/CoPaw/pull/2248))
- **DingTalk Cron Reminders**: Fixed sessionWebhook routing and persisted webhook store for cron task reminders ([#2392](https://github.com/agentscope-ai/CoPaw/pull/2392))

**Console & UI**

- **Active Session Selection**: Fixed default active session to correctly match current chat ID from URL ([#2543](https://github.com/agentscope-ai/CoPaw/pull/2543))
- **Skill Toggle Icon**: Corrected skill enable/disable toggle icon to properly reflect state ([#2516](https://github.com/agentscope-ai/CoPaw/pull/2516))
- **Console File Upload**: Fixed file type handling in console chat upload ([#2266](https://github.com/agentscope-ai/CoPaw/pull/2266))
- **Multi-Agent Model Configuration**: Model APIs now use per-agent selection via `X-Agent-Id` header; multi-tab isolation through sessionStorage instead of localStorage ([#2283](https://github.com/agentscope-ai/CoPaw/pull/2283))

**CLI & Deployment**

- **Local Loopback Address**: CLI now persists `127.0.0.1` when server binds to `0.0.0.0` so other CLI commands can connect correctly ([#2241](https://github.com/agentscope-ai/CoPaw/pull/2241))
- **PowerShell Install Script**: Corrected PowerShell cmdlet name to fix automatic PATH updates on Windows ([#2489](https://github.com/agentscope-ai/CoPaw/pull/2489))
- **Cross-Platform File Encoding**: Files are written and read with `utf-8-sig` for Windows compatibility ([#2403](https://github.com/agentscope-ai/CoPaw/pull/2403))

## 📚 Documentation

- **Multi-Agent Documentation**: Extensive multi-agent documentation including collaboration patterns, triggers, scenarios, agent descriptions, and best practices ([#2290](https://github.com/agentscope-ai/CoPaw/pull/2290), [#2450](https://github.com/agentscope-ai/CoPaw/pull/2450), [#2517](https://github.com/agentscope-ai/CoPaw/pull/2517))
- **Installation & CLI Documentation**: Updated installation guides with reordered options, CLI documentation improvements, and log path corrections ([#2310](https://github.com/agentscope-ai/CoPaw/pull/2310), [#2496](https://github.com/agentscope-ai/CoPaw/pull/2496), [#2538](https://github.com/agentscope-ai/CoPaw/pull/2538), [#2562](https://github.com/agentscope-ai/CoPaw/pull/2562))
- **Model Provider Documentation**: Enhanced provider contribution guidelines and local model setup instructions ([#2541](https://github.com/agentscope-ai/CoPaw/pull/2541))
- **Project Structure Guidelines**: Added AGENTS.md with project structure and formatting guidelines ([#2532](https://github.com/agentscope-ai/CoPaw/pull/2532))
- **Context Management Documentation**: Updated context management documentation with v2.0 architecture and dependency information ([#2460](https://github.com/agentscope-ai/CoPaw/pull/2460))
- **Security Documentation**: Comprehensive security documentation update with enhanced protection coverage ([#2437](https://github.com/agentscope-ai/CoPaw/pull/2437))
- **MCP & Tools Documentation**: Expanded MCP and tools documentation with detailed integration guides ([#2444](https://github.com/agentscope-ai/CoPaw/pull/2444))
- **Skills Documentation**: Updated skills documentation with pool architecture and UI improvements ([#2480](https://github.com/agentscope-ai/CoPaw/pull/2480))
- **Magic Command Documentation**: Updated magic command documentation with comprehensive command reference ([#2486](https://github.com/agentscope-ai/CoPaw/pull/2486))
- **General Documentation Updates**: General website documentation improvements ([#2413](https://github.com/agentscope-ai/CoPaw/pull/2413), [#2461](https://github.com/agentscope-ai/CoPaw/pull/2461), [#2545](https://github.com/agentscope-ai/CoPaw/pull/2545), [#2546](https://github.com/agentscope-ai/CoPaw/pull/2546), [#2561](https://github.com/agentscope-ai/CoPaw/pull/2561), [#2564](https://github.com/agentscope-ai/CoPaw/pull/2564))
