Zaprex
/

Using Zaprex

Ingot panel

A light Ingot editor beside a folder or workspace chat: browse files, and accept or revert what Rex changed.

The Ingot panel is a small editor docked to the right of a chat. It opens on its own when the chat's group is a folder or a workspace. Collapse it and that group stays closed. Drag the left edge and the width is remembered for that folder or workspace, on this device.

Ingot is the IDE. The panel uses its file marks, tabs and editor chrome. Open in Ingot leaves Rex and opens the same folder in the full Ingot app.

Files

Files is the folder the group was opened from. The tree skips dependency and build folders. Click a file to open it in a tab. The editor highlights TypeScript, JavaScript, CSS, JSON and Markdown. What you type is saved back to that file.

On the website, or in the desktop app before it can see local files, the tab says: Open this workspace in the Rex desktop app to browse files. Rex does not invent a tree.

Changes

Changes lists the files Rex edited in this chat. The edits are already in the files. The diff is how you review them.

  • Accept hunk or Accept file marks that part reviewed. The file stays as Rex left it.
  • Revert hunk puts the previous lines back for that one change and saves the file.
  • Revert file undoes every hunk you have not accepted yet. Hunks you already accepted stay.
  • Accept all marks every file in the list reviewed.

A file you have accepted or reverted stays in the list, without a pending dot. The status line counts how many files are reviewed.

From the chat

When Rex has edited files, the reply includes Edited N files. Click it and the Changes tab opens on that file.

Where the files come from

Rex's cloud runs read and write inside a sandbox, then the sandbox is destroyed. That is not a live folder. The panel talks to the Rex desktop app, which has the folder on your machine. The desktop app sets window.zaprexDesktop.workspace with:

  • list(root) — files and folders under the group's path
  • read(root, path) and write(root, path, content) — open a file, and save an edit or a revert
  • changes(root, chatId) — files Rex already changed in this chat, with the content from before those edits
  • openUrl(root, path) — an ingot:// link for Open in Ingot

Until that bridge exists, the panel still opens, and both tabs explain that the desktop app is required. There is no ingot:// link in this site today, so without openUrl the button opens ingotide.com with the folder and file filled in.

Review marks (accepted, reverted, and the baseline of a half-reviewed file) are saved in this browser, with the panel's open state and width. They are not on your account yet.