Performance Improvements
- SQLite WAL & Concurrency Tuning: Enabled
PRAGMA journal_mode=WAL,synchronous=NORMAL,busy_timeout=5000, andtemp_store=MEMORYinlib/db/client.ts; removed noisy dev query logging and hot-path console spam. - True Token-by-Token Streaming: Enabled
includePartialMessages: trueacross Claude, GLM, and MiniMax Agent SDK integrations with 35ms stream event coalescing and duplicate-free tool call preservation. - Eliminated Startup & Explorer Waterfalls: Parallelized chat page initialization (
Promise.all), added single-request?depth=2directory tree loading (GET /api/repo/[project_id]/tree), fixed double-prefixed nested folder path bug, and deferred code syntax highlighting (useDeferredValue) + deduplicated highlight.js stylesheet loading. - Lower Polling & Faster Preview Startup: Reduced active-request polling overhead (500ms/5s → 2.5s/15s), removed unnecessary 200-message DB refetches after each turn, fixed latest-message pagination (
order=latest), tightened preview readiness check (1000ms → 200ms), and removed the artificial 1000ms preview reveal delay.
Lovable-Grade Capabilities
- Stop / Cancel AI Generation: Added shared
activeRunRegistryacross all 6 CLI providers (Claude, Codex, Cursor, GLM, MiniMax, Qwen),POST /api/chat/[project_id]/stop, and a Stop control inChatInput(while keeping the prompt input editable to compose the next prompt). - Automatic Git Checkpoints & 1-Click Version Restore: Auto-commits clean git checkpoints after every successful AI turn, records commits in Prisma, exposes
GET/POST /api/projects/[project_id]/historyandPOST /api/projects/[project_id]/history/restore(non-destructive linear restore with pre-restore backup), and adds a Version History popover in the chat toolbar. - Preview Error Auto-Detection, Live Logs & 1-Click "Fix with AI": Parses Next.js/TypeScript/runtime errors from preview server output and client-side iframe exceptions, publishes real-time
preview_error/preview_successevents, addsGET/DELETE /api/projects/[project_id]/preview/logs, a live Preview Logs drawer, and an inline Fix with AI action bar. - Visual Element Picker ("Select to Edit") & Route Sync: Adds a dev-only
public/__claudable_inspector.jspostMessage bridge for clicking elements inside the live preview to attach tag/selector/text context directly into chat, plus automatic preview address bar sync. - Full File CRUD, Project Search & One-Click ZIP Export: Added create/rename/delete (
POST/PATCH/DELETE /api/repo/[project_id]/file) with symlink/realpath traversal guards, project search (GET /api/repo/[project_id]/search), and zero-dependency PKZIP source export (GET /api/projects/[project_id]/export, excludingnode_modules/.next/.git). - Adaptive Extended Thinking & Viewport Controls: Wired Claude adaptive high-effort Thinking toggle (
thinkingMode), improved multimodal image prompt hints, added Tablet viewport preset and Open-in-New-Tab preview button, and auto-refreshes preview & file tree when AI turns finish.