Send full conversation history with each API request so the AI maintains context across exchanges. Add "New Chat" button to clear the conversation and start fresh. No persistent storage — session resets on page reload. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
502 B
502 B
1. Multi-turn History
- 1.1 Change ChatRequest construction in Chat.razor to send all prior messages (excluding the empty assistant placeholder) instead of just the latest user message
2. New Chat Button
- 2.1 Add a "New Chat" icon button to the AppBar or chat page that clears _messages
- 2.2 Disable the "New Chat" button while streaming is in progress
3. Verify
- 3.1 Run dotnet build to confirm no errors
- 3.2 Run dotnet test to confirm existing tests still pass