Changelog

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
  • •Fixed backend validation rejecting conversations with tool-only assistant messages (empty content)
  • •Fixed multi-line input only sending the first line — replaced SDK handleSubmit with direct append()
  • •Added IME composition guard so Enter during CJK input confirms the candidate instead of submitting
  • •Fixed chat session sorting — lastMessageAt now updates immediately after user sends a message
  • •Fixed chat titles not auto-generating (chain reaction from validation failure)
  • •Improved scroll-to-bottom reliability with requestAnimationFrame timing
  • •Removed redundant double CSS animations on chat messages (Framer Motion handles enter/exit)
  • •Enhanced mind map system prompt with entity ID pre-flight rules and detailed guidelines
  • •Added content fallback for mind map nodes without entityId — no more "Unknown" labels

Chinese Localization & Typography Polish

  • •Polished Chinese hero typography — ZCOOL QingKe HuangYou display font for poster feel
  • •New Chinese hero copy: "你的世界 / 只需一处书写" with no punctuation for clean poster aesthetics
  • •Added :lang(zh) CSS overrides — CJK line-height, letter-spacing, font-pixel fallback
  • •Added Noto Sans SC + ZCOOL QingKe HuangYou to Google Fonts preload
  • •Dynamic <html lang> attribute syncs with i18n language switch
  • •Added 75+ Mind Map translation keys for both en-US and zh-CN
  • •Added 30 fonts (18 English + 12 Chinese) to editor font picker

SEO Overhaul & Landing Page Redesign

  • •Complete SEO/AEO overhaul with brand messaging alignment
  • •Redesigned landing page with halftone aesthetic and shader backgrounds
  • •Added premium polish to internal UI — refined colors, spacing, and typography
  • •Optimized landing page for mobile responsiveness
  • •Fixed wiki/chapter creation bugs and added category transfer

Mind Map: Theme Colors & Performance

  • •Added theme colors to mind map nodes and connections
  • •Fixed drag performance — nodes now move at 60fps with zero lag
  • •Added resize handles for all node types
  • •AI chat panel work-in-progress
  • •Chapter metadata refactoring
  • •Resolved frontend TypeScript build errors

Mind Map: Rich Text & Canvas Interactions

  • •Added TipTap rich text editor overlay for note cards
  • •Double-click canvas to create nodes via context menu
  • •Migrated sticky note rendering to NoteCard component
  • •Migrated all frontend hooks to typed Hono client — removed legacy auth headers
  • •Extracted createApp() to eliminate dual entry point desync
  • •Added project ownership middleware and error handling for all API routes

Mind Map: Note Cards & Database Schema

  • •Added NoteCard component for rich text note nodes
  • •Added universal resize handles to note, sticky, and wiki nodes
  • •Created 5 mind map database tables — boards, nodes, connections, groups, drawings
  • •Added AI sessions, feedback, and relationship tables to the database
  • •Synced production entry point with 5 missing route groups
  • •Fixed integer casting in reorder endpoints

Character Graph & Relationship System

  • •Built character graph visualization with D3-force auto-layout
  • •Added character nodes and relationship edge rendering on canvas
  • •Created relationship types CRUD API with seeded defaults per project
  • •Added character relationships API with ownership verification
  • •Added AI sessions CRUD endpoints and usage tracking schema
  • •Refactored ProjectPage — instant view switching with display:none/block pattern

Touch Experience & Feedback System

  • •Improved touch and drag-and-drop experience across the app
  • •Added user feedback system with email notifications
  • •Cleaned up legacy event tables and added maintenance jobs

SEO & Discoverability

  • •Added SEO meta tags to all pages
  • •Generated sitemap.xml and robots.txt
  • •Added Google Search Console verification

Production Deployment & Infrastructure

  • •Deployed API to Vercel Singapore region for lower latency
  • •Optimized N+1 database queries for faster page loads
  • •Fixed cross-domain cookie handling for subdomain authentication
  • •Added SPA rewrites to vercel.json for client-side routing
  • •Improved error handling in Stripe upgrade checkout

Vercel Build Pipeline

  • •Configured Vercel serverless function build with esbuild
  • •Switched from pnpm to yarn for Vercel compatibility
  • •Resolved TypeScript build conflicts between Vite and Vitest
  • •Set up Build Output API v3 for custom deployment configuration

Initial Release

  • •Monorepo setup with Turborepo — React + Vite frontend, Hono API backend
  • •Rich text chapter editor with smart quotes and word count
  • •Wiki system for world-building with categorized cards
  • •Character profiles with custom fields
  • •Timeline view for plot planning
  • •Supabase PostgreSQL database with Drizzle ORM