Skip to content
/ Lonca
Documentation contents

Reference

Updates and versions

How Lonca updates itself, what an update does to your config, and why a profile cannot go back to an older release.

Lonca updates itself. A new version downloads in the background and installs when you restart; the stage agents live in tmux and go on through the restart. When a release changes what config.yaml should say, the Configurator brings your file up to date on the first start, and a profile a newer release has used is never opened by an older one.

How Lonca updates

  • Updates come from Lonca’s public releases on GitHub, signed and notarized by Apple like the download from cuukit.com. Only the published app updates itself.
  • When github.com does not answer, the same check tries GitHub’s API, which serves the same release (since 11.0.2). The next check starts on github.com again.
  • Lonca checks half a minute after it starts, then every six hours.
  • A newer version is downloaded in the background. Nothing changes until you restart.
  • A downloaded update installs when Lonca quits, or at once with Restart to Update.
  • A downloaded update stays offered: a later check, or its failure, does not take the restart away.
Settings → Updates saysMeans
Lonca checks for a new version shortly after it starts, then every six hours.No check has run yet
Checking for a new version…A check is running
Lonca is up to date.You run the latest release
Downloading version …A newer one is on its way
Version … is downloaded. Restart Lonca to install it.It waits for your restart
The last check failed. The reason is in lonca.log.No network, or neither github.com nor GitHub’s API answered; the next check tries again

Check for updates checks now. The version you run is shown above it, as Lonca <version>.

Restart to Update

While a downloaded update waits, Lonca says so in two places:

  • the menu bar icon carries a dot, and its menu has Restart to Update between Open Lonca and Quit Lonca;
  • Settings → Updates has a dot on its tab and the Restart to Update button.

Terminal stage agents run in tmux on Lonca’s own server, so their sessions keep running through a restart for an update and reappear where they were. Time Lonca was off does not count against a stage’s limit, and notes, held decisions and retry counts are kept. Jobs that were running stop with Lonca: the stage agent that asked for one is told, and a step Lonca ran itself starts again.

Prereleases

A version with a suffix, such as 6.0.0-rc.1, is a prerelease. An installed prerelease also updates to newer prereleases; a stable install never does.

What the first start after an update does

  1. The version mark. Lonca records the newest version that has opened the profile (see below).
  2. Config notes. If the release changes what config.yaml should say, the Configurator applies the notes, before Lonca reads the file.
  3. Migrations. Lonca brings its own state outside the config up to date, by itself where it can.
  4. Then the app starts as usual.

A release that needs neither starts straight away.

Config notes, applied for you

A release that changes what config.yaml should say ships a note: a new key, a rename, a new required placeholder, a default that moved. You are not asked for values the agent can work out from your config and your repositories, and no update edits your file behind your back.

At the first start after such an update, Lonca opens on Lonca was updated:

  • the version you came from and the one you run, and the notes of each release in between;
  • the Configurator’s Provider and Model, so a run whose CLI is gone can move to the other one;
  • the Configurator's run on the notes, which starts by itself as the screen opens, in the same stepped panel as in the app (from Working to Review and Done, its actions pinned at the bottom). It changes only what they ask, and shows its offer like any other: its report, the changes, the new file, then Apply. Run again starts it over, and Start starts it when no run is there;
  • Open the file, to look at it yourself, and Skip these changes, which starts Lonca without them and counts the notes as applied. While the file does not load, nothing is counted, and the next start offers them again.

This works whether or not your file still loads: the agent reads it loosely, so even an update that made the old file fail to load is repaired here. Every plan gets this. See The Configurator.

Migrations

What Lonca keeps outside the config (its database, its state files) is brought up to date by migration steps. They run by themselves. When one needs you, Lonca opens on Lonca was updated: A few things changed since the version you used. Lonca did what it could on its own; these need your answer.

  • An optional question can wait: Later. Its answer is then waiting under Settings → Updates → Changes from updates.
  • A required one holds Continue until it is answered.
  • A step that fails says This could not be done; the reason is in lonca.log. It stays pending, and Retry under Settings → Updates runs it again.
  • If Lonca cannot read what the update changed at all, the screen says so, with Retry and Continue; you are never stuck on it.

While a question or a failed step waits, the title bar shows a button such as 1 pending update that opens Settings → Updates. That tab says No changes from updates are waiting. once everything is done.

