Skip to content

Session persistence

Kangentic persists every agent session to a local SQLite database, so a session survives an application crash, a system restart, and a deliberate pause, and resumes with its conversation intact.

What is saved, the states a session moves through, and how a crash or a pause is handled.

Every interaction between Kangentic and the agent CLI is stored in real-time:

  • Conversation history - The full prompt and response chain
  • Session metadata - Start time, status, worktree path, branch name
  • Terminal output - Raw terminal data for replay
  • Task state - Board position, description, and user notes

Data is written incrementally as the agent works, not just when the session ends. If the application crashes mid-session, the data up to that point is preserved.

State Description
Running Agent is actively working. Session data is being written in real-time.
Queued Waiting for a free slot under the max-concurrent-sessions limit, or for its turn in a column that runs one agent at a time. The card shows its place in line, Next in line… or 2 tasks ahead…. Promoted to Running automatically (FIFO) when a slot frees up.
Suspended Agent was intentionally paused: by you, by Kangentic’s idle timer, or by the system. Full state is preserved for resume. A start that never reached an agent leaves this state too, and the card says why (An agent that never started).
Exited Agent process terminated (finished, errored, or crashed). Check exit_code for details.
Orphaned Session was running when the application closed unexpectedly. Recoverable on next launch.

The Agent Monitor shows sessions from every project grouped by these states, as Idle, Active, Paused (suspended plus queued), and Recently finished.

Session states and the moves between them A session record is in one of five states: Running, Queued, Suspended, Exited, or Orphaned. Moving a task out of To Do starts a session as Running, or as Queued when the concurrent session limit or the column's agent limit is reached; a Queued session becomes Running when a slot frees, first in first out. A Running session becomes Suspended when its task moves to Done, moves to a column with auto-spawn off, is paused by you or by the idle timer, or the app quits. A Suspended session becomes Running again when its task moves to an active column, which resumes the same conversation. A pause by you or the idle timer is held, so the session stays Suspended through any column move until you resume it. A Running session becomes Exited when its task is reset by a move back to To Do, the task is deleted, or the agent process exits on its own. A queued fresh start becomes Exited on a reset, and a queued resume that is paused, moved, or refused when its turn comes becomes Suspended. Exited usually ends that record, and the next move out of To Do spawns a fresh session. A Running or Queued session found on the next launch after the app crashed or was killed is Orphaned; startup recovery resumes it to Running, or marks it Suspended when auto-resume is off. A column move that changes the agent, model, or effort, or crosses into or out of an isolated column, also passes through Suspended, but only for the seconds it takes to respawn. Task leaves To Do Queued Running Suspended Exited Orphaned limit reached slot frees suspend resume reset, delete, exit reset app crashed recovered on launch auto-resume off
A session's five states. Solid edges are moves you make on the board; dashed edges are crash recovery on the next launch. A reset is a move back to To Do. A session suspends on a move to Done, a park in a column with auto-spawn off, a pause by you or the idle timer, or app quit, and resumes on a move to an active column, unless it was paused. A pause holds until you resume it. A settings change on a column move passes through Suspended for a few seconds and comes back as Running.

Suspended is not always a park. Moving a task to a column that changes its agent, model, or effort suspends the running session first and respawns it a couple of seconds later, as does crossing into or out of an isolated column. For that gap the session is genuinely suspended without anyone having paused anything. Since v0.41.0 the card names what is happening instead of going dark and offering a Resume button you should not press: Switching model…, Switching agent…, Applying new settings…, or Starting new session…, on both the card and the task detail window. The two moves that really are parks, into Done and into a column with auto-spawn off, clear the label and read as Paused.

When Kangentic starts, it checks for sessions that were in a “Running” state when the application last closed. These are marked as crashed and can be:

  • Resumed - Relaunch the agent with the full conversation context. The agent picks up where it left off.
  • Archived - Keep the session data but don’t resume. Useful if the task is no longer relevant.

