feat(FN-1649): remove Kimi from usage indicator flow

- Remove Kimi provider from usage tracking module
- Clean up unused Kimi-related code in usage.ts (225 lines removed)
- Remove Kimi-specific tests from usage.test.ts (686 lines removed)
- Add tests for usage routes (routes.test.ts)
- Add new usage API routes for usage data endpoints
- Fix planning resume state mismatch in PlanningModeModal
- Add PlanningModeModal tests for state consistency
This commit is contained in:
gsxdsm
2026-04-12 16:20:51 -07:00
parent 597685e892
commit b40bba7b45
7 changed files with 162 additions and 907 deletions

View File

@@ -34,6 +34,7 @@ AI-guided interactive planning for creating well-specified tasks from high-level
- **Dependency Selection**: Toggle existing tasks as dependencies
- **Keyboard Navigation**: Tab through options, Enter to submit, Escape to close
- **Mobile-Safe Inputs**: Text inputs (initial plan, question responses, summary description) use 16px font size on mobile viewports to prevent browser zoom-on-focus
- **Background Resume with Catch-up**: Planning sessions can be sent to background and resumed later. When resuming a session that's already awaiting input, the UI immediately displays the current question and connects to the server stream for real-time updates. The server emits a catch-up question event for late subscribers, ensuring the UI never gets stuck in a "loading" state when the backend already has a next question.
**API Endpoints**:
- `POST /api/planning/start` - Begin planning session (`{ initialPlan }`)