Repository navigation
Lemon 2026.11.10 (stable)
Added
-
Graceful restarts and updates:
lemon stop,lemon restart,lemon update,
system.stop/system.restartand service-manager stops now drain first.
Telegram stops fetching (unfetched updates wait at Telegram), webhooks answer
503 withRetry-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 reloadhot-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_accountstill 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_aiemits 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. Seedocs/telemetry.md.
Changed
-
The broker snapshot is kept current by a background long-poll
(GET /v1/snapshot?wait=…withIf-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 apgrepchild
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
/compactand 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 publishedlemon_core,lemon_agentandlemon_aipackages. Lemon no
longer ships thesim_broadcast_platformrelease, the launchers'--sim-port
flag,LEMON_SIM_UI_PORTor anyLEMON_SIM_UI_*handling, and
lemon_runtime_fullno longer bundles the sim UI.