Indeed, that is the expected reaction to enableAI=2 when the normal subscript line is suppressed because there already was an HTML element with id="pieceTable" on the page. Originally the subscript line was only added to provide a hidden table when none was explicitly defined on the page. But after I equiped the Diagram with an AI, and also put the link to turn that on in the line, omitting the line entirely would lose the possibility to turn on the AI. So I added the option to force presence of a line for that purpose. (Often the reason for having an explicit table is that the variant has piece drops, and the table acts as 'the hand'. Since the AI cannot handle piece drops, making the line appear automatically did not seem a good idea.)
If there is no pieceTable, the option enableAI should be ignored, and the default line should be displayed. So the evidence points to the script finding a pieceTable element on the page. Perhaps you can try displaying the Page Source, to see if you can find such an element in it.
Indeed, that is the expected reaction to enableAI=2 when the normal subscript line is suppressed because there already was an HTML element with id="pieceTable" on the page. Originally the subscript line was only added to provide a hidden table when none was explicitly defined on the page. But after I equiped the Diagram with an AI, and also put the link to turn that on in the line, omitting the line entirely would lose the possibility to turn on the AI. So I added the option to force presence of a line for that purpose. (Often the reason for having an explicit table is that the variant has piece drops, and the table acts as 'the hand'. Since the AI cannot handle piece drops, making the line appear automatically did not seem a good idea.)
If there is no pieceTable, the option enableAI should be ignored, and the default line should be displayed. So the evidence points to the script finding a pieceTable element on the page. Perhaps you can try displaying the Page Source, to see if you can find such an element in it.