Loading the documentation…

Preview files in the side panel

Files open in the side panel beside your chat as read-only preview tabs: the preview picks a viewer for the file's format, and you can switch viewers, zoom images and PDFs, and read a file without leaving the chat. The Workspace files tab shows the chat's folder as a file tree you can browse.

Note

Oda reads the file with your account's access. A preview never edits the file; to change it, open it in its usual application (Open files and folders in other apps). What you read in a preview never enters model requests, and opening one starts nothing in the chat.

Open a preview

  1. Open the file: click a file in the Workspace files tab, choose Preview in sidebar on a file card, or click a file reference in a message or a file step in the chat.
  2. The file opens as its own tab in the side panel, with its type glyph and its name.

Browse workspace files

  1. Open the side panel and choose Workspace files; the chat's folder opens as a tree.
  2. Expand a folder to see inside it. Folders are read one level at a time, and a folder you reopen shows its earlier contents while it reads them again.
  3. Click a file row to open its preview.

A folder that cannot be read says why:

MessageWhat it means
That directory is gone. It may have been moved or deleted.There is nothing at that path any more.
That directory is outside the workspace, so the sidebar will not read it.The tree and folder watching stay inside the chat's folder.
That is not a directory.The path names something other than a folder.
Read failed: {message}Something else went wrong; the detail after the colon says what.

Which viewer opens

FileOpens in
Text and code files, .log, and files with no extension or an unrecognised oneText or code viewer
Markdown (.md, .markdown)Rendered Markdown
Images (.png, .jpg, .jpeg, .gif, .webp, .bmp, .ico, .svg)Image viewer
PDFs (.pdf)PDF viewer
Word and PowerPoint (.doc, .docx, .ppt, .pptx)Converted for reading
Spreadsheets (.xlsx, .xls, .csv, .tsv)Spreadsheet viewer
HTML (.html, .htm)HTML viewer

Each viewer has its own page: Preview text, code and Markdown files, Preview PDFs and Office files, Preview Office documents, Preview spreadsheets and Preview HTML files.

The preview header

The header above the file shows:

Switch the viewer

Use Open with in the preview header to change how the same file is shown.

Read code, text and Markdown

Preview text, code and Markdown files covers the text viewer in full.

How a file is read

ReadLimit
One part of a text fileup to 5,000 lines and 2 MiB; the part that holds the last line marks the end of the file
One part of a binary file2 MiB
A whole file32 MiB
One folder listing2,000 entries, then cut with a note

Keep the preview up to date

Zoom an image or a PDF

Images and PDFs share the floating zoom control at the bottom edge of the pane.

Look at an image

The folder's branch

Loading and failure states

MessageWhat it means
File not found. It may have been moved or deleted.The file is no longer at this path.
This page exceeds the {limit} limit and cannot be read.The file, or the part being read, is over the preview's size limit. Open it in its usual application.
Not a regular file, nothing to display.The path is a folder, a link or something other than a regular file.
Preview is not available for this file type yet.The file has no viewer, or it is not text that a text read can show.
Read failed: {message}Something else went wrong; the detail after the colon says what.

Questions, answered

How do I open a file in the preview?

Click a file in the Workspace files tab, choose Preview in sidebar on a file card, or click a file reference in a message or a file step in the chat. The file opens as its own tab in the side panel, with its type glyph and its name.

How does the preview choose a viewer for a file?

By the file's format: images, PDFs, Word and PowerPoint files, spreadsheets, HTML pages and text files each open in the viewer that fits them, as in the table above. A file with no viewer of its own opens as plain text when it can be read as text.

Why does my PDF have no Open with control?

Open with appears only when more than one viewer fits the file. PDFs, Word, Excel and PowerPoint files, and PNG images open in a single viewer, so they show no control. SVG and HTML files do, because both can also be read as text.

Why does the preview say it is showing the previous content?

The file changed while you were reading it, and the preview is still on the version it loaded. Use Reload to read the file again without losing your place; the preview also refreshes by itself when the file changes.

Can I zoom images and PDFs the same way?

Yes. Both use the same floating zoom control: Fit width by default, the preset sizes 25%, 50%, 100%, 150% and 200%, steps of 25% up to 400%, and trackpad pinch. Your zoom stays with the tab while it is open; closing the tab resets it.

Why can't my large file be previewed?

A part of a file over its limit, or a whole file over 32 MiB, is refused instead of shortened, so you never see part of a file that looks whole. The preview says This page exceeds the {limit} limit and cannot be read.; open the file in its usual application instead.

Does Oda have to stay inside the workspace folder to read a file?

No. Oda reads the files your computer account can open, inside the chat's folder or outside it when a link or a step points there. Browsing is narrower: the Workspace files tree and folder watching stay inside the chat's folder.

Why can't Oda read a file through a symbolic link?

A read refuses a file reached through a symbolic link, even when the link points back inside the folder. The tree still shows the link and marks what it points to. Open the file in its usual app to read it there.

Why does a folder show only some of its entries?

A folder holding more than 2,000 entries is cut at 2,000 and the tree says Too many entries, showing only some of them. Open the folder in your own app when you need the full list.

Can I rename or delete files from the tree?

No. The tree and its previews are read-only. To work with the files yourself, open the folder in your own app (Open files and folders in other apps); the changes Oda makes in a chat appear in the chat's changed-files card (Review changed files).

Does Oda see what I read in the preview?

No. What you read in a preview never enters model requests. The preview is for you.

Why does a video or an archive show no preview?

Videos, audio files, archives and programs have no viewer, so the side panel shows the file's type glyph with Preview is not available for this file type yet. and reads nothing. Use Open or Show file location to work with the file on your computer.