Skip to content

Troubleshooting

Solutions for common issues you may encounter when using Kangentic.

If an agent session crashes unexpectedly:

  1. The task card shows an Exited status
  2. Your work is safe - the git worktree and all file changes are preserved
  3. Drag the task back to any active column to respawn the agent with the same prompt and worktree
  4. The new agent picks up from the file state left behind

On rare occasions, a session may show as Orphaned - this means the PTY process exited without Kangentic detecting it cleanly. Orphaned sessions are cleaned up automatically on app restart. You can also drag the task to Done and back to an active column to force a fresh session.

Kangentic persists session state to its database. When the app restarts after a crash:

  • Sessions that were running are detected and reconnected if the PTY process is still alive
  • Sessions whose PTY process also died are marked as exited
  • Worktrees and file changes are always preserved regardless of crash state

Kangentic auto-detects each supported agent CLI on your PATH (claude, codex, gemini, cursor-agent for Cursor, copilot, grok, agy for Antigravity, goose, opencode, aider, qwen, kimi, droid, oz for Warp, and ollama). If the one you want isn’t detected:

  1. Verify the CLI is installed: run its version command in your terminal (e.g. claude --version, codex --version)
  2. If installed but not found, set the path manually in Settings > Agent, in the Agent CLI card. The row is named for the project’s default agent (Claude Code path), so pick that agent under Project defaults first. Since v0.51.0 the path belongs to that project only
  3. Alternatively, set agent.cliPaths.<agent> in the project’s .kangentic/config.json to the full path of the binary (e.g., agent.cliPaths.claude, agent.cliPaths.codex)

On macOS and Linux, Kangentic also checks a standard set of fallback install locations for thirteen of the fifteen agents (Cursor and Warp look only on PATH) - Homebrew (/opt/homebrew/bin, /usr/local/bin), Linuxbrew, ~/.npm-global/bin, ~/.local/bin, Volta, Bun, Cargo, and installed nvm versions - to handle the Finder-launch case where Electron doesn’t inherit your shell PATH. A few agents layer extra paths on top: Claude on macOS, Grok’s ~/.grok/bin and Kimi Code’s ~/.kimi-code/bin on every platform including Windows, and Windows locations for Antigravity.

Cursor is the one case with two names. It installs both cursor-agent and a short agent shim, and Kangentic looks for cursor-agent first, keeping agent only as a fallback. That ordering matters if you also have Grok Build installed, because xAI’s CLI publishes its own agent shim: on Windows that one wins PATHEXT order, so probing the short name found Grok and reported Cursor missing.

A configured path is probed and used as-is. If it does not answer its version command, the agent reports as not found at that path rather than silently resolving to a different binary on PATH, so an override pointing at a stale install shows up as the problem it is.

Settings on the Agent tab: the project's default agent, its model and effort, the permission mode, and the path to the agent's CLI. v0.69.0 The real app on a sample install. The projects and terminals are recordings, connected to nothing, so click anything.

Since v0.39.0 detection walks every PATH match for a name in order, spending at most four version probes per agent, rather than stopping at the first hit. On Windows the lookup searches the working directory before PATH, so a gemini.cmd left in a project root by an uninstalled local package used to shadow the real global install and report the agent missing. An npm shim whose target script no longer exists is now skipped without a probe. Warp’s oz gets the same walk since v0.54.0.

A spawn that resolves an agent whose CLI is missing no longer fails silently. The card stays where it is and a toast explains why:

Codex CLI not found on PATH. Install it, or set its path in Settings > Agent.

If agents fail to start with authentication errors:

  1. Run the agent CLI directly in your terminal and complete its authentication flow (e.g., claude, codex, gemini, aider)
  2. Kangentic uses each CLI’s own local credentials - it doesn’t manage authentication itself for any agent

Kangentic reads OpenCode’s major version once per CLI path and launches OpenCode 2 with a different command. If you upgrade OpenCode in place, the first spawns afterwards still get OpenCode 1’s command, which OpenCode 2 can reject with Unrecognized flag: --agent. Restart Kangentic, or change and restore the CLI path in Settings > Agent, so the version is read again. Remote mode needs OpenCode 1 on both ends, and an OpenCode 2 install stops a remote spawn with “OpenCode remote mode needs OpenCode 1”.

Kangentic drives Kimi Code CLI 2.x. The older Python kimi-cli runs no agent, so since v0.54.0 detection reads a 1.x install as not installed. Install Kimi Code in its place. A session from the 1.x CLI cannot resume, because Kimi Code reads that data only through kimi migrate, which you run once from your own shell.

The card reads Didn’t start when the agent never reported that it started or its terminal could not start. Kangentic paused the task rather than leave it on a dead terminal, and since v0.55.0 it has already tried a launch that never started once more on its own. The “Agent didn’t start” notice shows the raw error with a Copy button, or the CLI’s own line for a login failure. Run the CLI directly in a terminal to see what stops it, then press Resume to try the launch again.

The card reads Worktree missing or Folder missing when the folder its agent starts in is gone. Nothing started anywhere else. On Worktree missing, Resume makes the worktree again from its branch. See When a worktree folder is gone.

An agent cannot use your Playwright or Chrome MCP server

Section titled “An agent cannot use your Playwright or Chrome MCP server”

Since v0.53.0, while Browser automation is on in Settings > Browser automation, the embedded Browser pane is the only browser agents should drive. A Claude Code or, since v0.54.0, Factory Droid agent’s calls to a Playwright, Puppeteer, Chrome DevTools, or Browser MCP server, and to Claude in Chrome, are denied with a pointer to the pane. To use your own browser server again, turn Browser automation off. A running session sees the change on its next call. Running your project’s own Playwright tests from the shell is not affected.

Kangentic auto-detects your shell. If it picks the wrong one:

  1. Open Settings > Terminal > Shell
  2. Set the full path to your preferred shell

See Shell support for the detection order on each platform.

If agents fail on Windows with execution policy errors, PowerShell may be blocking script execution. Run this in an elevated PowerShell:

Terminal window
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

The policy also decides how an npm-installed agent is launched. Under RemoteSigned (or Unrestricted), Kangentic runs the agent’s .ps1 shim, which carries a multi-line task prompt intact. Under the Restricted default of Windows PowerShell 5.1, it has to fall back to the .cmd shim through cmd.exe, whose command line ends at the first newline, so the prompt is flattened to one line instead. Set the policy as above in the shell Kangentic uses, then restart the app. See npm .cmd shims under PowerShell and Git Bash.

If WSL paths aren’t resolving correctly, ensure your project is on a Windows drive. Kangentic converts between Windows and WSL paths automatically, but a project stored inside a distro (a \\wsl$\ or \\wsl.localhost\ folder) is not supported: its git, worktrees, and session files run on Windows, and change notifications over the WSL share are unreliable.

An agent CLI path into a distro is a different case, and since v0.51.0 it works: the CLI runs inside the distro (see Agents installed in a WSL distro). If the version probe fails, the path row shows the error it hit, word for word.

A terminal did not start because its output never connected (Windows)

Section titled “A terminal did not start because its output never connected (Windows)”

On a Windows machine under heavy load, the console host (ConPTY) can fail to connect a new terminal’s output in time, and the terminal’s shell never starts. Before v0.50.0 that showed as “Cannot create process, error code: -1”. Since v0.50.0 Kangentic retries such a start once on its own, and only if the retry fails too does the terminal say so:

Error: The terminal did not start because its output never connected
This computer was too busy to start it in time. Start it again to retry.

Start the agent again, or open a new Command Terminal, once the machine has settled. If it keeps happening, look at what is holding the CPU or the memory; Commit limit on Windows covers the memory side.

Common causes:

  • Uncommitted changes on the base branch - commit or stash changes before creating tasks
  • Branch name conflicts - Kangentic generates unique branch names (<slug>-<short-id>), but if a conflicting branch exists, delete it manually
  • Locked index - another git process may hold the lock. Check for .git/index.lock and remove it if stale
  • A process is holding the old worktree directory - on Windows a directory that is some process’s current directory cannot be deleted, so a dev server an earlier session left running blocks the cleanup and the next worktree on that path. Kangentic ends a session’s leftover processes when a task moves to To Do or Done or is deleted, and reaps orphaned holders when a removal fails. If the directory still cannot be reclaimed, the error names the holder: Held by node.exe (pid 12345). Close it and retry. Close that process, or the terminal or editor sitting in the folder, and retry

“Base fetch failed” on a spawning card

Section titled ““Base fetch failed” on a spawning card”