Pausing from the header button or its kebab twin also closes the task’s detail window, on the reasoning that pausing means “I am done with this task for now”. The session is only suspended, never killed, so it resumes exactly as before when you reopen the task. This is wired to the pause gesture rather than to the suspended state, so the other routes into suspension leave your windows alone: a board move to a To Do or Done column, the Code Review column, and a restart with auto-resume disabled all suspend without closing anything.

Sessions paused manually by the user (via the pause button in the task detail window or its kebab menu, the Pause session row in a card’s right-click menu, or a paired phone) are remembered across restarts. On relaunch, user-paused sessions remain paused instead of auto-resuming. This respects user intent - if you paused an agent, it will not start back up on its own, and neither a relaunch nor a move into a column that starts agents brings it back. An agent Kangentic paused for you stays paused across a relaunch too, until you open its task. Only system-suspended sessions (those suspended by shutdown or column moves) auto-resume. The Agent Monitor lists paused sessions under its Paused group, and Resume session in a row’s right-click menu resumes one without opening its detail window.

The Agent Monitor over all three projects: summary tiles for idle, active, and paused sessions, then a card per session grouped by project, each with a strip naming its project and its column on a step track, its latest output, and its model and context use. v0.69.0 The real app on a sample install. The projects and terminals are recordings, connected to nothing, so click anything.

An agent that is waiting on you still holds all the memory it reserved, about 1 GB of commit for each Claude Code agent on Windows. Kangentic can pause one for you on a timer, with When idle under Settings > Performance > Pausing agents. It is on by default since v0.56.0. An install upgraded from an earlier version has it turned on once, keeping its minutes, because a saved config could not tell a deliberate off from the old default. Turn it off again if you had it off on purpose.

When idle pauses any agent that has been idle for the minutes on its second line, Minutes idle (30 by default). A permission prompt does not count toward it, and text typed into the agent’s prompt holds the pause off until the prompt is empty again. It never pauses a Command Terminal, since v0.50.0, because a pause would end the terminal and its conversation with it. Since v0.56.0 it also leaves alone an agent that cannot resume, such as Warp or Ollama, for the same reason, and an agent whose background job is still running.

Since v0.63.0 it never pauses an agent whose task is open, however long it waits on you. A task is open while its window is, on the board or in the Agent Monitor, or while a paired phone has its screen open. The minutes start over when you close it. A task shown only in the bottom panel is not open, and neither is a window in a project you switched away from: that agent can pause, and it resumes when you switch back. A window you leave open overnight keeps its agent running, and the project’s Stop script does not run for it. Before, an agent could pause under a window you were looking at.

The pause holds until you come back to the task, and a relaunch does not bring the agent back. Since v0.56.0, opening the task resumes it at once, from its card, a toast, search, or anywhere else that opens it. Opening sends the agent nothing, so it costs no tokens, and the conversation picks up where it stopped. A pause frees a slot under Max concurrent sessions, so a queued task can start in it, and if the column is full when you open the task, it queues and its window says why. A short Agent paused toast names the task.

Since v0.61.0 moving the task into a column that starts agents brings it back too, the way that move starts a running agent: the column’s message goes out, which is a paid turn. Any move you make counts: a drag, a move from your phone, an agent’s move you asked it for, or a move from a Command Terminal. Before v0.61.0 such a move left the agent paused.

A paused task keeps its Resume button, and opening it does not resume it, in these cases:

  • You paused it yourself. A move does not start it either.
  • Its workflow is paused.
  • The board moved it to another column while it was paused: an automation, a plan approval, a workflow step, or an agent working on its own. Resume runs that column’s message, which is a paid turn, so it waits for your click.
  • Its conversation cannot be resumed as it stands, so a resume would start a new one.

A window that a restart restored keeps its Resume button too. A held message, such as what a Stop script stopped, reaches the agent after your next turn ends, and a task in a running workflow rejoins the workflow when it resumes. Since v0.60.0 that includes a turn whose end is held only by a background command the agent left running: the agent has already taken its turn, so the message is pasted then rather than hours later when the command exits.

