Skip to content

Lemon 2026.11.10 (stable)

Choose a tag to compare

@github-actions github-actions released this 14 Nov 04:52
· 302 commits to main since this release

Added

  • Graceful restarts and updates: lemon stop, lemon restart, lemon update,
    system.stop/system.restart and service-manager stops now drain first.
    Telegram stops fetching (unfetched updates wait at Telegram), webhooks answer
    503 with Retry-After, active runs get 5 s to finish and are then paused at
    the next point where no tool is executing (forced, and marked uncertain,
    shortly before the 20 s deadline). Queued messages and paused runs are
    persisted and resubmitted after the restart: a paused run continues its
    session, and one cut off mid-tool is told the outcome is unknown so it checks
    state and asks before repeating anything. Chats see "Paused for a Lemon
    restart" instead of a failure.

  • Source checkouts: lemon reload hot-loads recompiled modules into the
    running runtime and refreshes idle sessions' tools; changes that need a
    restart are reported.

  • TUI: /new [key] [first prompt…] is now a shorthand for /session new.

  • omp auth broker: Lemon now lists every broker account for a broker-backed
    provider (omp's selection order; omp_account still pins one identity). When
    a provider rate-limits an account (429/quota), Lemon reports a catch-all
    rate-limit block to the broker (POST /v1/credential/:id/block) so omp and
    other broker clients avoid it too, and retries the same turn on the next
    broker account before falling back to another provider. Reporting is
    asynchronous and best-effort.

  • lemon_ai emits a [:lemon_ai, :model_call, :start | :stop | :exception]
    telemetry span for every admitted model call. The stop carries the duration,
    time to first content event, token usage, outcome and a bounded error
    category; streaming calls stop when the stream ends, not when dispatch
    returns. Rejected dispatches emit no span. See docs/telemetry.md.

Changed

  • The broker snapshot is kept current by a background long-poll
    (GET /v1/snapshot?wait=… with If-None-Match) instead of 15 second TTL
    polling, so rotations, revocations and blocks apply immediately. Failed
    long-polls fall back to the TTL cache; endpoints unused for about 10 minutes
    stop being polled.

  • Bash commands and MCP stdio servers are now stopped by process group
    (SIGTERM, a bounded grace period, then SIGKILL) instead of a pgrep child
    walk, so backgrounded children whose parent shell already exited no longer
    survive an abort, timeout or owner exit, and an MCP server that ignores stdin
    EOF is killed when its transport closes. Background process sessions also
    kill their process group when the session terminates while the command runs.

Fixed

  • Manual /compact and branch summaries no longer run their model call inside
    the session process. The session keeps serving status and abort while they
    run; abort cancels them with {:error, :aborted}, and conflicting operations
    report busy.
  • A native session whose agent process dies now reports a terminal error and
    stops, instead of staying registered with a dead agent. The next run resumes
    from the session journal.

Removed

  • LemonSim (lemon_sim, lemon_sim_ui) moved to its own repository,
    z80dev/lemon-sim, where it builds on
    the published lemon_core, lemon_agent and lemon_ai packages. Lemon no
    longer ships the sim_broadcast_platform release, the launchers' --sim-port
    flag, LEMON_SIM_UI_PORT or any LEMON_SIM_UI_* handling, and
    lemon_runtime_full no longer bundles the sim UI.