🚀 CodeBuddy Code v2.61.0 Release
✨ New Features
Memory System Overhaul
- # Shortcut for Saving Memories: The
#shortcut now saves memories toCODEBUDDY.md, with support for selecting either Project or User scope, providing more flexible management of personal and project-level preferences. - Auto Memory Independent Control: A new
/memorymanagement panel has been added, supporting independent toggling of Auto Memory. It can also be switched via the/configpanel. - Typed Memory (Experimental): Supports 4 structured memory types (
user/feedback/project/reference) and YAML frontmatter format for more organized memory management. - /memory Command with Arguments: Supports saving memories directly via command arguments, without needing to navigate to the management page.
🔧 Improvements
- Decoupled Tool Search and Execution: ToolSearch now returns the full parameter schema for the agent to execute, keeping the context prefix stable to improve KV cache hit rates.
- Context Management Optimization: Lowered the token usage warning threshold so context compression triggers earlier, reducing degradation in conversation quality caused by excessively long contexts.
- Shell Performance Optimization: Optimized the PTY fd leak detection mechanism to avoid blocking the event loop.
- WeCom Bot Timeout Fix: Adopted a two-phase reply mechanism to avoid the 30s streaming timeout issue, allowing long-running Agent tasks to return results correctly.
- Web UI Session Sync: When
/clearis executed or a new conversation is created in the Web UI, the CLI terminal view refreshes in sync. - File Path Completion: The Web UI input box now supports
@-triggered file path completion, automatically adding a space after selection. - Prompt Suggestions: The Web UI now displays prompt suggestions generated on the CLI side; press Tab to quickly accept them.
🐛 Bug Fixes
- Tool Call Retry: Fixed an issue where invalid JSON parameters returned by the model caused an immediate 400 error. The model is now informed of the specific JSON parse error and retries automatically.
- Sub-agent Hook Isolation: Skips execution of Stop/UserPromptSubmit hooks for sub-agent sessions to prevent sub-agents from triggering hooks intended only for the main session.
- SubagentStop Hook Race Condition Fix: Prevents duplicate hook triggers caused by concurrent detection paths.
- Permission Wildcard Matching: Fixed an issue where wildcard permission rules such as
Bash(ls *)failed to match commands containing path arguments. - Web UI Clear Session: Fixed an abnormal duplicate render loop triggered after
/clear. - Slash Command Loading: Fixed an issue where the slash command list could not be loaded when accessed via tunnel.