The Stack
Keep a file, transcript, session, room or page in view whichever context is in front.
The Stack is a panel on the right of the window for what you want to keep in view while you work: a spec, a plan, a transcript, a checklist, a room. It is global. The same entries stay there whichever context is in front, so you can keep a specification open while you switch between contexts.
An entry does there what its tab does. A stacked file is edited in place. A transcript can be resumed and forked. A page follows its links. A room, a meeting, a running session and a terminal are fully active. Every kind of tab can go on the Stack, and so can a running applet's screen: choose Add to Stack for it in the Applets view. See Run and manage applets.

Put something on the Stack
Any of these works on the current tab:
- Press ⌘⌥S.
- Right-click the tab and choose Add to Stack.
- Drag the tab onto the panel, or onto the band that appears at the right edge of the window while you drag, so the panel need not be open.
For a web page there are two more ways: press ⌘⌥L (Add URL to Stack…), or use the panel's + link button. Both open the same sheet as ⌘L, with Add to Stack as the default. You can also drag a link from a browser onto the panel.
Something already on the Stack is selected rather than added twice. Anything you put on the Stack, or bring forward on it, switches the side panel to its Stack view. See The side panel for the other views.
What happens to the tab
A file, transcript, view, room, chat or page moves: its tab closes and the entry shows the same thing. A dirty file is saved first.
A live session or a terminal moves too, and keeps running: the entry shows the same terminal, and you can type in it. When a session ends, its entry becomes its transcript. When a terminal's shell exits, Restart starts a fresh one in the same folder. Open in context (the arrow on the entry's header) moves it back into a tab, because one terminal is shown in one place. A session cannot be stacked until Cortex knows its id, which takes a moment after a fork or a new Codex session starts.
Use the Stack
The entries are listed at the top of the panel in your order. Drag a row to move it. The entry you are looking at is marked with a bar and a tint, in the colour of its context when the context has one. The shown entry fills the rest of the panel, and one entry is visible at a time. Drag the divider between the list and the entry to change the list's height, and double-click the divider to fit the list to its entries again.
- Click a row to show it. Click the list, then use the up and down arrows to step through entries.
- Press ⌘W while the list has the keyboard to remove the shown entry. Elsewhere ⌘W closes the tab as usual.
- Click the ✕ on a row, or choose Remove from Stack in its menu, to remove it.
- Click Open in context to switch to the entry's context and open it as a normal tab there.
- With more than one entry, the header shows quick filters: one dot per context and one icon per kind (files, transcripts, pages, views, rooms, sessions, terminals, meetings). Click one to narrow the list. The filters are not saved.
A stacked file is saved when you press ⌘S, when another entry is shown, when you remove it, when the panel hides, when you switch context, and when you leave the app or quit. It is never saved on a timer. It follows changes on disk like a tab does; see When an agent changes a file you are editing.
Show, hide and resize
⌘⌥B or the toolbar button hides and shows the panel. Drag its left divider to resize it; it is never narrower than 320 points. The entries, the selected one, whether the panel is open and its width all come back after a restart. A file that no longer exists is dropped when Cortex starts. What else comes back is in Themes, zoom and what comes back.
Something wrong or missing? Tell us