Loading the documentation…

Review changed files

When DataMind Oda changes files in a turn, each change appears in the chat as a step of its own, and the answer ends with the changed-files card, where any file can be compared with the state it had when the turn started. This page covers the card, the review in the side panel, the change on each step, and what Oda records and keeps. Delivered files covers the files Oda hands over.

The changed-files card

Open a turn's changes in the side panel

  1. Choose the card header, named Review this turn’s changes in the sidebar, or a file row, named View changes to {name}. Enter or Space on a row does the same.
  2. The review opens as a tab in the side panel next to the chat, titled Review · turn {turn}.

The header opens the review at the first file, and a row opens it at that row's file. Opening the review itself needs nothing but Oda; actions that open a file in another app are covered below.

Preview a comparison beside the card

Compare before and after in the review

What a comparison can say

Open the file itself

Each change as a step

While Oda works, every file change also appears in the chat as a step of its own: an Edit or a Write, named with the file's path. The step rows themselves are described in Oda's steps and tool results.

While the change runs, and once it settles

When a change fails or is stopped

Open the changed file from its step

How Oda records a turn

Oda records changes for the chat you are working in, once per turn:

  1. When a turn starts, Oda notes the current state of the folder the chat works in.
  2. Before Oda changes a file with its own file tools, it keeps a copy of the file as it was. Each file is copied once per turn, so several edits to one file count once.
  3. When the turn ends, Oda compares the folder with its state at the turn's start and builds the list of changed files.
  4. The list arrives in the chat as the card, and the content behind each comparison is stored for later viewing.
Note

These records are Oda's own. Taking them never changes your repository or your saved work, and work you had already saved before the turn started never enters the list.

What appears on the list

When a file cannot be compared

What Oda keeps, and for how long

If part of the recording cannot run

Oda writes a line about it in its logs. These are the lines to know:

Limits at a glance

The standard setup uses these limits:

Questions, answered

How do I open a turn's changes for review?

Choose the card header, or any file row; on a row, Enter or Space works too. The review opens in the side panel, titled Review · turn {turn}. The header opens it at the first file, and a row opens it at that row's file.

How do I switch between side-by-side and single-column comparisons?

Use the view control in the review. A new review starts side by side; the control switches to the unified view and back. Its tooltip names the next state: Switch to split view or Switch to unified view.

Why does a comparison stop partway through a file?

A comparison shows at most 5,000 lines, and the note Showing the first {count} lines tells you when a file is longer than that. Use Open the whole file in the sidebar to read the rest in a full preview.

Why is there no action to open the file in its usual app?

That action needs a desktop Oda can reach on your computer. Without one, the review keeps the sidebar open only, and the app and file-manager actions are not shown. Open files and folders in other apps describes them.

What does +1 -0 on a change mean?

One line was added and none was removed. The number after the + counts the lines the change added, and the number after the - counts the lines it removed. The same totals repeat in the step card's footer.

Why did my failed change lose its comparison and totals?

A failed change keeps no comparison: the first line of the failure takes the summary's place, and the totals go with it, so you see the cause without opening the step. To reach the file, ask Oda to read it, or open it from your computer's file manager.

Why did my turn show no changed files?

No card appears when the turn changed nothing, when a file was changed back to its earlier state by the turn's end, or when edits came only from commands in a folder Git does not track.

Are edits from terminal commands recorded?

Inside a Git repository, yes: Oda compares the whole repository when the turn ends, so an edit from a command appears like any other change. Outside Git, only files changed with Oda's own file tools are recorded, and Oda notes this in its logs.

Why does a file have no line counts?

The file is binary or too large. A binary file cannot be compared line by line, and a file larger than 2 MiB is listed without counts and without a comparison. Both are still listed, so you can see that they changed.

Why can't I open the comparison of an older turn?

Oda keeps the content behind comparisons for the 100 most recent turns of a chat and for 30 days from when a turn was recorded. When content is retired, the card stays in the chat, and the comparison reports that the contents are no longer available.

Does recording changes touch my Git repository?

No. Oda records changes through its own copies and comparisons. Your repository and your saved work stay as they are, and work you had uncommitted before the turn never enters the list.

Another chat shares my folder. Why is its change not on my card?

Each chat records its own changes. An edit the other chat makes with Oda's file tools is not added to this chat's card unless this chat changed the same file.