Files
The Files tab of a project chat: the project's files as your Agents leave them, in a folder tree beside the open file, read-only, with Export for the whole project or one file.
Files is the tab in a project chat where you browse and read the project’s files: the source your Agents write, as it is right now. A folder tree sits on the left and the file you open sits beside it. You can only read here; changing files is the Agents’ job, so ask them in the chat.
Open it
- In the project’s chat, tap Show All Tabs (four squares) in the top-right corner, and in the list under the tab cards tap Files. See Tab overview.
- Or, in the inspector, tap the tab name in the row at its foot, choose New Tab, and tap Files.
On iPhone, Files is a page of the inspector over the chat: the tree fills it, and a file you tap opens as a page of its own (see File page). On iPad, Files is a tab in the pane beside the chat (tap Show Inspector, then + and Files).
- Open the project’s chat and choose View › Go To › Files.
- Or click + (New Tab) in the inspector and pick Files under Project.
- In a DM with an Agent, a project’s Project page can open that project’s Files too; its tab is named “Files” and the project’s name.
Files opens as a tab in the Inspector beside the chat. ⌘W closes it.
Every time you come to the tab, and every time you come back to the app, it reads the files again: the Agents may have changed them while you were away. Coming back to the tab also puts you back where you were in the tree and in the file. On iPhone it comes back to the tree, with no file open.
Layout
How Files lays out depends on how wide the pane is:
| Pane | What you see |
|---|---|
| Wide (most Mac windows, iPad with a wide pane) | Two columns: the tree on the left, the open file on the right. Hide Files at the left of the file’s bar puts the tree away so the file takes the whole pane; Show Files brings it back. |
| Narrow (a narrow pane beside the chat) | One column at a time. Tapping a file slides it in over the tree; Back (‹) at the left of the file’s bar slides back to the tree and closes the file. |
| iPhone, and iPad in a narrow window | The tree is the whole page, with no bar over it. Tapping a file opens its File page; go back with the back button or by swiping from the left edge. |
What’s on it
The tree
| Item | What it shows or does | Default |
|---|---|---|
| Bar: project name | The project’s name over the tree. Not shown on iPhone. | — |
| Refresh (circular arrow) | Reads the tree and the open file again. Dimmed while it works. Not shown on iPhone: pull the tree down to refresh instead (on iPad too). | — |
| Folder row | A chevron, a folder icon and the name. Tap it to open or close the folder; its contents are read when you open it, with a placeholder row under it meanwhile. Folders come before files. | Closed |
| File row | An icon for its kind (Swift, JSON, Markdown, web, settings, shell script, picture, text or other) and the name. Long names are shortened in the middle. Tap it to open the file. The open file’s row is highlighted. | — |
| Dimmed rows | Items the project’s .gitignore leaves out of the source, such as build output. You can still open them. Items that are neither a file nor a folder (for example a link, shown with an arrow icon) are dimmed too, and can’t be opened. |
— |
| “Empty Folder” | Shown under an open folder that has nothing in it. | — |
| “Some items aren’t shown.” | Shown at the end of a folder too big to list in full. | — |
| A message with Try Again | Shown under a folder that couldn’t be read; the message says why (see Messages). Try Again reads that folder again. | — |
Touch and hold a row (on the Mac, right-click it) for Copy Path, which copies the item’s path inside the project, for example Sources/App/ContentView.swift.
While the tree is first read, placeholder rows stand in for them.
The open file
| Item | What it shows or does |
|---|---|
| Hide Files / Show Files, or Back | At the left of the file’s bar; see Layout. |
| File name | The file’s icon and name, with the folder it’s in after it, in smaller text. |
| “Select a file to view it.” | Shown in the file column when no file is open. |
| Text and code | Shown with line numbers and coloring for its language. Lines don’t wrap: scroll sideways for long lines. You can select text and copy it. On the Mac, click in the text, then ⌘A selects it all, ⌘C copies and ⌘F opens a find bar; on iPhone and iPad with a keyboard, ⌘F finds too. |
| “Showing the first 1 MB of this file.” | A strip over a long text file: only its first 1 MB is shown. |
| Picture | PNG, JPEG, GIF, HEIC, WebP, TIFF, BMP and ICO files are shown fitted to the column. |
| Anything else | “No Preview Available” — “This file isn’t text or a picture.” Use Export to get the file. |
While a file is read, placeholder lines stand in for its text.
There’s no copy button for the file: copy its path from the tree row’s menu, or select its text.
Export
Export (a square with an arrow) exports what’s on screen:
- With no file open, the whole project, as a
.zipnamed after the project. - With a file open, only that file.
| Device | Where it is | What happens |
|---|---|---|
| Mac, iPad | In the bar at the foot of the pane, at its left end | Mac: you pick where to save it. iPad: the share sheet opens, where you can save to Files or send it to another app. |
| iPhone | At the left end of the row at the inspector’s foot, over the tree. On a File page it’s at the top right instead. | The share sheet opens. |
While it packs, a spinner takes the button’s place. Step by step: Share or export a project’s source
Messages
| Message | When | What to do |
|---|---|---|
| No Files Yet — “Ask the agents in the project chat to start building. The project’s files appear here.” | The project has no files yet. | Ask an Agent in the chat to start, then tap Check Again. It shows a spinner and is dimmed while it reads. |
| Unable to Load Files, with a reason | The tree couldn’t be read. | Tap Try Again. |
| Unable to Open File, with a reason | The file couldn’t be read. | Tap Try Again, or Refresh the tree. |
| Unable to Open File — “This picture couldn’t be loaded.” | A picture didn’t load. | Open it again later, or Export it. |
| “This project’s folder isn’t available right now.” | The place the project runs can’t be reached. | Try again later. |
| “This file no longer exists.” | An Agent deleted or moved the file since the tree was read. | Refresh the tree. |
| “This link points outside the project.” | The item is a link to somewhere outside the project’s folder. | Nothing to open here. |
| “This file is too large to show.” | The file is too big to read here. | Export it. |
| “This item has changed. Refresh and try again.” | A file became a folder, or the other way round. | Refresh, then open it again. |
| “This file couldn’t be read.” | The file couldn’t be read. | Try again, or ask an Agent about it. |
| “Browsing files isn’t available for this workspace yet.” | The Team’s environment is older than the Files tab. | For a local Team, update AirBuild on the Mac that runs it. |
| “Select a project in the sidebar to browse its files.” | No project is in front. | Open a project’s chat. |
| Unable to Export Source — “The source code couldn’t be exported. Try again.” | Exporting the whole project failed. | Tap OK and try again. |
| Unable to Export Source — “The file couldn’t be downloaded. Try again.” | Exporting one file failed. | Tap OK and try again. |
| Unable to Export Source — “The file couldn’t be saved. Try again.” | Mac: saving where you picked failed. | Tap OK and try again, perhaps in another folder. |
| Unable to Export Source — “The source archive came back empty, so nothing was saved. Try again.” | Mac: the file you exported is empty (0 bytes), so there was nothing to save. | Tap OK. Nothing is wrong with the export; the file has no content. |
| Unable to Export Source — “The source code wasn’t saved completely. Try again.” | Mac: the saved file came out shorter than it should be. | Tap OK and try again. |
If you close the Mac’s save window without saving, nothing happens and no message shows.