Diff Mode
When modifying an API in Code Editor, you can preview the implemented changes and compare them with the last saved definition. You can also review the editions added to your API by HaloAI before deciding whether to keep them. This comparison feature is available through Code Editor's Diff Mode. It currently supports OpenAPI 3.1 and AsyncAPI specifications.
Open Diff Mode
You can only preview modifications to an API that has previously been saved - one that is not a draft.
To compare the editions to your API with the last saved definition, click the Diff Mode option on the toolbar:
![]() |
Alternatively, when editing your API using HaloAI, select the Diff Mode option available in the chat:
![]() |
Edit in Diff Mode
In Diff Mode, the editor displays two panels: the left shows the last saved version of your API, and the right shows the updated version. The modified lines are highlighted in color:

To undo an individual change, hover between the corresponding lines in your API versions and click the arrow that appears.
After completing the edits, save your updates or revert to the last saved version by selecting an option on the toolbar:
