Skip to content
/ Lonca
Documentation contents

Reference

Troubleshooting and FAQ

What to check when something does not start, does not sign in or waits on you, and answers to common questions.

Lonca does not fail silently: a failure says its reason and where to look. Start with what the screen says, then the log. This page lists the checks that solve most problems, and answers to common questions.

Where to look first

The task list
A task that waits on you sits under Needs you, with a stage ring that says why; hover the ring for its card. See A task is waiting.
The task’s tabs
The Flow tab holds what waits on you; its rail’s Setup stage shows each setup step, and the error of a failed one.
~/.config/lonca/logs/lonca.log
Every failure, with its detail. It keeps the most recent 512 KB, and one older file beside it (lonca.log.1).
Settings → Updates
Your version, and anything an update still asks.

To open the log from a terminal:

open -a TextEdit ~/.config/lonca/logs/lonca.log
tail -n 100 ~/.config/lonca/logs/lonca.log

Lonca does not start

Lonca can’t read its configuration

Your config.yaml is not valid YAML, or has a field the schema refuses. The screen shows what is wrong and where, with Open the file, Show in Finder and Try again. Lonca never changes the file for you. Fix the line it names, or restore an earlier version from ~/.config/lonca/backups/ (the last 20 saves), then Try again.

This Lonca is older than the one that last used your profile

A newer release has opened this profile, and an older one does not open data a newer one has written. Install the version the message names, or a later one, from cuukit.com. See No going back to an older release.

Nothing seems to happen

Only one copy of Lonca runs per profile. Opening it again brings the running copy’s window forward. Closing the window only hides it: use the menu bar icon’s Open Lonca, or the Dock.

A CLI is missing

The setup wizard checks each program Lonca runs. A macOS app opened from Finder does not get your shell’s PATH, so Lonca reads your login shell’s PATH at start: a tool installed with Homebrew or npm is found when your login shell finds it. When the shell is slow to answer, Lonca asks it once more, then looks in ~/.local/bin and the Homebrew folders.

ProgramNeeded forInstall
GitWorktrees, branches and diffs (required)xcode-select --install
Claude CodeStage agents, the leads, Background AI, the Configuratornpm install -g @anthropic-ai/claude-code
Codex CLIStage agents, the leads, Background AI, the Configuratornpm install -g @openai/codex
GitHub CLIPull request status and checksbrew install gh
  • Lonca brings its own tmux and Node.js runtime inside the app, placed last on PATH, so a Node you installed is found first.
  • After installing a CLI, sign in to it once in a terminal (run claude or codex), then restart Lonca so it reads the PATH again.
  • For pull requests, gh must be signed in too: gh auth status says whether it is. A push or a PR that fails is not always a sign-in: the task's question names the cause, such as a remote not on GitHub, no access or the network (see Publishing).
  • The Configurator says … is not installed. Install it or choose another provider. when its provider is missing; choose the other one under Provider.

Sessions and tmux

Agents run in tmux on Lonca’s own server, named lonca, with the tmux inside the app. They keep running when Lonca is closed or quits, and reappear where they were. To see them from a terminal:

"/Applications/Cuukit Lonca.app/Contents/Resources/bin/tmux" -L lonca ls
  • A stage agent that looks stuck may be waiting for permission or an answer: its badge says awaiting action, and once the question comes to you the row's stage ring shows ›_ in orange. Open its session on the question card shows it.
  • An agent session you started in a task before 11.0.0 keeps running, unlisted; the task's notification names it (see Sessions and agents).
  • With Close finished sessions on (Settings → Orchestration), a stage agent’s terminal closes when its step ends; a later step opens a fresh one.

A Codex stage agent does not start

Codex asks “Trust this folder?” in each new folder, and Lonca cannot answer it. When a repository is not trusted, the hand-off says so and a Codex stage agent does not start. Trust the repository once; its worktrees inherit it:

cd ~/Projects/your-repo && codex
# choose "Trust and continue", then quit Codex

A Codex terminal stage agent also needs --sandbox danger-full-access --ask-for-approval never in its command; without it the config does not load. See agents.

Signing in fails

When Lonca cannot sign in to a repository’s app, the task asks you, in words that start Signing in to <repo>…. It never sends the task back to the implementer: nothing in the code failed.

  • Missing credentials: enter them under Settings → Workspaces, in the credential fields under the repository (it says Not all credentials are saved until they are), and press Save.
  • A refused password: Lonca stops sending it. Correct it in the same place.
  • Check it now: Sign in now runs the script and shows the result. Saving the credentials, or a passing test, answers the waiting tasks, and they go on by themselves.
  • The script itself is wrong (the login page changed, a new step): run Set up authentication in the Configurator for that project to have it written again.
  • One sign-in may take 60 seconds; a network or browser failure is tried once more. A failure is remembered for a minute.

A task is waiting

On the rowWhat it meansWhat to do
An orange ring under Needs youThe pipeline asks you something (a dot), or a Jira proposal waits for your approval (two lines)Answer on the Flow tab, under Waiting on you
A red ! under Needs youThe task is stuckAnswer on the Flow tab, under Waiting on you
An orange ›_ under Needs youA stage agent asks for input in its terminal, and the question came to youAnswer on the question card, or Open its session
A pause under Needs youYou or a lead paused the taskSay what you decided on the paused card, then Resume
A red ×, dash or pause for a setupA worktree setup step failed (×), the worktree is missing (dash), or a setup stopped part way (pause); the row’s card says whichClick Setup on the rail: a failed step shows its error, and Try again retries that step alone; Set up from scratch is there for the other two
A grey pause or hourglass under In progressPause all is on (pause), or load control paused it for memory (hourglass)Resume all in the title bar; load control resumes by itself
A hollow dot, a grey clock or dashed ringIt is queued (clock), or not handed off yet (dashed)The card says its place in the queue, or hand it off from Flow

Why a queued task does not start

  • The plan: once plans are enforced, a queued task says when the plan is what holds it. Until then nothing is held this way. See Plans.
  • Concurrency: orchestration.concurrency caps how many tasks run a stage agent at once, and load control, when it is on, runs fewer while the machine is busy.
  • A busy resource: a step waits for a busy port or browser profile, up to orchestration.resource_wait_minutes (30 by default), before it asks. An app with every port slot taken waits in its repository’s line (Queued · 2nd on Run App).
  • Pause all: while it is on, every task waits where it is, and the Orchestration chip in the title bar says paused. An install that had orchestration switched off before 11.0.0 starts with Pause all on once, and a notice under Settings → Updates says so.

Asking someone else

A question you cannot answer yourself can be passed on: the copy button on its card (Copy the question as Markdown) copies it with what it is about, readable on its own, for a colleague, a chat or an issue. Paste their answer back into Your answer.

The issue's status

  • It is behind Jira: Lonca reads the statuses every three minutes, and again when you come back to its window (at most every 30 seconds). Refresh in the task's header reads the whole issue.
  • Jira no longer finds this issue: the issue was deleted, or moved out of the reach of the account Lonca connects with. The task keeps the last status read, and its chip offers no moves. Lonca asks again every half hour, and the sign goes once Jira answers for it.
  • A move from the status chip fails: the notice says why. A move whose Jira screen asks for fields can only be made in Jira. See Moving the issue yourself.

A Settings change was not saved

  • Not saved lists what the loader refused, at the field it concerns.
  • Not saved: the command was not allowed. means the native dialog for a new or changed command was declined.
  • A saved change applies after a restart: the banner above the tabs offers Restart now.

Update problems

  • The last check failed. The reason is in lonca.log. usually means no network, or a network that blocks GitHub. The next check tries again; Check for updates tries now. You can also download the release from cuukit.com.
  • After an update, a question can be put off with Later and answered under Settings → Updates, where a failed step has Retry. While either waits, the title bar shows a button such as 1 pending update that opens that tab.

Getting help

Write to kadiremin@gmail.com, the address in the site’s footer. To get an answer quickly, send:

  • your Lonca version (Settings → Updates) and macOS version;
  • what you did, what you expected, and what the screen said, word for word;
  • the end of lonca.log around the time it happened, read through first;
  • for a question the pipeline asked, the question copied as Markdown.

Frequently asked questions

Do my agents stop when I close or quit Lonca?

No. They run in tmux and keep working; when Lonca starts again they reappear where they were. Time Lonca was off does not count against a stage’s limit.

Does Lonca merge my pull requests?

Not unless you ask it to. Lonca opens the pull request, moves the Jira issue if you configured it, and watches the checks. You merge with Merge the PR… in the task's menu, Merge… in its PR panel, or on GitHub. With Settings → Orchestration → Merge ready PRs on (it is off by default), Lonca merges a PR by itself once it is truly ready. See Merging the PR. Deleting is always yours.

Can I edit config.yaml by hand?

Yes; it is your file. Lonca loads it at start and opens on a recovery screen when it does not load. Most of the time it is quicker to ask the Configurator, which verifies what it writes. See the config.yaml reference.

Do I need Jira?

No. Without a Jira connection, tasks start from local stories you write in Lonca. See Workspaces and issues.

Which coding agents does Lonca run?

Claude Code and OpenAI’s Codex CLI, on your own subscriptions; any stage agent can run on either, with its own model. The leads run on either too.

Does Lonca send my code or issues anywhere?

Not to Lonca: there is no Lonca server and no telemetry. The agents’ CLIs talk to their providers as they do outside Lonca. See What Lonca connects to.

Where are my tokens?

Encrypted with the macOS Keychain, beside the config, never in config.yaml. See How secrets are kept.

Can I go back to an older version?

Not on the same profile: a profile a newer release has opened is refused by an older one. Updates fix forward. See Updates and versions.

Why did a stage agent get more time than its limit?

Under consultant and autopilot, a stage agent still working at its limit, and not looping, is given another window. Under assistant the limit holds. Time Lonca was off, and time waiting on Lonca’s jobs, never counts.

Can I work in a task myself while Lonca runs it?

A task has no agent session of your own since 11.0.0: every task is handed off. You can watch any stage agent’s terminal and take it over, tell a stage agent or the task lead something, pause the task to clarify, or archive it to let Lonca stop working on it. See Handing a task off.

Which Macs does Lonca run on?

macOS 12 or later, on Apple silicon. See Install and requirements.