8e6a970ae4
- Fix LLM stats panel stuck on "Loading stats..." by requesting stats immediately after admin authentication succeeds - Add retry mechanism for backstory generation (up to 3 attempts with increasing delays) so transient failures don't permanently skip NPCs - Fix stale model bug: queued LLM requests now use the current model at dequeue time instead of capturing it at enqueue time, so fallback model switches take effect for pending requests - Add per-template maxTokens (backstory: 350, invention: 300, desire: 250) to prevent "length" finish truncation on structured JSON responses - Remove unused "reasoning" field from backstory prompt to reduce token usage - Add failure logging throughout LLM pipeline (backstory null results, queue errors) for better diagnostics Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>