Release Notes
Summary
This release introduces a robust, budget-aware agent recovery subsystem, centralized execution safeguards, and polished TUI layouts. It also addresses critical review feedback by resolving core state machine vulnerabilities, memory leaks, terminal responsiveness bugs, and key typing errors across daemon and configuration modules.
Key Features & Enhancements
1. Robust Agent Recovery Subsystem
- Budget-Aware Coordination: Introduces
RecoveryCoordinatorandRecoveryBudgetto govern recovery strategies within strict resource boundaries. - Unified Error Classification: Implements
UnifiedErrorClassifieralongside pluggable, strategy-based recovery behaviors for adaptive failure handling.
2. Execution Safeguards & Tooling
- Centralized Tool Idempotency: Adds
ToolExecutionLedgerto guarantee single-execution semantics and prevent redundant tool invocations. - Structured SCM Integration: Introduces a dedicated
scm_synctool for reliable, structured source control operations. - TUI Streamlining: Optimizes the terminal user interface to automatically skip duplicate command inputs.
- Responsive CLI Configuration Table: Implements
_build_config_list_tablein CLI slash handlers, dynamically adapting the TUI layout of writable configuration fields based on terminal width. Includes comprehensive layout unit tests verifying rendering behavior across compact, medium, and full-width sizes.
Bug Fixes & Stability Hardenings
Core & Security Patches
- Checkpoint State Machine Correction: Patches a critical checkpoint flow vulnerability, ensuring preconditions are fully validated before transitioning checkpoints to a
CONSUMEDstate. - Memory Leak Mitigations: Prevents heap growth by enforcing automated purging of expired checkpoints and bounding the maximum size of audit log entries.
- Failure & Coordinator Stabilization: Eliminates double-counting of consecutive failures, resolves potential state corruption in the coordinator, and fixes a runtime
TypeErrorin the error classifier. - Daemon Security Patch: Resolves a signature-checking vulnerability within the background daemon service to secure IPC/RPC communication.
CLI & Configuration Fixes
- Falsy Value Handling: Fixes the
_shortenhelper to explicitly check forNoneso that valid falsy values like0orFalseare no longer incorrectly omitted or treated as empty strings. - Flexible Type Support: Updates
_config_reload_textto correctly process both boolean and string values (e.g.,'partial') for thehot_reloadfield instead of strictly casting it to a boolean.
What's Changed
- feat(tui): adapt config list table layout by @wangxingjun778 in #18
- feat(core): Implement Budget-Aware Recovery Subsystem, Tool Idempotency, and Core Stability Fixes by @wangxingjun778 in #19
- [Doc] Update news by @wangxingjun778 in #20
Full Changelog: v0.0.3...v0.0.4