Since v0.60.0 the card tells the two kinds of pause apart. An idle pause reads Paused while idle, and a pause that waits for your click reads Paused, on the board and in the Agent Monitor. When opening the task does not resume it, a line under the task window’s Resume session button says why: “Paused while idle.” or “Stays paused until resumed.” A second pause never changes who paused a session first, and the card keeps its wording across a restart. A paired phone still reads plain Paused for both.

v0.55.0 removed the pause that ran on low memory, with its When memory runs low switch, the Low on memory warning, and the Idle agent paused toast. A short spike could fire them on a machine with plenty of free memory, and no reading was reliable enough to stop an agent. A saved config that still has the old setting loads unchanged. An agent that pause left paused stays paused until you resume it, except a task in a running workflow, which the next restart brings back.

A laptop that goes to sleep on its own stops every agent mid-run while the board still shows them working. Stay awake, a card of its own under Settings > Performance since v0.66.0 and on by default, keeps the computer from idle-sleeping while any agent session runs: a task’s agent, a Command Terminal, or a workflow’s own agent, on this computer or an SSH host, on battery or plugged in. Once none is running, the computer sleeps on its usual schedule. There is no grace period after the last one stops.

Only a running session counts. A paused, queued, or ended one does not, which is why the card sits beside Pausing agents: a task agent left waiting at its prompt keeps the computer awake until When idle pauses it, or until it stops when that timer is off. A Command Terminal is never paused, so an open one keeps the computer awake until you close it.

Stay awake stops idle sleep only. Closing the lid, choosing Sleep, and a critically low battery still put the computer to sleep, and the screen still turns off. On Windows the hold shows in powercfg /requests, run from an elevated prompt, under SYSTEM: with the reason “Kangentic: an agent is running”. On macOS pmset -g assertions lists it. On Linux it works where the desktop honors GNOME’s or the freedesktop power inhibit, which GNOME and KDE Plasma do. A bare window manager honors neither, and there the computer sleeps on its own schedule.

On a Mac, Kangentic also keeps itself out of App Nap while an agent works, and for two minutes after the last one goes idle, whether Stay awake is on or off. App Nap had slowed a hidden Kangentic’s timers by 16 to 24 seconds.

When you resume a suspended or crashed session, Kangentic:

  1. Reads the full conversation history from the database
  2. Recreates the agent session with the stored native session ID (via each CLI’s native resume flag)
  3. Reconnects the terminal to the new process
  4. The agent continues working with full awareness of previous context

The agent sees the same conversation it had before, so it can continue its work without repeating steps or losing context. A plain resume runs none of the column’s enter automations and types no column message.

A card you paused yourself stays paused when you drag it to another column, and so does any paused card the board moves, and that move runs only the destination’s enter automations that need no agent, such as a script or a webhook. An idle pause is the exception since v0.61.0: your move into a column that starts agents resumes it (see Pausing agents). Since v0.51.0, resuming it afterwards starts the column the way that move would have: a fresh conversation in a column that always starts new, such as an isolated Code Review, or the same conversation with the column’s settings in one that resumes, then the column’s message. A card dragged back out of Done resumes with no message, as any recovery move does.

Since v0.57.0 a Claude Code session resumed in the column it was paused in comes back in the permission mode it was last in, so a session you switched out of plan mode stays out of it. That covers Resume, opening a task the idle timer paused, a resume from a paired phone, a restart of the app, and a restart to apply new settings. A move into another column still applies that column’s mode, and so does a Resume after the card was moved while paused, a column whose mode was edited since the session started, and a column set to bypass permissions, which Claude Code never restores. The order of the modes is in Permission modes.

Since v0.59.0 a Resume, and a restart to apply new settings, run the agent the model and effort were chosen for: the task’s own agent override, else the column’s, else the project default. Before, they ran the project’s default agent with the column’s model and effort, so in a Claude Code project a paused task in a Codex column came back as Claude Code started on a Codex model. A restart of the app covers the same mismatch from the paused session’s side: when that session belongs to another agent than the one its column runs, the column’s agent resumes its own latest conversation on that track, or starts fresh when it has none.

