- Revised the description for the todos parameter to clarify its purpose.
- Added detailed schema for individual todo items, including content, status, and activeForm properties with their respective types and descriptions.
- Introduced optionsRef to maintain a stable reference to the options parameter, ensuring that the latest options are used in callbacks.
- Updated the onInitialized callback to utilize optionsRef for consistent behavior.
- Removed options from the dependency array in useEffect to prevent unnecessary re-renders.
- Updated `secureTerminal.ts` to use asynchronous command checks with `execFileAsync` for better performance.
- Enhanced shell detection logic to run checks in parallel for WSL and PowerShell Core.
- Refactored Unix shell detection to utilize asynchronous execution and improved readability.
- Minor optimizations in `ChatMessage.tsx`, `ChatPanel.tsx`, and other components to streamline state management and improve performance.
- Implemented `resolveHeaderPlaceholders` function to replace `{{apiKey}}` in headers with the actual API key.
- Updated `createModel` to utilize the new header resolution logic for both built-in and custom models.
- Modified `StreamingService` to apply header resolution when configuring requests.
- Adjusted `ProviderSettings` to prevent dependency issues in effect hooks.
- Updated `CompressionManager.ts` to validate assistant message content as a string.
- Enhanced `ChatMessage.tsx` to ensure content is a string before processing.
- Modified `ThemeManager.tsx` to validate theme colors and ensure they are strings.
- Improved `monacoTheme.ts` and `xtermTheme.ts` to handle non-string RGB inputs gracefully.
- Extract `notifyComposerChange()` helper in executors.ts, replacing 6 duplicated composer integration blocks
- Add reference caching to `getAgentConfig()` to avoid rebuilding config object on every call
- Remove unnecessary `as any` casts in messageSlice (\_textFinalized, \_flushTextBuffer) with proper types
- Replace `any` types in executors.ts (EditWarning[], result objects, CodeGraphNode[])
- Move `CodeGraphNode` interface from main to shared/types for cross-process type safety
- Stabilize useAgent hook: separate `useAllThreads()` hook, ref-based sendMessage callback
- Stabilize useGlobalShortcuts: stateRef pattern for stable keydown handler
- Fix ChatPanel: remove dead useEffect, add ObjectURL cleanup, fix getSuggestions race condition
Security: fix XSS in OAuth callback, validate git clone URLs against injection,
wrap McpAuthStore read-modify-write in lock to prevent race conditions.
Performance: convert McpConfigLoader to async I/O, cache config in McpManager
to avoid repeated file reads, add proper debounce for config file watcher,
clear timeout timers in McpClient.withTimeout and connect.
Quality: deduplicate Skills install logic into shared installFromGitRepo method,
replace raw window.electronAPI calls with api.mcp wrapper, add delete confirmation
to SkillSettings, replace any types with proper McpTool/McpResource/McpServerState,
fix abort listener leak in mcpService.callTool, add retry limit to OAuth port binding,
expose getWorkspaceRoots to avoid private property access, add nameMap cleanup method,
escape XML attributes in Skills prompt builder.