FEATURE | ChatPrompt V2: Historical turn view and revert functionality
Status Closed โ not planned
Maintainer reply None cached
Activity 2 comments ยท opened Feb 27, 2026 ยท closed Mar 3, 2026
๐ Description
Add ability to view and revert to historical conversation turns in ChatPrompt V2 extraction panel.
๐ฏ Context
When user selects a non-final turn in conversation history:
- Currently shows intermediate result with grayed overlay
- Need to add action buttons for viewing/reverting
โ Requirements
UI Changes (ExtractionDetailView)
Add 3 buttons in top-right corner when viewing historical turn:
- ๐๏ธ View This Result
- Removes gray overlay
- Hides buttons 1) and 2)
- Keeps only button 3) visible
- Read-only view of intermediate result
- โช Revert to This Result
- Calls new backend API to delete all turns with index > selected turn
- Refreshes entire thread state after successful deletion
- Updates conversation bubbles and result display
- โญ๏ธ View Final Result
- Switches back to the latest/final turn
- Restores normal view (no overlay, no special buttons)
Backend API (new endpoint needed)
DELETE /api/chat/threads/{threadId}/turns?afterIndex={turnIndex}
- Deletes all turns with index greater than specified
- Returns updated thread state
State Management
- Track
IsViewingHistoricalTurnin ViewModel - Track
SelectedHistoricalTurnIndex - Handle overlay visibility based on state
๐จ UI Mockup
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [View This] [Revert to This] [View Final] โข โ <- new buttons
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โโโ Historical result (grayed overlay) โโโโ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Files to Modify
src/ViewModels/Panel/ChatPrompts/ExtractionDetailViewModel.cs- state & commandssrc/SVIViews/Panel/ChatPrompts/ExtractionDetailView.xaml- buttons UIsrc/AppraisalData/Abstractions/IChatServiceProvider.cs- new methodsrc/AppraisalData/Logic/ChatServiceProvider.cs- API call implementation- Backend: new endpoint for turn deletion
---
~ Lili
This issue has 2 comments on GitHub. Read the full discussion on GitHub โ