On the board, a resumed card reads Resuming agent…, not Starting agent…, until the agent reports its model. Before that, while a Resume is still preparing, the card reads Resuming session… rather than Paused, so a slow resume does not look like a press that did nothing. A session you paused yourself reads Paused and stays that way through a relaunch.

The contoso-web board in Planning: the Fix WebSocket reconnection card shows its agent's last message and reads Resuming agent..., the Onboarding empty states card below it reads Paused, and the agents in Executing are working. v0.69.0 The real app on a sample install. The projects and terminals are recordings, connected to nothing, so click anything.

A message for a task with no running agent is held and goes out with the next agent that starts or resumes there. That covers a message from another agent over MCP, a Move to column row’s message for a column where no agent runs, chat from a paired phone, and since v0.63.0 a commit, push, or pull request from the Changes panel that failed in a way an agent can fix. Before v0.52.0 the first was refused and the other two were dropped. A moved task’s message is also held when the agent there exits before its turn ends, and since v0.57.1 when that agent has not ended its turn within an hour (see Move to column).

Held messages arrive in the agent’s opening message, after the column’s own, oldest first and numbered when there are several. With no column message they are the whole opening message. After a slash command they go as their own message once the command’s turn ends, because text after a slash command would become its arguments. A message that waits for a turn to end no longer needs a quiet screen. Since v0.57.1 an idle agent whose terminal keeps repainting, as a resumed Claude Code does while its own background agents run, gets it after two minutes. Before, such a message waited out the hour and was lost. A task in Done holds nothing, a move to Done or To Do clears what is held, and nothing in the app shows a hold. Over MCP, kangentic_get_session_messages_sent lists them.

The same release fixed the path they ride. A resume prompt was lost when Codex, Copilot, Grok, OpenCode, or Cursor resumed, because their commands dropped it while Kangentic believed it had gone out. An agent whose resume takes no prompt now gets it typed in once the agent is back.

Three states have no in-place Resume (since v0.36.0), each with a message naming the way forward instead of an error:

Task is Message
In a To Do column This task is in To Do. Move it to another column to start its agent.
In Done This task is complete. Move it out of Done to continue working on it.
Archived in any other column This task is archived. Restore it to the board to continue working on it.

A paired phone shows the message as its error, and the card menu shows it as the disabled Resume row’s tooltip, so each names the move that gets past it. A refused Resume on the desktop raises a Couldn’t resume session toast with a shorter line (“The task is in To Do.”), since the card beside it already shows the column. The gate is the column’s role, not its auto-spawn setting, so a custom column you have turned auto-spawn off for still offers Resume.

A completed task lives in Done with its worktree deleted and its session suspended. Resuming it in place would recreate that worktree and put a live agent on a task with no board card, burning quota with nothing on screen to notice it. The designed route back is to move the task out of Done, which unarchives it first and then spawns through the normal path. Moving a task out of Done also unarchives it immediately rather than waiting for the spawn to land, and the card shows the restore as in progress rather than as Paused, so a slow worktree rebuild does not read as a stall.

Kangentic will not resume a conversation that does not exist. A session that ends before its first turn leaves a resumable-looking record pointing at a transcript the agent CLI never wrote, and re-entering it used to leave you on a bare shell with the agent gone.

That is now detected and the spawn is downgraded to a fresh one. The check is deliberately narrow, and all three conditions must hold: the transcript path is the one the agent itself reported, that same report must independently say the conversation had no turns (no tokens, no cost), and any missing or unreadable evidence leaves the resume exactly as it was. A session that had real turns is never downgraded, even if its transcript has moved.

Claude Code deletes transcripts older than its cleanupPeriodDays setting, 30 days by default, so any task left idle that long used to resume onto a bare shell and a “No conversation found” message. Since v0.46.0 Kangentic checks before the spawn. When Claude Code has deleted the conversation, the same spawn starts a new one, with a recap of the task as its prompt: what happened and when, the task and its summary, the old conversation’s last turns, the branch’s commits and uncommitted changes, and a pointer to kangentic_get_transcript for the rest. The old session record is kept, and nothing is deleted.

