What's new in InkTrace — every update, every improvement.
Token Tracking Fix, Web Research & AI Agent Upgrade
•Fixed token usage tracking — quota counter was silently recording 0 tokens for all DeepSeek and Kimi K2.5 conversations due to missing stream_options in API requests
•Added character-based token estimation fallback when providers fail to report usage
•Fixed Kimi K2.5 summary generation crashing with 400 error — model requires temperature 0.6, was hardcoded to 0.3
•Added webResearch compound tool — AI can now run 1-8 search queries in parallel instead of 10+ individual calls
•Added batch character creation endpoint — single request creates up to 50 characters instead of N parallel POSTs
•Fixed batch character creation failing with 400 — AI-generated data now normalized to match API schema before submission
•Fixed slow character creation on localhost (~10s → <500ms) — enabled prepared statements for local dev
•Added thinkAndPlan and validateResult tools for AI agent autonomy
•Increased agent tool-calling depth from 10 to 15 steps
AI Chat Reliability & Mind Map Board Management
•Fixed AI chat history disappearing after page refresh — assistant messages now persist via placeholder-then-update pattern
•Fixed chat session switching causing stale messages — useEffect dependency changed from object reference to session ID
•Added mind map board deletion with confirmation dialog
•Added bilingual strings for character profile sections and reading/editing modes
AI Chat: Tool-Call Enforcement & Error Visibility
•Rewrote AI system prompt to enforce tool calls — AI must call createCharacter/updateCharacter instead of describing content as text
•Added visible error cards when AI tools fail — no more invisible empty preview cards
•Fixed AI conversation history losing tool-call context across turns — model now remembers previous tool use
•Consolidated system prompt rules from 25 to 16 for clarity
AI Chat Bug Fixes & Mind Map Prompt Improvements
•Fixed chat bubbles not expanding to fit content — caused by CSS @keyframes name collision clamping max-height to 48px