What problem does it solve? It gives the AppLoop builder durable undo and branching for AI-driven edits: every prompt auto-saves conversation state plus a git commit of the generated project, so restoring a session or editing an old prompt reverts both messages and files consistently. ## Core Features & Use Cases - Auto-checkpoints on prompt submit: Each send creates a git file snapshot (git add -A && git commit) and a hidden prompt checkpoint before chat.sendMessage runs. - Session boundaries and restore: New sessions capture full message snapshots, persist to the chat_checkpoints SQLite table, and restore via git reset --hard plus chat.setMessages. - Edit & resend: Restore/Edit buttons on past user messages truncate UI and DB messages from the clicked prompt onward, revert files, restart the runtime, and optionally prefill the raw prompt. - Use Case: A user dislikes the last three AI-generated changes to their Next.js app; clicking Restore on an earlier prompt rolls back the workspace files via git and deletes the later persisted messages so they never reappear on reload. ## Quick Start Ask the assistant to modify or debug the checkpoint restore flow in builder-shell.tsx using the chat-checkpoints conventions for snapshots and DB persistence.