Performance & Runtime Optimizations
- 30s TTL CLI Status Cache & In-Flight Deduplication (
GET /api/settings/cli-status): Drops repeated latency from ~560–620ms down to 1.6–2.3ms (240–386x faster) with?refresh=1force-bypass andX-CLI-Status-Cache: HIT|MISS. - Zero-Churn Streaming Markdown (
ChatLog.tsx): Memoized Markdown/Thinking renderer with static component maps, removed per-renderToolResultMessageremounting, and eliminated hot-pathconsole.logloops. - Next.js 15 Turbopack Dev Server: Enabled
--turbopackby default in scaffoldedscripts/run-dev.js(opt-out viaCLAUDABLE_DISABLE_TURBOPACK=1) for 3–5x faster cold starts and HMR. - SHA-256 Auto-Dependency Sync: Automatically detects
package.jsondependency changes after AI turns and installs missing npm packages so preview servers never crash withModule not found. - Bundle & Startup Optimization: Enabled
compress,optimizePackageImports(lucide-react,react-icons,framer-motion), dynamic on-demandProjectSettingsloading, and single-shot WebSocket warmup (eliminating the artificial 100ms delay).
Lovable 2.0 Capabilities
- Project Knowledge / Custom Instructions: Per-project Knowledge tab in Project Settings + automatic
CLAUDABLE.md/CLAUDE.md/AGENTS.mdcontext injection across all 6 CLI providers. - One-Click TypeScript Diagnostics + Fix with AI (
POST /api/projects/[id]/check): Runstsc --noEmitdirectly on the project, lists clickablefile:line:coldiagnostics in the Code Editor drawer, and fixes errors in one click. - Inline Checkpoint Unified Diff Viewer (
GET /api/projects/[id]/history/[sha]/diff&/diff): Inspect git diffs directly inside the Version History popover before restoring. - Multi-Tab Code Editor &
Cmd+PQuick Search: Switch between multiple open files with preserved unsaved drafts, dirty indicators, and globalCmd/Ctrl+Psearch focus. - Project Duplicate / Remix (
POST /api/projects/[id]/duplicate): One-click project cloning from the sidebar (copies source, git history, and knowledge while skippingnode_modules/.next). - Opt-In Auto-Fix Preview Loop: Optional checkbox in the Preview Error bar (strictly capped at 2 attempts per error signature).
- Prompt History & Keyboard UX:
ArrowUp/ArrowDownprompt recall andCmd/Ctrl+Entersend inChatInput, plus fixed inline project rename Save click.