File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -195,14 +195,15 @@ export async function handleCodexLensRoutes(ctx: RouteContext): Promise<boolean>
195195 totalProjects : status . result . projects_count || indexes . length ,
196196 totalFiles : status . result . total_files || 0 ,
197197 totalDirs : status . result . total_dirs || 0 ,
198- indexSizeBytes : status . result . index_size_bytes || totalSize ,
199- indexSizeMb : status . result . index_size_mb || 0 ,
200- embeddings : status . result . embeddings || { }
198+ // Keep calculated totalSize for consistency with per-project sizes
199+ // status.index_size_bytes includes shared resources (models, cache)
200+ indexSizeBytes : totalSize ,
201+ indexSizeMb : totalSize / ( 1024 * 1024 ) ,
202+ embeddings : status . result . embeddings || { } ,
203+ // Store full index dir size separately for reference
204+ fullIndexDirSize : status . result . index_size_bytes || 0 ,
205+ fullIndexDirSizeFormatted : formatSize ( status . result . index_size_bytes || 0 )
201206 } ;
202- // Use status total size if available
203- if ( status . result . index_size_bytes ) {
204- totalSize = status . result . index_size_bytes ;
205- }
206207 }
207208 } catch ( e ) {
208209 console . error ( '[CodexLens] Failed to parse status:' , e . message ) ;
You can’t perform that action at this time.
0 commit comments