Every spawn freshens its base branch from origin first (since v0.37.0), so a task never quietly starts from a base you last pulled days ago. When that fetch fails, the card’s spawn-progress label picks up a (base fetch failed) note and one toast per project explains it. The agent still starts, but it starts from your last fetched state.

Usual causes are the ordinary ones: no network, or credentials your git remote needs and the app cannot supply (an expired SSH key passphrase, an unauthenticated gh). Fetch by hand in the project directory to see the real error. A repository with no origin remote stays quiet, since there is nothing to be behind.

A spawn that reuses a worktree it already has never moves that branch on its own, so the label is a measurement, not a failure. Use Pull from in the task detail window’s kebab menu (Update from base before v0.63.0) when you want the branch caught up. See Starting from a fresh base.

Worktrees are removed automatically when tasks move to Done, which reclaims the disk but keeps the branch, so the task can be moved back out and resumed. The branch goes only on a move to To Do, a delete, or a demote to the backlog, and only when git.autoCleanup is enabled (the default). To manually clean up:

  1. Move the task to Done to drop the worktree directory and keep the branch
  2. Or delete the task from the board, or move it to To Do, to drop both (with Auto Cleanup on)

If a worktree directory persists after cleanup, remove it manually:

Terminal window
git worktree remove .kangentic/worktrees/<task-number>

Worktree directories are named after the task number. Worktrees created before this scheme keep their original <slug>-<short-id> folder name, so check the directory listing if the task number does not match anything.

Each concurrent agent session runs a separate PTY process. If memory is constrained:

  • Reduce agent.maxConcurrentSessions in settings (default: 8)
  • Keep When idle on under Settings > Performance > Pausing agents, the default since v0.56.0, so agents waiting on you are paused for you. Opening a paused task resumes it
  • Move idle tasks to Done to suspend their sessions
  • Close projects you’re not actively using
  • End the browser pages you are finished with. A loaded Browser pane costs roughly 120 MB and hiding it with the Browser pill deliberately keeps it alive for the agent, so use Close browser - in the pane’s toolbar, or in the task menu if the pane is hidden. A green play badge on the Browser pill and a green globe on the task card mark the tasks still holding one. A page that ran out of memory shows This page stopped with a Reload button, and its globe turns red (A page that stops)

Windows keeps a second memory budget besides RAM: commit, the memory programs have reserved. Every reservation counts against a limit of your RAM plus the page file, whether or not the program has touched it yet. Task Manager’s Memory percentage is RAM, so it can read half free while commit is nearly gone. The figure to watch is Committed, under Performance > Memory. Windows does not stop a program when the limit is reached. The next program that asks for memory is refused, and it usually crashes: an agent, a dev server, or Kangentic itself. macOS and Linux report no commit figure.

Measured on Windows 11, each Claude Code agent reserves about 1 GB, nearly all of it the claude process, and the MCP servers you configured start once per agent on top of that. Kangentic itself reserves about 3 GB, most of it the dictation and Knowledge Graph models when those features are on. The builds, test runs, dev servers, and browsers that agents start come on top, and one of them can reserve several GB. Two changes give agents more room:

  • Give the page file a larger starting size. A page file Windows manages grows as commit nears the limit, but a burst of reservations can outrun the growth. Open System Properties > Advanced > Performance Settings > Advanced > Virtual memory > Change, clear “Automatically manage paging file size”, and choose Custom size. Set the Initial size so the limit sits at least 8 GB above the Committed figure you see with your usual agents running, and the Maximum size no lower than that.
  • Run fewer agents at once. Lower Max concurrent sessions in Settings > Behavior. A task past it waits in the queue.

An MCP server launched through npx -y also keeps an npx process of about 110 MB beside each agent. Install the package once and point its MCP config at the installed command instead.

Until v0.55.0 Kangentic raised a Low on memory toast from this figure. It was removed with the pause it drove, and a low spell now leaves two lines in the local log. Since v0.65.0 it also takes one census of what held the commit, by group, which goes to the log and, with error reporting on, into a report (Privacy and analytics).

When the machine does run out, the operating system usually kills Kangentic’s window process rather than the app as a whole. Since v0.42.0 the window reloads itself when that happens, because your agents live in the main process and survive it untouched: recovery costs a repaint, never their work. If a fresh window dies too, three times inside ten minutes, Kangentic stops reloading and shows a dialog saying so, with the last memory reading it took. Your agents are still running; restart Kangentic to reconnect to them, and free some memory first, since the window will only die again on a machine with none left.

