Repository navigation
v0.3.12 — Chain of Thought
What's New
Chain of Thought Reasoning
Every AI response now includes structured reasoning steps displayed in a collapsible panel. The AI thinks through its approach before responding — checking study notes, selecting templates, planning content — and shows you exactly what it's considering.
Canvas Improvements
- Flowcharts are now mandatory for every canvas creation
- Canvas tool calls are emitted reliably (no more descriptions without actual canvas creation)
- Canvas creation follows a strict order: reasoning → short text → tool call → confirmation
Reliability Fixes
- Fixed frontend fetch timeout causing 'Failed to get response' errors on slow canvas/note creation requests (120s AbortController)
- Reasoning steps are persisted in the database and survive page reloads
- System prompt restructured so output format rules and tool call requirements are at the top
Technical
- Added AI Elements ChainOfThought component (@ai-elements/chain-of-thought)
- Added reasoning column to messages table (auto-migrated)
- Backend parser distinguishes reasoning blocks (JSON arrays) from tool calls (JSON objects)