Updating to 12.1.0

The Configurator fixes one kind of run: line in place, and asks you nothing: a trap that stops its own processes without resetting its traps first, such as trap 'kill 0' EXIT INT TERM; a & b & wait, which loops for ever in zsh. It starts the trap's action with a reset of the same signals and keeps the rest of the line: trap 'trap - EXIT INT TERM; kill 0' EXIT INT TERM; a & b & wait (see Running the app).

Updating to 12.0.0

12.0.0 names the orchestrator's model the Workspace Lead, one per workspace, and calls the task leads and the Workspace Leads together the leads. The update takes care of what was there before, and asks you nothing:

  • The Configurator renames three keys in place, keeping their values and comments: orchestrator: to orchestration:, advisor: to workspace_lead:, and max_advisor_actions_per_stage to max_lead_actions_per_stage. The old names still load until 13.0; a block that has both an old and a new name does not. It may also rename the leads' agent to claude-lead and suggest prompts/workspace-lead.md for the Workspace Lead's instructions; an old prompt file it leaves is named in its report, for you to delete.
  • It writes env_files for a repository whose app loads its dotenv files from below the root (see Variables and secrets). It never turns a working sign-in of a repository into a named one.
  • The one lead of earlier releases becomes your workspace's lead when you have exactly one workspace, and its conversation goes on there. With more workspaces, its conversation is kept aside and each workspace's lead starts fresh (see The leads).
  • The leads can no longer be switched off. If they were off, Lonca sets How much the leads decide to Assistant, so every judgement call comes to you, and a notice says so. Raise it whenever you like.
  • A scenario's call that carries a sign-in's headers no longer follows a redirect to another origin: it gets the redirect back, to follow itself (see Per-repository sign-in).

Updating to 11.0.0

11.0.0 makes orchestration always on and retires the way of working without it. The update takes care of what was there before:

  • The Configurator (since 11.5.0, the Configurator) writes the orchestrator: block (orchestration: since 12.0.0), now required, from your repositories when the file has none, and removes the retired keys: prompt_buttons, system_prompt_file, the agents only your own sessions ran, and the E2E routine and its button text (e2e.prompt, e2e.prompt_file, e2e.label). A prompt file nothing reads any more is named in its report, for you to delete. Without Claude Code on this Mac it leaves the leads out and says so: every question then comes to you.
  • With Jira connected, it also writes orchestrator.jira.on_pause when your workflow has a hold status it can see (such as On Hold), so Pause… can offer to move the issue there. Otherwise it names the option in its report.
  • If you had orchestration switched off, Lonca starts with Pause all on, once, and a notice under Settings → Updates says so: nothing starts on its own until you press Resume all in the title bar.
  • An agent session of your own still running in a task is not killed. It keeps running, unlisted, and the task's notification names it (see Sessions and agents).
  • A task you had taken back is handed off again to continue where it stood, so the work you did meanwhile is picked up. One that cannot continue (its old session still runs, or what it would continue from changed) waits for you on its Flow tab, where the hand-off card says what to do.

No going back to an older release

Since 9.1.0, each start records the newest version that has opened the profile, in version-mark.json in the profile folder and in the database. An older Lonca does not open data a newer one has written, since that could damage your tasks, settings and decisions. It shows a message whose only button is Quit:

This Lonca (10.0.5) is older than the one that last used your profile (11.0.0).

Install Lonca 11.0.0 or later to continue. An older Lonca does not open data a newer one has written: it could damage your tasks, settings and decisions.

Profile: /Users/you/.config/lonca

The fix is always forward: install the version it names, or a later one, from cuukit.com. A release that turns out bad is fixed by a newer release, not by asking you to reinstall an older one.

What an update keeps

  • Your config, prompt files and sign-in scripts; a change the agent applies keeps the previous file in backups/.
  • The encrypted tokens and credentials, the license and the trial.
  • Tasks, worktrees, pipelines, decisions and their logs.
  • Your variables. An update that changes the database copies it first, to backups/lonca-before-<version>-<time>.db beside the config; the three newest copies are kept.
  • Running stage agents, in tmux.

Reinstalling the app keeps all of it too: it lives in the profile folder, not in the app. See Where data lives.

Installing by hand

You can always download the current release from cuukit.com and move it to Applications over the old one; the profile is kept. See Install and requirements.