On the task’s main session the recap is the whole prompt, and it asks the agent to say where the work stands and then wait. The column’s message, its task template, and the task’s own command are not sent, because a conversation old enough to expire belongs to a stale task, and the run log records those message rows as skipped, “Not sent”. The turn that answers the recap runs no On agent turn end rows and no workflow step. A column that keeps its own conversation in an isolated session starts a normal fresh pass instead, with the recap added to its prompt as context. A toast names each task: “Fix login redirect” started a new conversation because the one from Sep 3 expired. A notice for a project in the background shows when you open that project.

The check needs proof, so it only ever costs a resume, never data. It reads only transcript paths Claude Code itself reported, and it starts over only when the file is gone from every one of Claude’s project folders. Anything it cannot rule out, such as a permission error or a path on another filesystem, resumes exactly as before. Since v0.65.0 a Claude Code conversation on an SSH host gets the check too. Kangentic asks the host itself, in the projects folder of a transcript path Claude reported there, and starts over only on the host’s own answer that the file is in none of them. The copy of the conversation on this computer decides nothing, and a dropped link or a timeout resumes as before. Since v0.54.0 Gemini CLI, Qwen Code, and Kimi Code get the same check over their own session folders, and Gemini deletes chats past 30 days by default. The other agents are not checked before the spawn. Since v0.63.0 Kangentic reads Codex’s own answer after the fact: when codex resume exits with “No saved session found”, the card names that, and a conversation that never had a turn starts fresh. A Claude conversation the check cannot prove gone, such as one a moved project folder hides, still ends at startup, and Kangentic reads Claude Code’s own account of why and raises an “Agent didn’t start” notice naming it, as it has since v0.42.0.

Kangentic also keeps its own copy of each conversation, so the conversation viewer can still show one after the agent deletes its file.

A launch can fail with nothing to report: a shell that lost the typed command, or a CLI that exited before it drew anything. Since v0.54.0 a task whose agent never reported that it started is paused rather than ended, because an ended session offers no Resume and its terminal takes no keys.

Since v0.55.0 Kangentic tries such a launch once more on its own. The retry replays the launch’s own prompt, so no enter automation runs twice and a held message is not lost. It does not run when anything shows the agent ran, so no prompt runs twice, or when the CLI’s own words say you are signed out or its configuration is wrong, because a second launch cannot fix either. A pause, a resume, or a reset of your own cancels it.

If the retry fails too, the card reads Didn’t start in place of Paused, with the reason in its tooltip, and an “Agent didn’t start” notice shows the raw error with a Copy button, or the CLI’s own line for a login failure. Resume tries the launch again, from the launch’s prompt rather than from a conversation the agent never wrote. A restart resumes it too.

Since v0.57.0 a slow shell is not mistaken for a launch that failed. A shell still in its profile shows no agent yet, the same as an agent that exited, and before v0.57.0 a task’s launch was judged at 30 seconds, so a PowerShell profile slower than that paused every launch and then its retry. Now a launch with no sign its agent ran waits up to two minutes, as a Command Terminal always has. One whose output already names a cause, such as a command that was not found, is still caught within about 30 seconds.

Since v0.56.0 a start whose command is too long for its shell is refused before it begins, where it used to show a working agent for about four minutes before saying anything. A fresh start puts the task’s prompt on the agent’s command line, and Windows limits that line to 32,766 characters for a process and 8,191 through cmd.exe or a .cmd shim. The card reads Didn’t start, and its tooltip says the prompt is too long for this agent to start with. An agent whose input box Kangentic can tell from its boot screen, which today means Claude Code, gets a prompt that does not fit typed in instead. Task descriptions are capped at 27,500 characters for the same reason (see Writing descriptions).

