Skip to content

Change review ​

When the AI modifies a file, a file editing card will be displayed in the session. You can use these cards to review your changes and decide whether to keep them or revoke them.

Change review workspace

File editing card ​

File editing cards usually contain the file name, modification status, and executable operations.

OperationPurpose
View changesOpen the changes in the file to check what the AI has modified.
ReviewConfirm that the modification has been reviewed and you can continue with the follow-up work.
UndoDiscard this modification of the file.

Review suggestions ​

  1. Review the changes before continuing to let the AI work based on the modifications.
  2. Exercise greater caution with configuration files, scripts, and model files.
  3. If you are not sure whether the modification is correct, you can ask AI to explain the reason for the modification.
  4. If it is found that the modification deviates from the target, undo it and then re-describe the requirements.

Model comparison (.mo model) ​

When this change involves a .mo model file, a "Model Comparison" button will appear in the tab bar of the review panel. After clicking, a new "Model Comparison" tab will be opened in the right panel (alongside the review and file tabs), which will present the differences before and after the model modification from three levels: structure, graphics, and text. The "before modification" baseline for comparison is consistent with the currently selected range in the review panel, and the entire comparison is read-only.

  • Structural Difference Overview: The left and right structure trees present the model structure before and after modification. Difference nodes are colored by type (new/deletion/modification), and paths containing differences are expanded by default.
  • Graphic Comparison: Double-click a node in the structure tree, and the block diagram of the node's level will be displayed side by side below. The selected primitives are highlighted, and the changed primitives are colored according to type, and can be zoomed and panned.
  • Text Comparison: Click the "Text Comparison" button, and the .mo source code differences before and after modification will be displayed side by side below. Syntax highlighting, difference line highlighting and up and down jumps are supported. For the attribute value line in the "Modification" state, the text differences before and after the value can also be viewed separately.

If the modeling engine is not ready, the pre-modification version cannot be obtained, or there is no difference between the two versions, the interface will give a corresponding readable prompt and no blank page will appear. Closing the tab will end this comparison.

Cooperate with product area ​

After the review is completed, you can open the file preview in Product Workspace, or add the file to the session to continue questioning.