# Sessions

> Start and follow AI sessions with Claude Code or Codex: harness, agent profile, model, turns, attachments, queue, interrupt, archive, limits.

Source: https://docs.ventgris.com/workspace/sessions

A session is a conversation with an agent on your workspace machine. Each message you send starts a **turn**: the harness (Claude Code or Codex) runs once, headless, with the agent profile you chose, does the work in the workspace, and stops. Sessions keep running when you close the page, and everyone in the workspace sees them. Use the Sessions screen for any request to the agent; scheduled work goes in [Jobs](https://docs.ventgris.com/workspace/jobs.md).

![Sessions screen with the list of sessions on the left and a running Claude Code session on the right](https://docs.ventgris.com/img/sessions.png)

## How a session works

| Term | Meaning |
|---|---|
| Session | One conversation: a harness, an agent profile, a model, a working folder, and the stream of everything that happened |
| Turn | One run of the harness for one message (or several messages grouped). It ends with a separator showing the reason, duration, tokens and cost |
| Harness | The program that runs the model: **Claude Code** (`claude`) or **Codex** (`codex`) |
| Agent profile | The file `agents/<name>/AGENT.md` that gives the job, the policy and the defaults. See [Agents](https://docs.ventgris.com/workspace/agents.md) |

An idle session costs nothing: between turns no process runs, the session is only stored. A hundred open sessions use no memory. Only turns that run at the same moment take room on the machine.

Every event of a turn is stored on the machine before it is shown, so you can close the browser, open the session on another device, or come back after a restart of the workspace and see the whole conversation.

## Sign in to Claude Code or Codex

Sessions use the harness's own sign-in on the workspace machine. Ventgris does not sell model access: you bring your Claude plan (Pro or Max) or your ChatGPT plan.

1. Open a terminal: click **New terminal** on [Home](https://docs.ventgris.com/workspace/home.md), or **Open a terminal** on the Sessions screen.
2. Run the sign-in command of the harness:

```bash
claude auth login            # Claude Code
codex login --device-auth    # Codex
```

3. Open the link it prints, approve, paste back the code if asked.
4. On the Sessions screen, click **Check again**.

The login is stored in the home folder of the work user of the machine (`vg-ai`), which every terminal and every session share. One sign-in serves the whole workspace. Ventgris checks whether a harness is signed in by running the harness's own status command (`claude auth status`, `codex login status`) and reading its exit code. It never reads the tokens.

Only admins and editors have a terminal, so only they can sign in. See [Roles](https://docs.ventgris.com/account/roles.md).

### What the screen shows when a harness is not ready

When no harness can answer, a box above the composer says why, harness by harness:

| Message | Meaning | What to do |
|---|---|---|
| **No AI harness is ready on this server.** | Neither harness is installed and signed in | Sign in to one of them |
| **Claude Code is installed but not signed in.** | The sign-in check failed | Run `claude auth login` in a terminal, then **Check again** |
| **Codex is not installed on this server.** | The program is missing | Contact support: harnesses are part of the workspace image |
| **Codex: its state could not be checked.** | The runner did not answer the check | Wait and **Check again**. A message is still accepted: the turn itself will tell |
| **The agent runner is not connected.** | The process that starts turns is down | No session can run until it is back. Turns already running continue |

A harness that is not ready is greyed out in the **Harness** list. After a failed check, the state is asked again every 15 seconds; a ready state is trusted for 5 minutes.

## Start a session

1. Click **New session** at the top of the list. The right pane shows "What should we do today?".
2. Type your request in the box ("Describe the task, ask a question, paste a link…").
3. Set the options under the box if the defaults do not suit you (see the table below).
4. Press Enter or click **Send**.

The session appears in the list and the first turn starts.

| Option | Values | Default |
|---|---|---|
| **Agent** | The enabled agent profiles of the workspace. Shown only when there is more than one | The default profile, `ventgris` |
| **Harness** | **Claude Code**, **Codex** | The harness named by the profile, else a ready one |
| **Model** | **Default**, then for Claude Code `sonnet`, `opus`, `haiku`, `fable`; **Other…** for any full model name | **Default**: the model of the profile, else the harness's own default |
| **Effort** | Claude Code: `low`, `medium`, `high`, `xhigh`, `max`. Codex: `low`, `medium`, `high`, `xhigh`, `max`, `ultra` | **Default** |
| **Folder** | A path inside the workspace, relative to its root | The workspace root, or the folder the profile names |

Picking an agent switches the harness to the one its profile names and resets model and effort. Codex lists no model names: use **Default** or type a full name in **Other…**. Not every effort level exists for every model; the harness refuses one it does not support.

Keyboard: Enter sends, Shift+Enter adds a new line, Cmd+Enter or Ctrl+Enter sends too, Escape interrupts a running turn.

> [!TIP]
> On Home, **Talk to Ventgris** and **Start with the agent builder** open a new session with the right profile already picked.

## Follow a turn

While a turn runs, the footer shows its state and a timer ("Working for 1 min 12 s"). The conversation fills in as the harness works:

| Row | What it shows |
|---|---|
| Your message | The text, the files you attached, the author and the time |
| Agent text | The answer, rendered as Markdown, streaming as it is written |
| **Thinking** | The model's reasoning, folded. Click to unfold |
| Tool call | One line per tool: name, input, and **done**, **failed**, **refused** or **running**. Unfold to see **Input** and **Result**. JSON results show as a tree with **tree**, **raw** and **copy** |
| File change | The path and **created**, **edited**, **written** or **deleted**, with the diff |
| **Sub-agent** | Work handed to a sub-agent inside the turn, nested under it |
| Card | A brokered **Action**, a **Question** or a **Background task** started by the turn, with its state |
| Note | A warning (for example the turn read untrusted content) or an error |
| End of turn | The reason, the duration, tokens in and out, the cost, and the time |

Images, videos and sounds found in the output show as thumbnails under the row that produced them. The image button in the header (with a count) opens **Media of the session**, a gallery of all of them. Paths in the output are links: click one to show the file in [Files](https://docs.ventgris.com/workspace/files-and-editor.md). The working folder in the header is a link too.

If you scroll up, the view stops following the end. A **Latest messages** button brings you back down.

### How a turn ends

| Label | Reason |
|---|---|
| **Done** | The turn completed |
| **Interrupted** | Someone clicked **Interrupt** |
| **Stopped at the time limit** | The turn reached the longest a turn may last (see [Limits](#limits)) |
| **Cancelled before it started** | The turn was cancelled while it waited in the queue |
| **Failed** | The harness reported an error |
| **Lost** | The process of the turn did not survive a restart. Send the message again |

### Tokens and cost

Each end of turn shows tokens in and out and, when the harness gives it, a cost such as `≈ $0.42`. The header adds them up: "3 turn(s), 41.2k tokens in, 6.1k out". With a subscription nothing is billed per turn: the figure is the equivalent at API price, useful to compare agents.

## Send more messages

Type in the box at the bottom ("Reply… (Enter to send, Shift+Enter for a new line)") and send.

- If no turn runs, a new turn starts.
- If a turn is running, the box says "A turn is in progress: your message will be delivered when it ends." Your message is marked **Waiting for the end of the turn**. When the turn ends, every waiting message is delivered together in one new turn.
- At most 100 messages can wait behind a running turn.
- A message is 512 KiB at most.

A session in the state **Error** accepts a new message: it starts a new turn.

## Attach files to a message

You can join files to any message, in a new session or an existing one:

- click the paper-clip button (**Attach files**),
- paste an image from the clipboard,
- or drop files on the conversation ("Drop the files to attach them").

Each file is stored in the workspace as soon as you pick it, under `inbox/<date>/ui/`, with eight random characters in front of its name. The message then gives the harness the path of each file, and the agent reads it with its own tools. The file stays in the workspace after the session.

| Limit | Value |
|---|---|
| Size of one file | 10 MB |
| Files per message | 10 |

A copy from a document that also carries text (a spreadsheet, a word processor) is pasted as text, not as a file. A file that is empty or too large is refused with a message.

## Interrupt a turn

Click **Interrupt** in the footer (or press Escape) and confirm. The harness receives a stop signal, then is ended 10 seconds later if it has not stopped. The turn ends with **Interrupted**.

> [!WARNING]
> Interrupting a turn also drops the messages that wait behind it. Send them again if you still want them.

A turn that waits in the queue shows **Cancel** instead: it is removed before it starts.

## Why a turn is queued

The machine runs as many turns at once as its memory allows. When no slot is free, the session shows **Queued, position 2** and the turn starts as soon as a slot frees. Order of the queue: people in the interface first, then channel conversations, then scheduled jobs.

A turn waits at most 30 minutes. If no slot frees in time, it ends with "No slot became free in time. Nothing ran."

Each plan lists how many turns may run at once:

| Plan | Turns at once |
|---|---|
| Solo | 1 |
| Pro | 3 |
| Team | 8 |
| Scale | 24 |

The machine also admits work by memory weight (900 MB per turn by default), so a terminal, a background task or a sandbox already running can make a turn wait. See [Plans and billing](https://docs.ventgris.com/account/plans-and-billing.md) and [Limits](https://docs.ventgris.com/reference/limits.md).

## Session states

| State | Shown as | Meaning |
|---|---|---|
| `idle` | no label | No turn runs. Costs nothing |
| `queued` | **Queued**, **Queued, position n** | A turn waits for a slot |
| `running` | **Working** | A turn is in progress |
| `waiting_human` | **Waiting for an answer** | The turn asked a question or reached an action that waits for approval. It leaves this state by itself at the timeout |
| `error` | **Error** | The harness failed. The next message starts a new turn |
| `archived` | **Archived** | Hidden from the main list, everything kept |

## Find a session

- The search box ("Search by title or by what was said…") searches titles and the text of the messages.
- The filters: **All**, **Active** (queued, working, waiting for an answer), **Errors**, **Archived**.
- The list shows 50 sessions, the most recently active first. **Show older sessions** loads more.

Each row shows the title, the agent, the harness, the state when it is not idle, and how long ago it changed.

## Rename, archive, reopen

| Action | How | Effect |
|---|---|---|
| Rename | Click the title or the pencil button | The title changes for everyone. Without a rename, the agent gives the session a title in its first turn, or the first 60 characters of the first message are used |
| Archive | Box button in the header, when no turn runs | "Archive this session? It leaves the list and everything is kept." |
| Reopen | **Reopen** on an archived session | It comes back to the list and accepts messages |

An archived session cannot receive a message ("This session is archived. Reopen it to continue."). Nothing is deleted by archiving.

## Open a session in a terminal

The terminal button in the header (**Open in a terminal**) opens the same conversation in the harness's own interactive interface, in the [Terminal](https://docs.ventgris.com/workspace/terminals.md) screen. Use it for features only the harness's interface has. It is offered when no turn runs and the session has had at least one turn. While it stays open, it holds a terminal slot. Admins and editors only.

## Who sees and does what

Sessions are shared by the workspace: every member sees every session, its messages and its results. Each message shows who wrote it, and the session records the account that started it. There is no private session.

| Role | Sees sessions | Starts and sends | Interrupts | Renames | Archives, reopens | Opens in terminal |
|---|---|---|---|---|---|---|
| Admin | yes | yes | yes | yes | yes | yes |
| Editor | yes | yes | yes | yes | yes | yes |
| Member | yes | yes | yes | yes | no | no |
| Viewer | yes | no | no | no | no | no |

## How sessions run without approval prompts

A turn never waits for someone to click "allow". Claude Code runs with its permission mode `bypassPermissions`; Codex runs with its own sandbox open on the workspace and approvals set to `never`. This is by design: no task waits for a human.

What contains the agent is outside the model:

| Boundary | What it guarantees |
|---|---|
| One machine per workspace | Nothing of another customer is on it |
| A Linux user without `sudo` | Sessions run as `vg-ai`. They cannot read the control plane, the vault, the rule files or the audit journal |
| No sending keys | A key that sends, publishes or spends stays in the vault. The agent asks the broker for a declared action, which applies its [guardrails](https://docs.ventgris.com/workspace/autonomy.md) |
| Network rules | Sessions cannot reach the control plane, private networks or cloud metadata addresses |
| The policy of the profile | Which brokered actions the profile may ask for, the longest turn, sub-agents, commands refused by the tool hook |

A hook runs before each tool call (`vg hook pretool`). It can refuse a call with a message to the model, and it feeds the taint detection below. It never waits for a person.

> [!AGENT]
> You run without approval prompts. Anything that leaves the machine (a post, a message to a third party, a public page, a payment) goes through `vg action run`, never through a key you found. When you need a decision, ask with `vg ask "..." --default X` and go on with the default. Never search from `/`: search inside the workspace.

## Untrusted content and taint

A turn that read content from outside is the likeliest carrier of an injected instruction, so Ventgris marks it **tainted**. A turn becomes tainted at the first of these:

- a web fetch or web search tool,
- a shell command that reads the web (`curl`, `wget`, a browser, `firecrawl`, `yt-dlp` and similar),
- a tool or MCP server that reads mail,
- any MCP server other than Ventgris's own.

The conversation then shows "This turn read content from outside (web:WebFetch). Its outgoing actions wait longer." and the header shows the tag **untrusted content**. The flag lasts until the end of the turn.

Effects of the taint:

- A broadcast action from a tainted turn waits a longer undo window (30 minutes by default instead of 10). See [Autonomy](https://docs.ventgris.com/workspace/autonomy.md#untrusted-content).
- **Send now** on such an action needs your second factor.
- Images and media at web addresses in a tainted session do not load until you click **Load**: an address in the output could be a way to send data out.
- A tainted turn cannot release a quarantined rule. See [Skills and rules](https://docs.ventgris.com/workspace/skills-and-rules.md#quarantine).

Detection reads the events of the turn. It is a floor, not a proof that a turn is clean.

## Approvals inside a session

When a turn asks for a brokered action that waits (a delayed broadcast, or an action behind an approval), a box appears just above the composer, so you can decide where you are:

| Action state | Buttons |
|---|---|
| Delayed, with "Leaves in 8:42" | **Send now**, **Cancel** |
| Waits for your approval | **Approve**, **Reject** |

The same items appear in the [Activity](https://docs.ventgris.com/workspace/activity.md) feed. The agent never approves its own runs.

## Limits

| Limit | Value |
|---|---|
| Longest turn | 60 minutes, or the `max_turn_minutes` of the profile's policy if shorter (30 minutes for `memory`) |
| Longest wait in the queue | 30 minutes |
| Message size | 512 KiB |
| Messages waiting behind a turn | 100 |
| Attachments | 10 files of 10 MB per message |
| Sub-agents at once | from the policy, 3 for `ventgris` |
| Memory of one turn | capped by the size of the machine. Over it, the turn is stopped with an error |

### Common errors

| Message | What to do |
|---|---|
| The usage limit of the subscription is reached. | Wait for your plan's limit to reset, or use another model or harness |
| This model is not available to the harness. | Pick another model |
| The model provider is overloaded. | Send again in a moment |
| The harness ended without a message or a change. Nothing was done. | Send again, with a clearer request |
| The working folder of this session no longer exists. | Start a new session, or recreate the folder |
| A turn is in progress. | Wait for its end or interrupt it |

## Related

- [Agents](https://docs.ventgris.com/workspace/agents.md)
- [Autonomy and guardrails](https://docs.ventgris.com/workspace/autonomy.md)
- [Memory](https://docs.ventgris.com/workspace/memory.md)
- [Jobs](https://docs.ventgris.com/workspace/jobs.md)
- [Agents overview](https://docs.ventgris.com/agents/overview.md)