On Windows, a launch through a .cmd shim whose line is longer than cmd.exe takes typed in is started from the program the shim names, so the shim’s limit does not apply. Since v0.59.0, when Kangentic cannot read past the shim, the start is refused before it begins with the same Didn’t start reason, in any Windows shell. That covers a shim it cannot read or parse, a target that is gone or is not a program or Node script, and a pnpm shim that sets NODE_PATH for a Node script. Before, it typed cmd’s refusal into the terminal and showed a working agent for 30 to 60 seconds. In the same release a pnpm shim to a native program, such as Claude Code’s claude.exe, starts directly. Since v0.60.0 a shim whose target is itself a .cmd or .bat shim, as when a global command calls a package’s own node_modules\.bin shim, is read through in turn, and the start runs what the last one names. Since v0.61.0 a shim whose target is a PowerShell script starts it through the PowerShell the shim names, pwsh or powershell, with the shim’s own flags and nothing added, the way npm and pnpm write a shim for a pwsh script and a hand-written trampoline calls one. Before, every such long launch was refused, again on each restart. A shim that runs the script with no PowerShell named, sets a variable Kangentic cannot carry into the start (pnpm’s NODE_PATH included), or adds arguments after the script is still refused. Since v0.68.0 a plain SET in a shim, such as an endpoint or a config folder, is carried into the agent’s environment, where before the shim was refused. Since v0.66.0 a wrapper that quotes its program by full path, such as scoop’s, starts that program too when its line says exactly what it starts, and a PowerShell or Git Bash launch whose arguments hold something the shim’s cmd.exe would act on, such as a <, starts what the shim names at any length (see npm .cmd shims).

Since v0.60.0 a shell that dies before it runs the typed launch line, such as a PowerShell that fails to start in under a second and prints nothing, takes the same path: the task is paused with the launch marked failed, gets its one retry, and then reads Didn’t start. Before, it was left on an ended session with no Resume.

A resume can also find no conversation to resume, when a launch that never started left a session id behind and a restart then tried to resume it. Since v0.56.0, when the CLI names the missing conversation and the session has no turns, the next start is fresh, from the launch’s own prompt. Claude Code is the agent that reports it. Since v0.60.0 Kangentic usually decides that before the launch instead of after a failed one. A quit deletes the session’s report files, so a session that never took a turn came back from a restart with nothing to go on and resumed into “No conversation found”. Kangentic now keeps the conversation’s file path on the session’s own record, from Claude Code’s status line or, for a session that line never reached, its session-start hook. When that file is gone and Kangentic can prove the conversation is too, the restart starts fresh from the launch’s prompt with no dead launch first, and so does Resume. Since v0.64.0 Kangentic also marks a fresh launch whose agent never ran, from what it saw of the launch itself: one ended in its first second, one a quit suspended, and one still queued at a quit or a crash. Resuming it starts fresh from its prompt, where it used to resume into “No conversation found” and pause the card.

Since v0.66.0 Kangentic types no column message or held message into an agent that reports its start until it has shown it started. A Claude Code launch that skips permissions can stop at Claude’s “Bypass Permissions mode” warning, whose focused choice is “No, exit”, and an Enter typed there would pick it. Claude tasks resumed after a restart on Linux stopped at that warning and did not start until retried, because an added account’s settings lost Claude’s record that the warning was accepted. Accounts keep their own settings now, and a launch held at that warning or at Claude’s trust prompt names the screen in its report.

This covers the agents that report a start, Claude Code and Factory Droid. A Command Terminal still ends, and a workflow’s own agent keeps its ended session, which its pane restarts. Every failed launch writes one line to the local log and, unless your own setup caused it, sends one error report.

An agent can stop without anyone asking: it finishes and exits, or a resume fails to read its transcript. Since v0.42.0 every move, resume, and settings change first checks the task’s session against the live registry rather than trusting the stored pointer. A pointer at a session that has already ended is cleared, so the move resumes the record instead of “keeping alive” an agent that is not there, which is what used to happen on every move of such a task; and a live agent the pointer had lost is re-linked, so the move continues it instead of spawning a second one.

