@@ -893,9 +893,21 @@ class ObfProcessor extends BaseProcessor {
893893 const obfFilename = this . getPageFilename ( page . id , tree . metadata ) ;
894894 modifiedObfFiles . add ( obfFilename ) ;
895895
896- const obfBoard = this . createObfBoardFromPage ( page , 'Board' , tree . metadata ) ;
897- const obfContent = JSON . stringify ( obfBoard , null , 2 ) ;
898- newObfFiles . set ( obfFilename , obfContent ) ;
896+ // NEW: Check if page has mutations to apply
897+ const hasMutations = page . pendingMutations && page . pendingMutations . length > 0 ;
898+
899+ if ( hasMutations ) {
900+ // Apply mutations to the page before creating OBF board
901+ const pageWithMutations = this . applyMutationsToPage ( page ) ;
902+ const obfBoard = this . createObfBoardFromPage ( pageWithMutations , 'Board' , tree . metadata ) ;
903+ const obfContent = JSON . stringify ( obfBoard , null , 2 ) ;
904+ newObfFiles . set ( obfFilename , obfContent ) ;
905+ } else {
906+ // No mutations, use original page
907+ const obfBoard = this . createObfBoardFromPage ( page , 'Board' , tree . metadata ) ;
908+ const obfContent = JSON . stringify ( obfBoard , null , 2 ) ;
909+ newObfFiles . set ( obfFilename , obfContent ) ;
910+ }
899911 }
900912
901913 // Generate updated manifest if we have pages
0 commit comments