- Remove ARCHITECTURE_AUDIT.md (internal audit report)
- Remove PROJECT_ANALYSIS.md (internal analysis document)
- Remove REFACTORING_PLAN.md (internal planning document)
- Remove blog-release.md (draft blog post)
- Remove llm-config-refactor.md (internal refactoring notes)
- Update AboutDialog.tsx to reflect documentation changes
These internal documents were used for planning and analysis purposes and are no longer needed in the repository. Keeping them clean reduces clutter and focuses documentation on user-facing content.
- Add comprehensive LLM configuration refactor documentation with new type definitions and routing rules
- Simplify type definitions in providers.ts with BuiltinProviderDef, UserProviderConfig, and RuntimeProviderConfig types
- Streamline settingsService configuration merging logic and unify advanced/adapterOverrides handling
- Refactor llmService provider routing to use providerId-based direct routing instead of complex isBuiltin checks
- Update AnthropicProvider to automatically handle authentication methods (x-api-key for official API, Bearer token for custom baseUrl)
- Remove isBuiltin flag from ProviderAdapterConfig as it's now determined by providerId routing
- Consolidate LLMConfig type with advanced field support for authentication and request/response overrides
- Update all provider implementations (OpenAI, Anthropic, Custom, Gemini) to work with unified configuration approach
- Enhance UI components (SettingsModal, ProviderSettings, CustomProviderEditor) to support new configuration structure
- Improve type definitions across renderer and shared modules for better type safety
- This refactor reduces configuration complexity and makes provider setup more intuitive for users
- Add comprehensive ARCHITECTURE_AUDIT.md documenting system design issues and optimization recommendations
- Identify critical problems: duplicate Store systems (chatSlice vs AgentStore), scattered type definitions, and redundant logging infrastructure
- Document medium-priority issues: complex Provider configuration, service initialization order, and performance optimization opportunities
- Provide prioritized refactoring roadmap (P0-P2) with specific action items and suggested directory structure
- Consolidate PROJECT_ANALYSIS.md to focus on high-level overview and reference ARCHITECTURE_AUDIT.md for detailed analysis
- Update LSP manager, LLM stream handler, and diagnostic services with improved logging and error handling
- Add diagnosticsStore service for centralized diagnostic state management
- Enhance Logger utility with better formatting and context support
- Improve StatusBar, CheckpointPanel, and ProblemsView components with updated state management
- Update custom LLM provider configuration handling
- Refactor App.tsx to use consolidated store architecture
- 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
- Separate reasoning content from message content into dedicated `reasoning` field in AssistantMessage type
- Add TokenUsage type to track prompt, completion, and total token counts independently
- Implement Provider caching with TTL (30 min) and LRU eviction (max 10 providers) in llmService
- Add dynamic tool result truncation with tool-specific strategies (search, command, definition)
- Enhance loop detection with semantic repeat and pattern matching capabilities
- Update LLMStreamHandler to independently store reasoning content and token usage
- Modify ChatMessage component to directly use message.reasoning field instead of parsing tags
- Display cumulative token usage in StatusBar with detailed hover tooltip
- Update AgentService to pass reasoning and usage data to store
- Improve provider cache key generation and add periodic cleanup mechanism
- Add LoopDetector class with multiple detection strategies (exact, semantic, pattern)
- Update documentation with Phase 7-9 refactoring completion details
- 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
- Remove duplicate `ToolStatus` and `ToolApprovalType` from `toolTypes.ts`, re-export from `core/types.ts`
- Delete redundant `src/renderer/agent/tools/schemas.ts` (duplicates `toolDefinitions.ts`)
- Remove `ToolApprovalType` from `enums.ts` (now centralized in `core/types.ts`)
- Remove `edits` approval type from `AgentConfig.autoApprove` (file editing doesn't require confirmation)
- Update `shared/types/index.ts` to remove deprecated `'edits'` approval type
- Update refactoring plan documentation with completion status
- Consolidate type definitions to single source of truth for consistency and maintainability
- Delete MessageBuilder.ts (functionality duplicated in ContextBuilder.ts)
- Remove duplicate PlanStatus/PlanItemStatus enums from enums.ts (already defined in types.ts)
- Fix AgentStore.ts type inference with explicit type assertions for ChatMessage
- Replace string literals with enum values (PlanStatus.Draft, PlanItemStatus.Pending)
- Remove unused imports from ChatPanel.tsx, PlanPreview.tsx, and ToolCallGroup.tsx
- Update REFACTORING_PLAN.md with Phase 6 completion details and TypeScript error fixes
- Ensure all TypeScript errors resolved and codebase passes strict type checking
- Extract configuration management into AgentConfig.ts (~90 lines)
- Centralize runtime config retrieval with getAgentConfig()
- Define AgentRuntimeConfig interface for type safety
- Move READ_TOOLS, RETRYABLE_ERROR_CODES, and error retry logic
- Extract LLM stream handling into LLMStreamHandler.ts (~350 lines)
- Implement StreamHandlerState for stream event management
- Move text chunk, reasoning, and tool call stream processing
- Consolidate XML tool call detection and streaming logic
- Extract context building into ContextBuilder.ts (~250 lines)
- Implement buildContextContent() for context assembly
- Move buildUserContent() for user message construction
- Add calculateContextStats() for context metrics
- Refactor AgentService.ts from 1656 to 705 lines (~57% reduction)
- Remove duplicate compressMessages() function
- Remove getConfig() function (moved to AgentConfig)
- Remove stream event handling logic (moved to LLMStreamHandler)
- Remove context building logic (moved to ContextBuilder)
- Update imports to use new modular structure
- Update documentation in REFACTORING_PLAN.md
- Mark Phase 5 as complete
- Document new module structure and line count reductions
- Update metrics table with AgentService refactoring results
- Extract SettingsModal into dedicated settings directory with modular architecture
- Create shared types definition in `settings/types.ts` for settings components
- Split settings tabs into separate components:
* ProviderSettings.tsx for LLM provider configuration
* EditorSettings.tsx for editor preferences
* AgentSettings.tsx for agent behavior settings
* PromptPreviewModal.tsx for prompt template preview
* SecuritySettings.tsx for security-related configurations
* IndexSettings.tsx for indexing settings
* SystemSettings.tsx for system-level settings
- Create `settings/tabs/index.ts` for centralized tab exports
- Refactor main SettingsModal.tsx to orchestrate tab components (~180 lines)
- Update App.tsx import path to new settings module location
- Remove original monolithic SettingsModal.tsx (1936 lines)
- Update REFACTORING_PLAN.md with completion status
- Reduces component complexity and improves maintainability following established modular patterns
- Add comprehensive refactoring plan documentation (REFACTORING_PLAN.md)
- Create automated refactoring scripts for imports, types, and logger migration
- Reorganize renderer components into functional groups (layout, sidebar, settings, editor)
- Split large monolithic files (Sidebar.tsx, SettingsModal.tsx, AgentService.ts) into smaller modules
- Migrate all console.log/warn/error calls to centralized Logger utility across 60+ files
- Standardize import paths from relative paths to @/ alias throughout codebase
- Create shared Logger utility in src/shared/utils for cross-process logging
- Update TypeScript and Vite configurations to support new module structure
- Restructure services directory with functional categorization (lsp, completion, storage, file)
- Reorganize agent features into core, tools, context, and store subdirectories
- Improve code maintainability and reduce circular dependencies through better separation of concerns