# Panels

Every panel of Blossom grows from the notch and closes back into it: peek lists the sessions, a request asks, the inbox gathers what waits and detail opens one session.

> [!IMPORTANT]
> **The focus rule.** A panel that opens by itself never takes keyboard focus: the window is a non-activating `NSPanel`, so the app you are typing in keeps every keystroke. Shortcuts answer only after an explicit interaction — a hover that stays inside, a click, or the global shortcut — and a request that changes pauses 500 ms, so a doubled key never answers two.

## Peek

Rest the pointer on the ear for a moment, or swipe two fingers down on it, and every session is listed; it closes shortly after the pointer leaves.

![Peek mode](/docs/peek.png)

- **Rows.** The name of the session and its branch, with a second line for what its request asks, why it failed, or what its agent is doing.
- **Trailing value.** How long a session has worked, the stage of a run (`Test · 3 of 4`), or the chip of its state.
- **Grouping.** <kbd>G</kbd> switches between **Agent** and **Project**. By project, each project shows its name, its branch and how many sessions it holds, in the order of attention.
- **Renaming.** <kbd>R</kbd> turns the title of the selected session into a field: <kbd>↩</kbd> saves, <kbd>esc</kbd> cancels.
- **Keys.** <kbd>↑</kbd> <kbd>↓</kbd> move, <kbd>↩</kbd> opens the selected row, <kbd>esc</kbd> closes, and the footer shows what works.

## Permission requests

When an agent stops to ask, the request panel opens by itself, with no toast before it: the agent, what it wants in its own words, one button per option it offered.

![Permission request](/docs/request.png)

- **What it would do.** A diff per file, by name and never by folder, with `+2 −1` and three unchanged lines around each change; a command line by line; or a plan drawn as Markdown.
- **Answering.** <kbd>A</kbd> allows once, <kbd>⇧</kbd> <kbd>A</kbd> always, <kbd>D</kbd> rejects once, <kbd>⇧</kbd> <kbd>D</kbd> always. A question has no allow and no reject: <kbd>1</kbd> to <kbd>4</kbd> pick an answer.
- **A note.** An option that takes one carries a pencil; choosing it opens a field instead of answering.
- **Several pending.** <kbd>Tab</kbd> shows the next request, and <kbd>esc</kbd> puts the shown one off without answering it.

## Unified inbox

With two or more things waiting, the inbox opens in place of the request panel: every pending request, every session that waits without one, and every finished session you have not seen — needs you first, then failed, then done, latest first.

- **In place.** A short permission or a question of one choice answers inside its row; anything else says *open to answer*, and <kbd>↩</kbd> takes it to the request panel.
- **Set aside.** <kbd>⌫</kbd> takes a row out of the list and answers nothing; the request stays pending and comes back when something new happens in its session.

## Session detail

<kbd>↩</kbd> on a row of peek opens that session: its agent, its title, its state, and how long it has worked.

![Session detail](/docs/detail.png)

- **Steps and output.** The plan of its turn with the time of each step, or the stages of a run, and the latest lines it printed in Geist Mono.
- **Go to the terminal.** <kbd>↩</kbd> jumps to the tab or pane the session runs in and closes the notch; a run with a page in its service opens that page instead. The first jump asks macOS for Automation once.
- **Back and dismiss.** <kbd>←</kbd> or <kbd>esc</kbd> returns to peek; <kbd>⌫</kbd> dismisses a finished session with no pending request.
- **Reply.** <kbd>R</kbd> opens the reply for an agent you turned acting on for; see [Acting](acting.md).