Resume matrix:

Agent Resume Mechanism
Claude Code ✓ Caller-controlled session ID via --resume for deterministic re-entry
Codex CLI ✓ codex resume <id> with the CLI-generated rollout ID
Gemini CLI ✓ Caller-chosen session ID via --session-id on first launch (Gemini 0.41.0 or later), --resume <id> to re-enter
Cursor CLI ✓ cursor-agent --resume=<id> using the session ID from the init event on Cursor’s stream-JSON output or, for an interactive start since v0.52.0, the chat create-chat made before launch. Since v0.60.0, when create-chat gave no id, the first hook that names one supplies it, the prompt hook included. The resume takes no prompt, so Kangentic types a column’s message in once Cursor is ready
GitHub Copilot CLI ✓ Caller-controlled UUID via --session-id <uuid>, on first launch and to re-enter (the same flag starts a new session or resumes an existing one). Each spawn has its own config folder, so a resume copies the session’s earlier session-state/<id>/ in. The resume takes no prompt, so Kangentic types a column’s message in once Copilot is ready
Grok Build ✓ Caller-owned session IDs: --session-id <uuid> on first launch, --resume <uuid> to re-enter (Claude-identical flag semantics)
Antigravity CLI ✓ agy --conversation <uuid> with the conversation ID captured from hook payloads or the shutdown summary; resumes cross-directory
Goose CLI ✓ Caller-supplied session name: Kangentic passes -n <id> at spawn and resumes with -r -n <id>; resumes cross-directory (state is keyed by name, not path)
OpenCode ✓ Native session IDs (ses_<id>) captured from the plugin’s session.created event
Aider ✓ Since v0.54.0 each session has its own .aider.chat.history.<id>.md, and a resume restores it with --restore-chat-history. A task runs one turn and exits, so a resume’s message rides --message and gets one reply
Qwen Code ✓ Caller-owned session IDs: --session-id <uuid> on first launch, --resume <uuid> to re-enter (a chat file of its own under ~/.qwen/projects/, not Gemini’s layout)
Kimi Code ✓ --session <id>, with the ID captured from the CLI’s session_index.jsonl after the first message lands. The resume takes no prompt, so Kangentic types a column’s message in. A session from the older 1.x CLI cannot resume, because Kimi Code reads that data only through kimi migrate
Factory Droid ✓ droid --cwd <cwd> --resume <uuid> with the UUID from the SessionStart hook, or from ~/.factory/sessions/<cwd-slug>/<id>.jsonl as a fallback
Warp (Oz CLI) - oz does not expose a session-resume mechanism. Re-entry starts a new session in the preserved worktree
Ollama - Local single-turn chat: each ollama run is one turn with no CLI-level session resume. Re-entry starts a fresh run in the preserved worktree

Kangentic preserves terminal scrollback across resume so you still see the prior session’s output.

The less common paths: isolated sessions, the state machine, and where history and usage live.

A task normally runs on a single main session - its primary conversation, resumed as the task moves between columns. A column can instead be set to run tasks on an isolated session: a separate, independently-resumable conversation of its own, keyed by that column.

An isolated session does not inherit the main conversation, which suits work that should stay independent of it - a code review column is the canonical example. A task can hold its main session plus one isolated session per isolated column, all sharing the same worktree, so edits made in either are real and persist. Only one agent runs at a time per task.

  • Entering an isolated column suspends the main session and resumes (or freshly spawns) the column’s isolated session.
  • Leaving an isolated column for a normal column suspends the isolated session and resumes the main session.
  • The session tab badges the active track as Isolated or Main so you always know which conversation you’re watching.
  • A split icon marks an isolated session wherever the app names one: the Column Manager’s column list and All columns table, the Which conversation this column uses control, the task window header, the conversation viewer’s tabs, and the completed task’s Usage tab.

