File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -725,15 +725,24 @@ class GridsetProcessor extends BaseProcessor {
725725 // Detect plugin cell type (Workspace, LiveCell, AutoContent)
726726 const pluginMetadata = detectPluginCellType ( content ) ;
727727
728- // Default labels for prediction cells so they don't render blank
728+ // Friendly labels for workspace/prediction cells when captions are missing
729+ if ( pluginMetadata . cellType === Grid3CellType . Workspace ) {
730+ if ( ! label || label . startsWith ( 'Cell_' ) ) {
731+ label =
732+ pluginMetadata . displayName ||
733+ pluginMetadata . subType ||
734+ pluginMetadata . pluginId ||
735+ 'Workspace' ;
736+ }
737+ }
738+
729739 if (
730740 pluginMetadata . cellType === Grid3CellType . AutoContent &&
731741 pluginMetadata . autoContentType === 'Prediction'
732742 ) {
733743 predictionCellCounter += 1 ;
734- if ( ! label ) {
735- label = `Prediction ${ predictionCellCounter } ` ;
736- }
744+ // Always surface a friendly label for predictions even if a placeholder exists
745+ label = `Prediction ${ predictionCellCounter } ` ;
737746 }
738747
739748 // Parse all command types from Grid3 and create semantic actions
You can’t perform that action at this time.
0 commit comments