Workspace editor & diffs

Edit files from the chat's Explorer panel, comment on file previews, review diffs beside the chat, and know when to move to the IDE.

The chat's right dock has Explorer, File, and Diff panels (add one with the + "Add panel" button in the dock). They operate on the thread's checkout, so confirm Local or Worktree and the branch before editing or reviewing files. For a full editor with tabs, search, Source Control, and terminals, open the IDE (Editor view).

Edit in the Explorer panel

The Explorer panel shows the file tree with a search box and a viewer beside it. Files you open there are editable, with syntax highlighting and line numbers. Files larger than 250,000 characters or 1,000 lines open in a numbered plain-text editor instead. Markdown files open in the editable Source view; switch to Preview to read them rendered. Read-only files explain why editing is unavailable.

Changes save automatically 400 ms after your last keystroke (change this with Autosave delay in Settings → Chat behavior). Saving..., Unsaved changes, Saved, and Save failed show the current state; Ctrl+S saves immediately.

If the file changes on disk while you have unsaved edits, the panel shows "This file changed on disk. Your unsaved edits are preserved." with Reload from disk. Autosave does not overwrite the other change. In the IDE's editor you can also choose Overwrite to keep your version. Check the other writer or thread before deciding which version to keep.

Preview and comment on files

Clicking a file in the chat opens it in the File panel. This preview is read-only; Markdown opens rendered, with a Source / Preview switch. Previews refresh when the file changes on disk.

  • Comment on a line: in the source view, hover a line and click + ("Comment on line N"), write your request, and choose Comment. The composer shows the comments as a chip ("N comments"), and they are sent with your next message.
  • Quote rendered Markdown: select text in a rendered preview and choose Add to Chat.
  • Right-click a file reference for Reference in chat, Ask why this changed, Open in Explorer, or Copy path.

To edit a previewed file, open it in the Explorer panel or the IDE.

Choose a diff scope

Press Ctrl+D to open the Diff panel. Use the diff source picker to choose Working tree, Unstaged, Staged, Branch, All turns, or Last turn. Use Compare with to pick another branch or recent commit, or type a branch, tag, or commit.

Diff view options switch the view between Stacked and Split (remembered across restarts; split is the default) and toggle Ignore whitespace-only changes (on by default), Wrap long lines, and Change markers.

Use Next change / Previous change, or Alt+↓ / Alt+↑ outside the terminal, to move through changes. In repository diffs you can click a line to see its blame. Blame is not offered for staged, unstaged, and turn diffs; its absence there is intentional.

Each file's File actions menu offers Edit file, Reference in chat, Ask why this changed, and Copy path. Edit file opens the file in the IDE so you can fix it beside the diff. Editor saves and other file changes refresh the diff; review the refreshed result before committing.

Recognize partial diffs

An oversized diff shows a Partial diff warning instead of failing the whole view: Tejus stopped reading at the diff size limit, so some files or changes may be missing. The displayed patch and statistics are not proof that you have reviewed the complete change set; inspect the remaining files in Git or the IDE before approving or shipping.

Continue with Pull requests for remote review and Organize & navigate for search and document previews.

Last updated on