feat: enhance model move functionality with cache entry updates

- Return cache entry data from model move operations for immediate UI updates
- Add recalculate_type parameter to update_single_model_cache for proper type adjustment
- Propagate cache entry through API layer to frontend MoveManager
- Enable virtual scroller to update moved items with new cache data
This commit is contained in:
Will Miao
2025-12-31 10:33:22 +08:00
parent 2b239c3747
commit 8120716cd8
4 changed files with 39 additions and 15 deletions

View File

@@ -936,7 +936,8 @@ export class BaseModelApiClient {
if (result.success) {
return {
original_file_path: result.original_file_path || filePath,
new_file_path: result.new_file_path
new_file_path: result.new_file_path,
cache_entry: result.cache_entry
};
}
return null;