Chromium draws the app through a separate graphics process. When that process fails repeatedly, or cannot be started again, and runs out of fallbacks, Chromium shuts the whole app down on purpose: no crash dialog, no warning, the window simply disappears. On some machines that happens within seconds of launching, which looks like an app that will not start. On others, so far only Linux, it happens a few minutes into a normal session.

Since v0.43.0 the next launch recovers itself. It starts without graphics acceleration, which removes the graphics process entirely and takes that shutdown off the table, raises a toast saying so, and leaves Graphics acceleration switched off under Settings > Performance with a note that Kangentic was the one who turned it off.

Until v0.43.2 that recovery covered only a graphics process that crashed. One that could not be started again reported nothing, so the next launch found no trace of it and started on the GPU again. Kangentic now records the moment Chromium falls back from GPU rendering as well, which lets the next launch recover from most of those failures too.

Only a graphics process that actually fails counts. Before v0.44.0, shutting down or restarting the computer with Kangentic open could read as a crash loop: Windows kills the graphics process and refuses to start a new one while the session ends, and the next launch turned acceleration off on a healthy GPU. Since v0.44.0 a shutdown, ending the app from Task Manager, or running out of memory no longer counts. If that happened to you on an earlier version, turn Graphics acceleration back on.

What is different while it is off:

  • Terminals render through the DOM path instead of WebGL, so a long burst of agent output is less smooth. Everything still works, and Kangentic stops retrying WebGL rather than probing for a context that cannot exist on this launch.
  • Animations and the rest of the interface are unaffected.
  • Nothing turns it back on by itself. Switch Graphics acceleration back on and choose Restart now when you want to try hardware rendering again: Kangentic restarts with acceleration on, and running agents resume after the restart. If the failure returns, the next launch turns it off again.

Kangentic does not claim a cause, because it cannot see one from the inside. On the installs that failed at boot, the failures started seconds in, before any agent or terminal existed. A display driver is the usual culprit for that shape, so updating yours is worth trying first. If it keeps happening, the crash records under <project>/.kangentic/logs/crashes/ (kind gpu-process-gone) are what to attach to a bug report. A record whose message ends in “(not a GPU fault)” was a kill, a shutdown, or since v0.63.0 a death after the app began to quit, not a failure. A graphics process that could not be started at all leaves no such record, because Chromium never reports a failed start to the app. Only the fallback is recorded.

Model acceleration under Settings > Knowledge Graph is a different setting despite the similar name. It picks where the local search model runs and has nothing to do with how the app draws.

If terminal output is laggy:

  • Reduce agent.maxConcurrentSessions so fewer live terminals render at once

If you moved or renamed a project folder, Kangentic shows a Project Folder Not Found dialog on launch with a Locate Folder… button. Point it at the new location and everything (tasks, sessions, board history) carries over. To move a project proactively, use the Move… button under Project Settings > General and let Kangentic relocate the folder itself. See Relocating a project.

Kangentic keeps its project data in a .kangentic/ folder inside the project. Since v0.52.0 a folder where it cannot write that is not added at all: adding one from the app shows a toast, and passing one with --cwd opens the app with no project. Fix the folder’s permissions and add it again.

To reset a project’s settings to defaults, delete its local config:

Terminal window
rm <project>/.kangentic/config.json

The project will use global settings on next launch.

A banner saying kangentic.json cannot be read usually means a git merge or git pull left conflict markers in it. Since v0.44.0 Kangentic never overwrites such a file: the board loads from its own database, and profile, shortcut, and base-branch saves are refused until the file is valid JSON again. Resolve the conflict and save; the fixed file applies over anything you changed meanwhile. See Board configuration.

Kangentic uses SQLite for data storage. If the database becomes corrupted:

  1. Close Kangentic
  2. Delete the database file from the data directory
  3. Relaunch - a fresh database is created automatically

A global database Kangentic cannot open is reported rather than crashing the launch (since v0.39.0). The dialog names the file path and the SQLite error code, lists the usual causes (another program holding the file: an antivirus scan, a OneDrive or Dropbox sync, or a failing drive), and offers Retry and Quit. A lock is usually over within seconds, so Retry reopens the database without a relaunch. The same dialog can appear once while the app is running if the project list stops being readable; project reads come back empty until a Retry succeeds, and a successful Retry re-arms the dialog for a later outage.

