Because of Ji Xinghe, she knew what faith meant to human beings. Without enough faith, Ji Rongxinyue's body could not have recovered to its current state.
One question after another made Star Moon's logical conflict more severe, with the main premise being what Ji Rongxinyue just said to her.
No matter where you and grandpa are...
Star Moon had the ability to analyze the undertones in human language. She caught the underlying meaning of Ji Rongxinyue's words: Even in the empire, keep grandpa alive.
Ji Xinghe had said similar things, which did not coincide with the behavior patterns her core program allowed.
She was a federal mecha, a federal artificial intelligence program, her code forbade her to betray the federation.
This was entirely different from her forging Ji Rongxinyue's voice and saying she wanted to level the federation with the imperial army.
Just as many people would have thoughts like "Let the world be destroyed" when faced with failure.