From 68a5352bc64a214018a478f41015fd3361b3e47c Mon Sep 17 00:00:00 2001 From: cte Date: Thu, 8 Jan 2026 03:12:37 -0800 Subject: [PATCH] chore(cli): prepare release v0.0.45 --- apps/cli/CHANGELOG.md | 47 +++++++++++++++++++++++++++++++++++++++++++ apps/cli/package.json | 2 +- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/apps/cli/CHANGELOG.md b/apps/cli/CHANGELOG.md index 1bb3c5a241..c2682a591f 100644 --- a/apps/cli/CHANGELOG.md +++ b/apps/cli/CHANGELOG.md @@ -5,6 +5,53 @@ All notable changes to the `@roo-code/cli` package will be documented in this fi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.45] - 2026-01-08 + +### Changed + +- **Major Refactor**: Extracted ~1400 lines from [`App.tsx`](src/ui/App.tsx) into reusable hooks and utilities for better maintainability: + + - [`useExtensionHost`](src/ui/hooks/useExtensionHost.ts) - Extension host connection and lifecycle management + - [`useMessageHandlers`](src/ui/hooks/useMessageHandlers.ts) - Message processing and state updates + - [`useTaskSubmit`](src/ui/hooks/useTaskSubmit.ts) - Task submission logic + - [`useGlobalInput`](src/ui/hooks/useGlobalInput.ts) - Global keyboard shortcut handling + - [`useFollowupCountdown`](src/ui/hooks/useFollowupCountdown.ts) - Auto-approval countdown logic + - [`useFocusManagement`](src/ui/hooks/useFocusManagement.ts) - Input focus state management + - [`usePickerHandlers`](src/ui/hooks/usePickerHandlers.ts) - Picker component event handling + - [`uiStateStore`](src/ui/stores/uiStateStore.ts) - UI-specific state (showExitHint, countdown, etc.) + - Tool data utilities ([`extractToolData`](src/ui/utils/toolDataUtils.ts), `formatToolOutput`, etc.) + - [`HorizontalLine`](src/ui/components/HorizontalLine.tsx) component + +- **Performance Optimizations**: + + - Added RAF-style scroll throttling to reduce state updates + - Stabilized `useExtensionHost` hook return values with `useCallback`/`useMemo` + - Added streaming message debouncing to batch rapid partial updates + - Added shallow array equality checks to prevent unnecessary re-renders + +- Simplified [`ModeTool`](src/ui/components/tools/ModeTool.tsx) layout to horizontal with mode suffix +- Simplified logging by removing verbose debug output and adding first/last partial message logging pattern +- Updated Nerd Font icon codepoints in [`Icon`](src/ui/components/Icon.tsx) component + +### Added + +- `#` shortcut in help trigger for quick access to task history autocomplete + +### Fixed + +- Fixed a crash in message handling +- Added protected file warning in tool approval prompts +- Enabled `alwaysAllowWriteProtected` for non-interactive mode + +### Removed + +- Removed unused `renderLogger.ts` utility file + +### Tests + +- Updated extension-host tests to expect `[Tool Request]` format +- Updated Icon tests to expect single-char Nerd Font icons + ## [0.0.44] - 2026-01-08 ### Added diff --git a/apps/cli/package.json b/apps/cli/package.json index af99f3c544..61b79fbc0f 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "@roo-code/cli", - "version": "0.0.44", + "version": "0.0.45", "description": "Roo Code CLI - Run the Roo Code agent from the command line", "private": true, "type": "module",