lose nothing
Park it now, resume it whole.
A kolu session is your whole workspace: the terminals, their layout and themes, the maximized posture, and the activity-window filter. It comes back where you left it, so parking work costs you nothing.
What survives
| What happens | What comes back |
|---|---|
| A reload | Your terminals re-attach already whole, with their unread marks. No restore card appears. |
| A kolu-server restart or redeploy | Your terminals and your session, because padi, not the web server, keeps the workspace record. Unread marks come back as they were. |
| A kaval update | Your live terminals keep running, with their shells, scrollback and agents. The only sign is a brief N terminals reattached note. |
| A kaval release that changes how kolu’s daemons talk to each other | The old daemon cannot be adopted, so it is restarted and live shells end. The session is restored from disk and agents resume. The changelog says when a release does this. |
| An unclean crash of the terminal daemon | Every saved terminal, with each agent resumed on its exact prior conversation rather than as a bare shell. Agents in a split come back too. |
A restored terminal keeps its own id, so a link to it, and the Conductor’s pieces of work, still name the same terminal after a kaval restart.
The restore card
The Restore session card appears after a genuine restart, never as a flash on a reload. It lists every saved terminal as its own row, grouped by repo, and offers to resume every agent the host knows how to resume. Turning Resume agent sessions off wakes bare shells instead.
- Start fresh is the one way to throw a saved session away, and it takes two deliberate clicks. The first opens a confirmation naming what goes, and only the second discards.
- Restart kaval, the button and the same repair padi runs by itself on a stuck daemon, always ends on this card, whatever you did earlier in the tab. Restoring a session, or starting fresh, never hides a later offer.
Recover a session from a backup
kolu snapshots the saved-session file into a rotated history at every boot, once a day while it runs, and before Start fresh discards anything. So a session you discarded, or one a bad value overwrote, is still there.
Run Debug → Restore state from backup from the command palette to bring a snapshot’s terminals back, agents resumed. The snapshot replaces the saved session outright, so leftover restore rows go with it. See Troubleshooting.
The same command restores kolu-server’s own store: your preferences, the host pool and the Conductor’s pieces of work and memory. That is a separate ring and a separate pick, and it applies live with no restart.
Sleep a terminal
Sleeping parks a tile you are done with for now, so only the terminals you are using stay live.
Click the ☾ button on the title bar, or run Sleep terminal from the palette. Then:
- Sleep acts on the whole family. The tile and every split under it freeze together, each keeping its place under its parent, so a split does not have to be reopened after you wake the tile.
- The PTY, agent process and GPU context are released for every member, exactly as if you had closed them. The tile can still be dragged, resized, renamed and re-themed. Only typing is fenced off.
- A frozen split keeps its tab in the tile’s strip, marked ☾, and its pane offers its own Wake.
- Last-known context stays visible: the directory, git branch and GitHub PR the terminal was on, frozen at sleep.
- The dock gives every frozen member its own ☾ row, and the dock’s ☾ filter hides the lot.
- Closing a sleeping tile discards it and its splits, because nothing is running behind any of them.
Wake on the exact conversation
Wake respawns the terminal in the same directory and resumes the agent on the
exact conversation it was running, never “the most recent conversation in this
folder”. Each agent is resumed by its own exact-conversation form:
claude --resume <id>, codex resume <id>, opencode --session <id>,
xyne --session <id> and agy --conversation=<id>. Grok has its equivalent,
and pi and Oh My Pi take the transcript’s absolute path, which those two accept
verbatim.
The line wake types is built from facts kolu owns. kolu’s own entry for that agent supplies the binary and how it spells resume, the session file supplies the conversation id, and the live agent process’s own arguments supply the flags.
Flags are filtered through that agent’s allowlist, so only recognized
launch-shape flags come back (a --model, a --dangerously-skip-permissions,
an --no-alt-screen). A stray path or prompt is dropped.
What a resume may carry lists the allowlist per
agent.
Wake restores the family the same way: every dormant member respawns on its own id, parents first, with each agent resumed on its own conversation. Clicking Wake on a split wakes its parent and siblings too, because a split cannot run under a tile that is still asleep.
What a resume may carry
A resume is built from three facts kolu holds, never from a command line a shell printed:
| Fact | Where it comes from |
|---|---|
| which agent | the detection adapter that matched this terminal’s foreground process |
| which conversation | the agent’s own session file, plus its process or its breadcrumb |
| which flags | the live agent process’s arguments, filtered through the agent’s allowlist |
The filter is an allowlist. Anyone whose text you display can print the escape
sequence a shell marks commands with, so a captured line never becomes a command
kolu types. Only flags the agent’s own package declares as launch shape come
back. A flag such as --model carries its value:
| The live process runs | Wake replays |
|---|---|
claude --plugin-dir P --resume <id> --dangerously-skip-permissions | claude --resume <id> --dangerously-skip-permissions |
omp -e P --resume <path> --model fable | omp --resume <path> --model fable |
ld-linux… …/opencode --standalone --session <id> --model sonnet | opencode --session <id> --model sonnet |
The AI_PROFILE that kolu’s own agents feature sets does come back, unlike a
prefix you type in the shell (below). A terminal kolu cannot build a resume for
wakes to a bare shell, and padi’s log says so.
What wake cannot bring back
- A shell-typed environment prefix such as
FOO=1 claude. That prefix lived only in the typed line, not in the process’s arguments. Set the variable in your shell profile, or through an agents profile, if it must survive. - A conversation for a terminal that slept before kolu captured a session id. It wakes to a bare shell.
- The agent you had quit to a bare shell before sleeping. Waking lands you at that shell rather than relaunching something you closed.