- Introduced `stress-test-agent-full-turn.cjs` for benchmarking agent workflows, measuring CPU and GPU usage during various phases of operation.
- Added `stress-test-diff-syntax.cjs` to evaluate performance of inline diff rendering under varying line counts.
- Created `stress-test-embedding-cpu.ts` to assess CPU utilization during local transformer model embeddings.
- Implemented `stress-test-gpu-rendering.cjs` for testing GPU rendering performance with animations and UI interactions.
- Developed `stress-test-indexing-cpu.ts` to benchmark CPU performance during incremental indexing operations.
- Enhanced file change buffering configurations in `fileChangeBuffer.ts` to improve responsiveness.
- Updated `fileWatcher.ts` to refine ignored patterns for file watching, optimizing performance.
- Modified `EmotionAmbientGlow.tsx` to pause animations during agent streaming to reduce GPU load.
- Improved `InlineDiffPreview.tsx` to conditionally simplify highlighting based on streaming state.
- Enhanced `TerminalManager.ts` to buffer terminal writes and limit rendering frequency, improving performance during high-frequency updates.
- Add `usePlanPresentation` hook for managing plan presentation logic.
- Refactor `PlanHistoryDrawer` to support portal rendering and improve accessibility.
- Update `PlanWorkbench` to conditionally render based on plan state and integrate `PlanHistoryDrawer` with portal support.
- Enhance `PlanWorkbenchEmpty` and `PlanWorkbenchQuestion` for better user experience and styling.
- Introduce new translations for plan design features in English and Chinese.
- Add tests for plan presentation and task review functionalities.
- Create a browser test setup for plan layout regression testing.
- Added support for customizable terminal panel properties including docked state and visibility.
- Implemented workspace layout persistence, allowing for restoration of user-defined layouts and visibility states.
- Introduced new UI elements for managing terminal actions and visibility.
- Enhanced sidebar component to accept external panel states for improved flexibility.
- Updated localization files to include new workbench-related strings for better user experience.
- Added comprehensive tests for workbench layout persistence and docking behavior.
- Added DecorativeAnimationScope component to manage the state of decorative animations across the application.
- Updated AppContent to utilize DecorativeAnimationScope for better animation control.
- Refactored EmotionPanelSettings to clarify the purpose of decorative animations.
- Enhanced ChatMessage, ChatPanel, and other components to use chat-layered-surface for consistent styling.
- Improved performance by pausing animations when the modal is open or when decorative animations are disabled.
- Updated CSS to support new animation behaviors and ensure smooth transitions.
- Added tests for the useDecorativeAnimations hook to verify the lifecycle and shared listeners.
- Added a new Notification Center to manage and display messages from the editor and task events.
- Introduced InlineToastAnchor and GlobalToastContainer components for better toast management.
- Enhanced background task handling with MCP connection checks and improved performance diagnostics.
- Implemented notification history management with hooks and integrated system notifications.
- Updated internationalization files for new message center features.
- Added tests for background connection checks to ensure proper functionality.
- Added ExecutionManager component to EditorSettings for managing execution settings.
- Enhanced TerminalManager to handle new terminal exit reasons and messages.
- Introduced execution API methods for overview and management requests.
- Added execution settings to user preferences with normalization and defaults.
- Created execution settings configuration and normalization logic.
- Developed execution presentation functions for status and reason labels.
- Expanded i18n support for execution-related terms in English and Chinese.
- Updated execution types to include new properties for better tracking.
- Implemented tests for execution lifecycle and log store functionalities.
feat(terminal): add shell integration support with OSC 633 parsing
feat(execution): introduce execution limits and types for command management
fix(notifications): refine notification settings and API for better handling
test(execution): add comprehensive tests for execution scheduler and service
test(notifications): enhance tests for notification routing and webhook handling
test(terminal): implement tests for terminal manager and shell process management
- Added new settings tabs for network, data, diagnostics, background, and notifications.
- Introduced a new module for summarizing agent events and publishing notifications.
- Implemented an event bus for editor notifications to decouple event handling from the main application logic.
- Created a Zustand store for managing notification state and snapshots.
- Developed a notification bridge to handle incoming notifications and display them in the UI.
- Added support for webhooks in the notification settings, allowing users to configure external notification endpoints.
- Implemented comprehensive tests for the notification system, ensuring reliability and correctness.
- Updated localization files to include new notification-related strings in English and Chinese.
- Replaced Worker threads with UtilityProcessClient for AssetStorageWorkerClient and SessionStorageWorkerClient.
- Implemented utility server for handling requests in asset and session storage workers.
- Updated asset storage worker and session storage worker to use new request handling mechanism.
- Introduced ContentProcessClient for document reading operations with utility process support.
- Added tests for utility process lifecycle and asset service interactions.
- Enhanced error handling and request management in utility process client.
- Added IPC handlers for background task updates and connection checks.
- Created BackgroundTaskService to manage task states and connections.
- Implemented connection checking logic for model endpoints.
- Developed activity projection logic to track background task states.
- Introduced persistent settings for background task preferences.
- Added UI components for managing background task settings.
- Implemented tests for background task functionality and IPC interactions.
- Added `previewPrepareSession` and `previewConfigureDevice` methods to the Electron API for managing preview sessions and device configurations.
- Implemented `PreviewPartitionService` to handle project-specific partitions, ensuring isolation between different projects and sessions.
- Enhanced `PreviewBrowserService` to support device emulation, allowing for dynamic configuration of device metrics based on user selection.
- Introduced `PreviewDeviceToolbar` component for user interface to select device type and orientation in the preview tab.
- Updated `usePreviewEnvironment` hook to manage device settings and session preparation, improving the user experience in the preview feature.
- Added localization strings for new preview features in both English and Chinese.
- Implemented unit tests for IPC handlers, preview session management, and partition service to ensure reliability and correctness of the new features.
- Add IPC handlers for diagnostics capture, allowing memory snapshots and performance tracing.
- Introduce ApplicationDiagnostics and ProcessDiagnostics services for managing diagnostics data.
- Implement UI components for diagnostics settings, enabling users to initiate diagnostics captures.
- Enhance memory and process monitoring with detailed reporting and history tracking.
- Add localization support for diagnostics-related messages in English and Chinese.
- Create tests for diagnostics IPC handling and service functionality to ensure reliability.
- Introduced `browser_open`, `browser_inspect`, and `browser_action` tools for managing browser sessions and interactions.
- Implemented schemas for input validation using Zod in `browserAutomation.ts`.
- Enhanced `executors.ts` to integrate new browser tool executors.
- Created `browser.ts` to handle browser-specific actions and responses.
- Updated `BrowserPreviewTab.tsx` to support new browser URL validation.
- Added configuration for browser tools in `browserTools.ts`.
- Implemented tests for browser tool functionality and integration.
- Updated localization files for new tool descriptions and error messages.
- Ensured that browser tools respect execution context and prevent unauthorized actions in sub-agent mode.
- Implemented `htmlToText` and `stripXmlTags` functions for extracting plain text from HTML and XML.
- Added unit tests for markup text extraction to ensure proper functionality and handling of edge cases.
refactor: change McpAuthStore to use IIFE pattern
- Refactored `McpAuthStore` from a namespace to an IIFE for better encapsulation and clarity.
- Updated all function exports to be private within the IIFE.
fix: improve type handling in McpClient and McpOAuthCallback
- Adjusted type casting for accessing private properties in `McpClient`.
- Refactored `McpOAuthCallback` to use IIFE pattern for better structure.
fix: enhance error handling in EmotionAdapter and TerminalManager
- Added comments to catch blocks to clarify error handling intentions.
- Improved error handling in terminal-related classes to ensure graceful degradation.
style: clean up variable declarations and improve readability
- Changed `let` to `const` where applicable for better immutability.
- Removed unnecessary semicolons and improved formatting for consistency.
test: add tests for security patches and post-install scripts
- Created tests for dependency security patches to ensure proper handling of symlinks.
- Added tests for Visual Studio environment activation to validate shell command execution.
chore: update various components for better performance and maintainability
- Refactored components and services to improve code quality and maintainability.
- Updated comments and documentation for clarity and better understanding.
- Introduced tests for asset configuration assistant, ensuring proper handling of JSON responses and redaction of sensitive information.
- Added tests for asset error handling, focusing on extracting actionable error messages while redacting sensitive data.
- Implemented tests for local media streaming, validating byte-range requests and error handling for invalid ranges.
- Created extensive tests for asset service, covering capability contracts, job submissions, and error handling in various scenarios.
- Developed tests for asset SQLite worker to ensure persistence across worker restarts and proper handling of database operations.
- Added tests for configuration asset repository, verifying migration of settings and protection of sensitive credentials.
- Updated Vite configuration to include asset storage worker for proper bundling and resolution of dependencies.
- Added .node-version and .nvmrc files to specify Node.js version 22.x.
- Updated .npmrc to enforce strict engine and package manager versions.
- Introduced mise.toml for consistent versioning across tools.
- Revised CONTRIBUTING.md, README.md, and other documentation to reflect new Node.js and pnpm requirements.
- Implemented ensure-pnpm.js script to ensure pnpm is used for installations.
- Updated CI workflows to reference .nvmrc for Node.js versioning.
- Introduced caching for commit reports in AiAttributionService to optimize read operations.
- Improved session file handling in SessionFileStore with concurrent read and write capabilities.
- Added utility functions for managing read concurrency and pending operations.
- Updated model routing to support multimodal configurations and fallback mechanisms.
- Enhanced image reading services with dedicated tests for visual analysis and routing.
- Implemented sanitization for tool outputs to ensure clean and safe content delivery.
- Added comprehensive tests for new features and existing functionalities across various services.
- Introduced PLAN_BOARD_PATH constant and isPlanBoardPath function in planBoard.ts.
- Implemented tests for task tool execution planning, ensuring proper handling of parallel execution and batching of independent sub-agents.
- Added tests for planWorkflowGuard to validate state transitions and reminders based on user interactions.
- Enhanced PromptBuilder tests to ensure correct template resolution for different modes.
- Created tests for fileSlice to verify behavior of pinned plan boards during open and close operations.
- Updated vite.config.ts to include 'web-tree-sitter' as an external dependency.
- Replaced the existing postinstall command in package.json with a new script located in scripts/postinstall.js.
- Added functionality to handle WASM assets and native module rebuilds for Electron in the new postinstall script.
- Reorganize brand assets into centralized public/brand/ structure with icons/, logos/, ip/, and welcome/ subdirectories
- Move app icons (app.ico, app.icns, app.png) and light variants to public/brand/icons/
- Move in-app logos to public/brand/logos/ and IP avatar to public/brand/ip/
- Move loader logo to public/brand/welcome/
- Update favicon and loader image references in index.html to new asset paths
- Update electron-builder configuration in package.json to reference new icon locations
- Remove legacy icon generation script (scripts/generate-icons.js) and old resource directories
- Add ASSET_REPLACEMENT.md documentation with directory map and replacement checklist
- Update README.md and README_EN.md build instructions to reflect new asset organization
- Simplifies brand asset management by consolidating scattered assets into a single, well-organized directory structure
- Add icons.json with 1100+ icon definitions from Lucide library including navigation, action, and status categories
- Add react-performance.json with React optimization patterns and best practices
- Add UI reasoning framework (ui-reasoning.json) for design decision documentation
- Add web interface guidelines (web-interface.json) for consistent web UI patterns
- Add technology stack configurations for Jetpack Compose, Nuxt UI, NuxtJS, and shadcn
- Update prompts.json with enhanced prompt templates for UI/UX agent
- Refactor UiuxDatabase.ts to support new data structure and improved type safety
- Update types.ts with comprehensive type definitions for new UI/UX resources
- Enhance convert-uiux-data.js script to handle new data formats and validation
- Update unified LLM provider to support UI/UX specific model configurations
- Improve ChatMessage component rendering for UI/UX agent responses
- Update tools configuration to expose new UI/UX capabilities
- Add tree-sitter WASM binaries for 11 additional languages (Bash, CSS, Elixir, HTML, Kotlin, Lua, Scala, Swift, TOML, Vue, YAML)
- Expand language parser coverage to support web, configuration, and functional programming languages
- Update download-wasm.js script with organized language categories and comments for unavailable parsers
- Add adm-zip dependency for WASM binary extraction and management
- Update package.json and package-lock.json to version 1.3.7
- Refactor LSP IPC handlers to use centralized installer utility
- Improve smartReplace utility with enhanced pattern matching capabilities
- Extend language definitions to support newly added parsers
- Replace hardcoded GitHub token with placeholder value "999"
- Prevent accidental exposure of sensitive credentials in version control
- Improve security by removing personal access token from repository
- Add progress throttling to indexService to reduce IPC message frequency
- Implement safe file path sanitization in vectorStore to prevent SQL injection
- Add batch delete operation for improved performance when removing multiple files
- Enhance GitHub release sync script with token authentication support
- Consolidate renderer hooks into centralized index.ts for better organization
- Remove deprecated chatSlice in favor of agent-based state management
- Improve LSP manager crash recovery with enhanced restart logic
- Optimize TerminalManager and TerminalPanel for better performance
- Add PerformanceMonitor utility enhancements for better metrics tracking
- Refactor agent services to improve context building and tool execution
- Update ChatContextStats and CommandPalette components for consistency
- Migrate from chat-based to agent-based architecture for improved scalability
- Add comprehensive UI/UX design data resources including charts, colors, typography, styles, and component stacks (Flutter, React, Vue, Svelte, Next.js, React Native, SwiftUI, HTML/Tailwind)
- Implement BM25 search engine for efficient UI/UX design pattern retrieval and querying
- Create UiuxDatabase class to manage and index design system data with full-text search capabilities
- Add uiux tool provider and integrate into agent tool registry for design-related queries
- Implement IPC resources endpoint to expose UI/UX data to renderer process
- Add conversion script to process and transform UI/UX data into optimized JSON format
- Update electron preload and IPC configuration to support new resources module
- Configure resource bundling in package.json to include uiux directory in distribution
- Add tool group configuration for organizing UI/UX tools alongside other agent capabilities
- Update agent settings UI to reflect new tool availability
- Enables AI agent to provide intelligent design recommendations and UI/UX guidance based on comprehensive design system knowledge
Replaced old Toast.tsx with new InlineToast.tsx - a compact, animated toast that appears above the status bar
Updated API to support both toast.success(message, duration) and toast.success(title, detail) patterns for backward compatibility
Removed old Toast export from ui/index.ts
2. Monaco Editor Worker Error
Added setEagerModelSync(false) to monacoWorker.ts to reduce race conditions where TypeScript worker tries to access disposed in-memory models
3. Release Script Fix
Changed git push --tags to git push origin v${newVersion} to avoid conflicts with existing remote tags
4. File Watcher Dependency
Removed chokidar from dependencies - code already uses @parcel/watcher which has better performance (native C++ bindings vs Node.js polling)
5. Production Build MIME Type Error
Removed <link rel="modulepreload" href="/src/renderer/main.tsx" /> from index.html - Vite was incorrectly converting it to a base64 data URL with application/octet-stream MIME type, which browsers reject for ES modules
- Create centralized LLM type definitions in src/shared/types/llm.ts
- Move all shared types (ToolCall, LLMConfig, ToolDefinition) to src/shared/types/
- Consolidate Provider configuration into unified structure
- Update all LLM provider implementations to use unified types
- Remove duplicate type definitions from renderer and main process
- Delete src/renderer/agent/tools/types.ts in favor of shared types
- Add utility scripts for type unification and import updates
- Add comprehensive PROJECT_ANALYSIS.md documenting architecture and refactoring priorities
- Update type imports across all modules to reference single source of truth
- Improve type consistency and maintainability across codebase
- Add refactoring scripts to automate import path fixes and component organization
- Reorganize components into logical subdirectories (common, dialogs, editor, layout, panels, tree)
- Move 30+ components to new modular structure with proper categorization
- Update all import paths across codebase to reflect new component locations
- Fix relative imports in moved components to maintain correct module resolution
- Update documentation with refactoring progress and unified type definitions count
- Improve code organization for better maintainability and scalability