> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sessions and context

> Open and resume conversations, steer or queue follow-up messages, rewind to an earlier point, and keep long conversations focused.

Keep related work in one conversation so Inlay can follow your decisions and the evidence it has gathered. Start a new chat when you switch to an unrelated task.

## Open and resume chats

> [tab] VS Code
>
> | To | Do this |
> | - | - |
> | Start a new chat | Run `/new`, or choose `+` (**New chat**) in the chat header. In the side bar, `+` asks **Start a new conversation?** first; the current chat stays in history, and a running turn keeps going in the background. In a chat editor tab, `+` opens the new chat in another editor tab. |
> | Open a chat in its own editor tab | Run **Inlay: New Inlay Chat in Editor** from the Command Palette, or choose the Inlay icon in the editor title bar. |
> | Find a previous conversation | Run `/history`, or choose **Session history** in the chat header. The list shows recent conversations in the selected project. You can search, rename, open, and delete conversations there, or start a **New conversation**. The **Conversations** view in the activity bar lists them too. |
>
> Each chat keeps its own project, mode, model, approval setting, and queued messages. Once a conversation has started, its project name appears in the chat header. Choose it to switch projects; switching starts a new chat. You can't switch while the chat is running.
>
> Closing a chat tab stops its running turn but doesn't delete the conversation. To delete a conversation that's open, close it first.

> [tab] Terminal UI
>
> To resume a previous conversation:
>
> 1. Run `/history` (or `/resume`) and select a conversation. Press `Alt+R` to rename the selected conversation, or `Alt+D` to delete it.
> 2. If it has several prompts, choose **★ Full conversation** to resume everything, or choose an earlier prompt to resume from that point. Resuming from an earlier prompt changes what Inlay remembers of the conversation; it doesn't change your files.
>
> | To | Do this |
> | - | - |
> | Start fresh | Run `/clear` (or `/new`, or press `Ctrl+R`). The previous conversation stays in `/history`. |
> | Keep a conversation open while you start another | Run `/new-tab` or press `Alt+T`. Run `/tabs` to switch between the open chats. |
>
> `/clear` stops a running turn, cancels the conversation's background shell commands and subagents, and discards any queued messages. Results from those tasks that you haven't seen yet are discarded instead of reporting into the new conversation.

When you reopen a long conversation that's been idle for over an hour, Inlay offers to compact it first. In VS Code, the offer appears as **Resume old conversation?**:

| VS Code | Terminal UI | Result |
| - | - | - |
| **Compact and continue** | **Compact and continue (recommended)** | Summarizes earlier messages so replies stay on topic and use less context. |
| **Keep full context** | **Continue without compacting** | Resumes with the full conversation. |
| **Don't ask again** | **Continue and don't ask again** | Resumes with the full conversation and stops showing the offer on this machine, in VS Code and the terminal UI. |

Each conversation remembers its last mode. Resuming restores it; if that mode isn't available in the current project, Inlay uses Act.

## Send prompts during a turn

You don't have to wait for Inlay to finish. Sending a message while it works steers the current turn: Inlay reads the message at its next step. Use this to add a constraint, correct course, or supply missing information. If the turn ends before Inlay reads it, the message runs as the next turn.

You can also queue a message to run as a new turn after the current one.

| To | VS Code | Terminal UI |
| - | - | - |
| Steer the current turn | `Enter` | `Enter` |
| Queue a message for after the turn | `Alt+Enter` (`Option+Enter` on macOS) | Send the message, press `Ctrl+Q`, select it, and press `S` to hold it until the turn ends. |
| Stop the current turn | `Escape`, or choose **Stop**. This also stops the chat's background tasks. | `Escape` or `Ctrl+C`. If a queued message is waiting, the first press removes the latest one instead. Background tasks keep running. |

A waiting message stays editable until Inlay reads or runs it:

> [tab] VS Code
>
> A steering message waits above the input, marked **Steering · joins at the next step**, until Inlay reads it. You can edit it, remove it, or choose **Hold until this turn ends** to move it to the queue.
>
> Queued messages appear above the input under **Queued** and run in order as new turns. For each one, you can:
>
> * Choose **Edit**, or click the message, to change it.
> * Choose **Steer now** to have it join the running turn at the next step.
> * Choose **Remove from queue** to drop it.

> [tab] Terminal UI
>
> Press `Ctrl+Q` to open **Pending Messages**, where you can edit or delete a waiting message. There, press `S` to hold a steering message until the turn ends, or to steer a queued message now.

Up to 10 messages, steering and queued together, can wait at once. When the limit is reached, Inlay reports that the message queue is full. Waiting messages are saved with the conversation, so a reload or restart doesn't lose them; they run when you reopen the conversation.

> [!NOTE]
>
> Stopping a turn doesn't clear the queue. Queued messages wait until the next turn you start finishes, then run. Remove the ones you no longer want. Each queued message keeps the mode that was selected when you sent it.

Stopping in VS Code also stops the chat's running background shell commands and background subagents, including those inside subagent sessions. A background result that finishes after you stop doesn't start a new turn; it arrives with your next message. See [Subagents and background tasks](/docs/core-concepts/subagents.md#view-and-manage-background-tasks).

Use `/btw <question>` to ask a side question while the main task continues.

## Undo or rewind

Rewinding removes part of the conversation and reverts the file changes Inlay made after that point. Choose the option that matches how far back you want to go:

| To | Do this |
| - | - |
| Take back your last message | Run `/undo`. Inlay removes your last message and its response, reverts the file changes, and puts the message back in the input. |
| Retry the last response | Run `/retry`, or in VS Code choose **Retry response** under it. Inlay removes the response, reverts its file changes, and sends your message again. |
| Go back to an earlier message | Run `/rewind` and pick the message, or in VS Code choose **Rewind to this checkpoint** beside it. Inlay removes that message and everything after it, reverts the file changes made since, and puts the message back in the input so you can edit and resend it. |
| Edit an earlier message | In VS Code, click your earlier message, edit it, and send it. |

In VS Code, each `/rewind` entry shows how many files that turn changed. In the terminal UI, each entry lists the changed files and the lines added and removed. You can also rewind to a message from before the conversation was compacted; the terminal UI marks those entries **· compressed**. You can also undo with a keyboard shortcut in the terminal UI; see [Keyboard shortcuts](/docs/core-concepts/keyboard-shortcuts.md).

Inlay asks you to confirm before it reverts files:

* In the terminal UI, choose whether to revert the files or keep them as they are.
* In VS Code, select **Don't ask again** in the confirmation to skip it in that chat.

When you send an edited earlier message in VS Code, the confirmation has three options:

| Option | Key | Result |
| - | - | - |
| **Continue and revert** | `Enter` | Restores the files to how they were before that message. |
| **Continue without reverting** | `Shift+Enter` | Keeps the current files and only changes the conversation. |
| **Cancel (esc)** | `Escape` | Leaves everything as it is. |

If another conversation also changed some of the same files, Inlay leaves those files as they are and lists them. To restore them as well, choose **Revert those too** in VS Code, or **Also revert files changed by other conversations** in the terminal UI. Review any work you've done since the earlier point before you revert files.

Inlay can't keep file checkpoints if you open your home folder, or its Desktop, Documents, or Downloads folder, as the project folder. A notice says it can't use checkpoints in that directory. Open the project folder itself to use file rewinds. Approved changes to files outside the project aren't checkpointed either, so a rewind leaves them as they are.

### Undo a rewind

A rewind, including `/undo`, stays undoable until you send your next message. To undo it, choose **Undo rewind** in the **Conversation rewound** banner above the VS Code chat input, or press `Alt+Z` in the terminal UI. Inlay restores the removed messages and the files the rewind reverted. You can't undo a rewind while a turn is running.

Sending the next message makes the rewind permanent. Inlay deletes the removed messages and drops any queued messages from after the rewind point.

## Fork a response

In VS Code, fork a response to try a different approach in a separate conversation:

1. Wait for the response to finish, then choose **Fork to new chat** beneath it.
2. The fork opens in a new editor tab with the same mode. To preview the source conversation, hover over or focus **Add chat transcript**.
3. Choose **Add chat transcript** if the new conversation should use the earlier findings and instructions, then send your next request.

In the terminal UI, run `/fork` to fork at the last message, or run `/rewind` and press `F` on an earlier message. The fork opens in a new chat tab. Press `Alt+I` to add the chat transcript, or `Alt+H` to preview it.

The fork starts without the source transcript until you add it. Both conversations share the project folder, so file changes in one are visible in the other. Forking doesn't restore files.

## Keep a long conversation useful

Run `/compress` when a conversation gets long. Inlay condenses the earlier context so you can keep working on the task. The transcript stays visible.

**Smart auto-compact** is on by default for supported models. When a conversation reaches the model's compaction threshold, Inlay trims less relevant detail from earlier responses and tool output. Your own messages are kept word for word, so your requirements aren't paraphrased away. Compaction can happen between steps of a turn; the turn then continues where it left off.

While Inlay compacts, the Thinking row shows **Compressing** with a percentage. When it finishes, the row shows the result:

| Row | Meaning |
| - | - |
| **Compressed** *before* → *after* | The context was condensed from *before* to *after* tokens. |
| **Compression failed · continuing without it** | Compaction didn't work, and the turn continues with the full conversation. |
| **Compression stopped · nothing was changed** | Compaction was stopped before it finished. The conversation is unchanged. |

To turn smart auto-compact off or on, choose its button in the VS Code composer, next to the context window indicator, or run `/auto-compact on` or `/auto-compact off`. Run `/auto-compact` without an argument to switch it to the other setting. The tooltip shows **Smart auto-compact: on** or **Smart auto-compact: off**. Inlay remembers the choice on this machine, in VS Code and the terminal UI. If you turned the feature off before it became the default, Inlay turned it back on once; turn it off again to keep it off.

Startup In a Startup workspace, a credits meter appears beside the context window indicator in VS Code once half of the credits are used. See [Startup plan](/docs/core-concepts/startup-plan.md#shared-credits).

Keep durable project instructions in [INLAY.md](/docs/core-concepts/inlay-md.md) and confirmed facts in [project memory](/docs/core-concepts/memory.md).

## Work with hardware across chats

Within one VS Code window or terminal UI session, only one chat uses a board or instrument at a time. When another chat holds it, the step shows **Waiting for hardware access** with the chat or Monitor that holds it, and continues once the hardware is free. Chats in another VS Code window or another terminal UI session don't wait for each other, so avoid driving the same board from two windows.

If a chat waits longer than you expect:

1. Run `/hardware-queue` to see which chat holds each target and which chats are waiting.
2. Let that work finish, or stop it.
3. If the chat that holds the hardware is stuck, run `/hardware-force-release --confirm`. This can interrupt that chat's work on the board.

If another chat reflashed the board in the meantime, Inlay re-runs your chat's last flash command before it continues, when it can, and notes this in the result. If it can't re-run the flash, or the reflash fails, the result says the board is running the other chat's firmware. Reflash before you rely on the board.

## Share with your team

If conversation sharing is enabled for your team, you can share a read-only copy of a conversation with your teammates. If you don't see `/share` in the command menu, sharing isn't enabled. Ask your Inlay administrator to turn it on.

1. Run `/share`.
2. Check the team and the message count in the preview.
3. Choose **Create team link**. To create the link without this confirmation, run `/share confirm` instead.

Teammates see the shared conversation in their session history for the same project. Opening it adds a copy to their own history.

| Command | What it does |
| - | - |
| `/share` | Previews sharing the current conversation with your team. |
| `/share confirm` | Creates the team link without asking again. |
| `/share list` | Lists the conversations you've shared. |
| `/share revoke` | Revokes the share link for the current conversation. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.