d3817556ac
Use `last_active` from SQLite (max message timestamp) for accurate sorting, with fallback chain: last_active → ended_at → started_at. CLI mode lacks last_active so falls back to ended_at. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>