Repository navigation
Lemon 2026.11.7 (stable)
·
380 commits
to main
since this release
Fixed
- OpenAI-compatible streams that report an upstream failure as a mid-stream
{"error": ...}chunk (OpenRouter, omp's auth gateway) now fail the response
instead of completing with empty output. - Lemon Bot's desktop iPhone pairing uses one explicit Codes match — Pair
iPhone action instead of a comparison toggle followed by a separate button. - Native Bot transcripts use measured scroll position to follow replies without
snapping readers away from history; loading older messages preserves the
message anchor, and keyboard resizing no longer creates a new-message badge. - Bot capability inspection no longer serializes slow probes in the worker's
mailbox. Concurrent reads share one fresh probe without retaining stale grants. - Messages confirmed to fail before runtime dispatch settle as rejected instead
of keeping Mac/iPhone composers trapped in “Checking whether your last message
was sent”; uncertain dispatched work is never automatically repeated. - JavaScript-only client and Bot test lanes no longer require an installed
Elixir toolchain; release-gate cleanup handles Tern lifecycle return values
explicitly. - The Bot web type checker uses the same SDK source alias as Vite, so copied
local SDK dependencies no longer lose their sibling contract imports. - Credential redaction protects bounded auth/authorization/OAuth URL fields again,
preventing embedded URL credentials from leaking through execution approvals
while preserving validated, usable OAuth links and ordinary parser token text. - Lemon Bot marks interrupted, never-dispatched messages “Not sent” and permits explicit resend; uncertain dispatched messages remain fenced.
- Apple push registration accepts bounded variable-length hexadecimal device tokens.
- Connect iPhone shows a copyable single-use pairing link alongside its QR, with the same expiry and usage state.
- Product release preparation now works with stock macOS/BSD sed and restores
every changed version file and the changelog if any preparation step fails. - The Tern palette's Focus existing session finds Lemon panes by program,
not only by the oldLemon ·title prefix. - Kimi Code omp authentication fails closed at the model-request boundary,
normalizes auth-source spelling consistently for status and logout, and
serializes access-token cache refreshes so stale fetches cannot replace them. - Every Kimi Code request now sends one consistent Kimi CLI fingerprint (the
catalog's staleKimiCLI/1.0user agent is gone), and the device id is
persisted in~/.lemon/kimi-device-idso a host rename no longer changes it.
lemon doctor --livechecks Kimi Code with bearer authentication and the
fingerprint. A refresh that loses to another Lemon process adopts that
process's fresh token instead of failing.
- Product release preparation now works with stock macOS/BSD sed and restores
every changed version file and the changelog if any preparation step fails. - Lemon Bot's Mac Connect iPhone window explains missing HTTPS setup, links
to the routing/allowlist guide and observes updated advertised addresses without
an app restart. Debug-only local pairing is limited to the iOS Simulator and
the browser's exact loopback hosts; Release and physical-device checks stay strict. - Apple onboarding response decoding no longer inherits main-actor isolation
across the HTTP transport boundary. - Lemon Bot can finish interrupted creation/import in place, showing the failed
step and checking owning receipts before continuing. Existing Bots can update
their callback/tool address afterLEMON_BOT_PUBLIC_URLchanges, without
replacing their identity or conversation. Rejected callback origins name the
controller allowlist to fix; interrupted deletions offer a receipt-checked
Delete action again. Recovery actions survive sync/overview refreshes, imported
resources retain their owning reservations, and address migration refreshes
the matching tool permissions under one exclusive lifecycle owner. Resumed
imports preserve disabled-skill selections, including when an older import
stopped between installation and disabling the copied skill. - The Tern palette's Focus existing session finds Lemon panes by program,
not only by the oldLemon ·title prefix. - Kimi Code omp authentication fails closed at the model-request boundary,
normalizes auth-source spelling consistently for status and logout, and
serializes access-token cache refreshes so stale fetches cannot replace them. - Every Kimi Code request now sends one consistent Kimi CLI fingerprint (the
catalog's staleKimiCLI/1.0user agent is gone), and the device id is
persisted in~/.lemon/kimi-device-idso a host rename no longer changes it.
lemon doctor --livechecks Kimi Code with bearer authentication and the
fingerprint. A refresh that loses to another Lemon process adopts that
process's fresh token instead of failing.
Added
- Lemon integrates with omp's auth broker and auth gateway:
auth_source = "omp_broker"reads any provider's credential from
omp auth-broker serve(refresh stays with the broker; optional
omp_provider/omp_account), and theomp_gatewayprovider routes models
throughomp auth-gateway servewith per-model Anthropic Messages, Responses
or Chat Completions wires. Readiness, doctor and provider status understand
both. See configuration. - Lemon Bot HTTPS setup (#530).
lemon bot https enable --tailscalesets
up private tailnet HTTPS, or--urlregisters an existing HTTPS reverse proxy.
statusreports readiness;disableremoves only tool-owned configuration
and routes while preserving other origins. Browser setup offers HTTPS as an
explicit opt-in and keeps local-only access by default.
Managed HTTPS refuses source startup and remote-controller configurations
rather than checking the wrong runtime. It owns only its exact private MCP
approval, restores adopted public URLs, retains pending receipts after failed
reconfiguration, and preserves existing env-file permissions.
Backend configuration changes force the existing service restart path and
verification observes its loaded approval, not only the config file. Planning
shares the service installer's backend projection while retaining caller XDG
paths and callback allowlists. Credential-port checks use the saved endpoint
before the installer's desired-port override and fail before mutation.
Installed and desired controller endpoints must match; HTTPS setup never
changes the controller as a side effect of reinstalling the backend. - Lemon Bot backend tests and the web build/tests now gate CI and run in the
changed-file/premerge lane. Web tests run in separate processes so module
mocks cannot leak between suites. - lemon.food home page comes alive. The hero is now an animated Lemon Bot
chat that plays three example conversations (fixing a flaky test behind a
Terminal approval card, recalling a decision and setting a reminder, and
fanning a review out to helpers). Visitors can press Allow or Deny
themselves, switch or pause examples, and squeeze the mascot, which now
reacts to the conversation from behind a turning lemon slice. Sections rise
in on scroll and the terminal, browser and chat mocks play out. Reduced-motion
visitors see each conversation's final state without animation. - Native follow-up admission exposes an admin-only reconciliation receipt with a
token SHA-256 digest, never the token or secret reference. Callback rejections
distinguish malformed URLs, HTTPS requirements and non-allowlisted origins.
LEMON_NATIVE_FOLLOWUP_ALLOWED_ORIGINSis declared in the environment registry;
lemon doctorchecks both admission allowlists forLEMON_BOT_PUBLIC_URL. - lemon.food home page comes alive. The hero is now an animated copy of the
Lemon Bot web app that plays three example conversations (fixing a flaky test
behind a Terminal approval card, recalling a decision and setting a reminder,
and fanning a review out to helpers). Visitors can press Allow or Deny
themselves, switch or pause examples, and squeeze the mascot, which reacts to
the conversation from behind a turning lemon slice. The "doors" section now
shows faithful miniatures of the real terminal UI and the Mac and iPhone apps.
Reduced-motion visitors see final states without animation, and the top
navigation collapses to its menu button wherever the full menu would overflow. - Tern media previews. In a Tern pane, a whole-file
readof an image,
SVG, PDF, audio/video file or 3D model, and a saved browser screenshot, shows
the file in its tool card through Tern's media viewer, as omp's does. The
model-facing result is unchanged; partial reads and remote-only files keep the
textual card. - Tern pane cards and status messages. In Tern the TUI title is a card
(🍋 LEMON: <session>, or a session's own card-form name such as
🧪 FLAKY: Fix flaky tests), which Tern heads parked panes with. Program
status (OSC 7501) for approvals, questions and failures carries a one-line
summary, so Tern's inbox and banners say what needs you. lemon tern install --agent-blockmakes Tern's New agent block open
Lemon's TUI by setting Tern'sagent_command. Without the flag an existing
agent command is left unchanged.- Tern browser. Browser tools of a TUI run in a Tern pane (local daemon)
drive Tern's native browser picture-in-picture over that pane and can adopt
the user's open browser blocks, releasing rather than closing them. An
automatically chosen Tern browser falls back to the next provider when Tern
cannot show one; explicitprovider = "tern"fails closed. Opt out with
runtime.tools.browser.tern = falseorLEMON_BROWSER_TERN=0.lemon setup
in a Tern pane opens consented sign-in URLs as a Tern browser block beside it. - Kimi Code can reuse an omp-managed login with
auth_source = "omp"or
lemon model --provider kimi-code --auth omp. Lemon resolves access tokens
throughomp token kimi-codewithout copying refresh credentials, storing
tokens, or falling back to ambient API keys. - Kimi Code requests match omp's: adaptive thinking with effort for the K3 and
kimi-for-codingmodels, the model's full output budget by default, and a
per-session prompt-cache identity.lemon model kimi_coding --statusshows
the subscription quota (5-hour window and month).
Changed
- The TUI uses pi-tui 18.18.9 (native buttons, path-based syntax highlighting
in Tern) and source development now needs Bun 1.4.4+.