“Kangentic can’t create its data folder”

Section titled ““Kangentic can’t create its data folder””

A config, projects, or models folder Kangentic cannot create at startup raises this dialog, with the folder, the raw error, and the cause when one can be named: a drive that is not available, a link in the path that points to a folder that does not exist, or characters Windows does not allow. Before v0.55.0 the dialog blamed a program holding a file. Fix the path, or point Kangentic elsewhere with a custom data directory, then choose Retry.

Conversation memory runs its embedding model in a separate background process. If that process crashes three times inside five minutes, Kangentic stops restarting it and search stays on keyword matches until the window clears. Searching keeps working throughout, which is why this can go unnoticed, and the Knowledge Graph loses search by meaning until it recovers.

The Knowledge Graph card in Settings > Knowledge Graph names the reason when it happens. Its note reads “The local model is unavailable - showing keyword matches.” with how the worker stopped and the first line of its error output, for example exited with code 1: Error: Cannot find module 'onnxruntime-common', or failed to start when the process could not be created at all. The same reason is written to <project>/.kangentic/logs/<YYYY-MM-DD>.log as a [utility-process] warning ending in the crash count, such as (crash 3 of 3), so it is on disk whether or not error reporting is enabled. A worker that never came up, or stopped answering, says what it failed to do instead, as in did not start in time.

A worker that cannot load its native runtime will not load on a later try either, so since v0.59.0 Kangentic stops restarting it after the first crash and keeps search on keyword matches until you restart the app. The note then reads “The local model could not load on this computer - showing keyword matches until Kangentic restarts.” with the error after it. On Windows that failure was the Microsoft Visual C++ runtime. The embedding runtime needs it and nothing in the install provided it, so on a machine without the Visual C++ Redistributable, or with one older than the embedding runtime was built with, search by meaning never started. Since v0.59.0 the Windows build ships its own copy of the Visual C++ runtime beside the embedding runtime, so no separate install is needed.

Kangentic disappears on Windows (v0.39.1 only)

Section titled “Kangentic disappears on Windows (v0.39.1 only)”

On Windows, installed v0.39.1 builds close instantly and without a dialog the first time Kangentic starts one of its background workers. There is no crash report and no error in the log, because the whole app is gone before either can be written.

Two things start those workers, so the moment it happens depends on what you were doing: Conversation memory indexing a project, and a diff that has a large batch of untracked files to measure. Indexing is the common one, which is why this usually looks like “it dies a few seconds after I open a project”.

Only v0.39.1 is affected, and only installed builds. Running from source is not, since a terminal gives the app the console handle whose absence causes the failure. v0.40.0 fixes it. If you are on v0.39.1, update; if the app closes before you can, reinstall from the latest release.

Logs are written per project, not to a platform-standard app directory, so they sit beside the code they describe:

What Where
Console log <projectRoot>/.kangentic/logs/<YYYY-MM-DD>.log (one NDJSON line per entry)
Console log, no project open <configDir>/logs/<YYYY-MM-DD>.log, where <configDir> is the config directory
Crash reports <projectRoot>/.kangentic/logs/crashes/<timestamp>.json (one file per crash), or the config directory’s logs/crashes/ for a crash with no project open
IPC trace <projectRoot>/.kangentic/logs/ipc-<date>.jsonl

Verbosity is a setting rather than an environment variable. error and warn entries are always persisted; info, debug, and log are written only when developer.persistConsoleLogs is on (see the Configuration reference). Logging is deliberately best-effort: if the write fails, entries are dropped rather than risking a crash in a diagnostic path. Since v0.42.0 a gap with no project open no longer loses entries, so a global subsystem such as the mobile bridge keeps its trace in the config directory’s log across it.

Agents can read all of this without leaving the board, through the kangentic_tail_logs and kangentic_get_recent_crashes MCP tools; kangentic_tail_logs merges the project log with the config-directory one.

If none of the above resolved it:

  • Open a GitHub issue for a bug or crash. Include your OS, the Kangentic version, the agent CLI involved, and the relevant lines from the debug log above. Public issues get the fastest fix because other users can add detail.
  • Start a GitHub Discussion for a question about how something is meant to work.
  • Email support@kangentic.com if the problem involves logs or project details you would rather not post publicly, or if you have not gotten a response on an issue.

Please scrub file paths, task content, and anything else sensitive from logs before sharing them.

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

Star on GitHub