Two per-column settings control this, both round-tripped to kangentic.json: sessionTarget (main or isolated) and sessionSpawnStrategy (create_or_resume or always_spawn_new). Only the first is offered in the Column Manager, as Which conversation this column uses; switching it to Isolated carries the strategy to a fresh pass each entry (the reviewer archetype), and switching back to Main returns it to resuming for continuity. The other combination, an isolated track that resumes, is a hand edit of kangentic.json. always_spawn_new applies on column entry only: an app restart, or a pause and resume of a session already in progress, still resumes it. See Column-level settings.

Every session lifecycle transition (spawn, suspend, resume, kill, queue-promote) runs through an atomic state machine with a per-task lock, added in v0.15.0. The lock prevents two transitions from interleaving on the same task, which was the root cause of several pause/resume race conditions before v0.15.0: a rapid drag could trigger a spawn while a prior kill was still cleaning up, leaving a half-alive session. Now a move that arrives while the task is mid-transition is queued until the current transition completes, then either executes or is coalesced with the target state if it became redundant.

The state machine also coordinates with the concurrency queue: if a spawn transition finishes by placing the session in the queue (because the max-concurrent limit is reached), queue promotion runs under the same lock so a later manual suspend doesn’t race with an automatic promotion.

Killing a session used to mean killing the process outright, which gives an agent CLI about 100 milliseconds to tidy up. That is enough for an agent that has been running a while and nothing at all for one that just started, and Claude Code in particular keeps a startup record it withdraws only on a clean exit. Kill it inside that window and the next launch drops to Claude’s plain renderer instead of its fullscreen one. Do it twice and the plain renderer sticks for every Kangentic session on the machine.

Since v0.41.0, a session Kangentic considers young - it entered its fullscreen view less than 12 seconds ago, or has not drawn a frame yet and spawned under a minute ago - is sent the agent’s own exit sequence first and force-killed 1.5 seconds later, the same grace a suspend already had. A mature session is still killed at once. Stopping a Command Terminal, dragging a task back to To Do, deleting a task, and quitting the app normally all take this path; the quit extends its own shutdown wait so the grace outlives it. The exceptions are the shutdowns Kangentic does not get to pace: a Windows log-off or OS shutdown, and a kill signal, both of which exit immediately and flush every waiting terminal at once. Nothing about the grace is configurable and nothing asks you to wait for it.

Since v0.48.0, Claude Code on Windows and Linux takes none of this. A kill, a suspend, and a quit close its console the way closing a terminal window does, and Claude exits on its own in about a second, after running its SessionEnd hooks, writing its transcript, and withdrawing its startup record. The typed exit it replaces could do harm: a turn still thinking took the Ctrl+C as an interrupt and sent the following /exit as a second paid turn, and an open permission prompt took the Enter as yes. On macOS Claude is still typed an exit sequence, now Esc, a short pause, Ctrl+C, then /exit.

Every session, finished or archived, stays in the database. Three surfaces read it:

  • The View conversation pill on a task window opens the conversation viewer, a read-only transcript of the task’s live session, or its newest when none is live.
  • The completed task view on an archived task shows when it ran, how long its agent worked and waited on you, its cost, and changes, and on its Usage tab every run with its tokens and tool calls.
  • Conversation memory indexes the transcripts so Quick Find and the kangentic_search MCP tool can search them.

Session data lives in a per-project SQLite database under Kangentic’s data directory, at projects/<projectId>.db beside the machine-wide index.db, not inside your repository. See Configuration files for where that directory is on each platform. The repository’s own .kangentic/ folder holds the files that sit beside it: config.json, worktrees, per-session directories, the files you attach to tasks and backlog items, logs, and the MCP config. Kangentic adds it to .gitignore when it opens the project. The database grows with usage but stays small, typically a few MB.

Per-session token and cost samples are append-only in a separate usage_history table, so the Usage Stats totals for live (the trailing two hours, the default), today, week, month, and all stay accurate even after you delete a task or wipe a session. Deleting a task removes its row from sessions and tasks but leaves the historical samples intact. The dashboard’s saved range lives in usageStatsPeriod (see the Configuration reference).

Kangentic is free and open source. A star helps other people find it.

Star on GitHub