All notable changes to this project will be documented in this file.
- Claude Fable 5.2 and Mythos 5.2 are priced at their own rates. Both are $8 input / $40 output with a $0.20 cache read, and $16 / $80 in fast mode. Until now they matched the Fable 5 / Mythos 5 entry and were costed at $10 / $50 with a $1.00 cache read — five times the real cache rate, on the line that is most of an agent session's tokens.
- Gemini 4 Carbon is priced at the same promotional $2 / $10 with a $0.10 cache read as Gemini 4 Argon, which also doubles on December 1.
-
GPT-6.1 Terra, Gemini 4 Argon and Composer 2.5 are priced. GPT-6.1 Terra is $1 input / $5 output with a $0.05 cache read, the same 0.05x cache rate as GPT-6.1 Sol. Gemini 4 Argon is $2 / $10 with a $0.10 cache read through November 30; Google doubles every rate on December 1, and the price list will change with it. Until now both were costed at the $5 / $15 rate used for unknown models. Composer 2.5 has the same list price as Composer 2 and is now costed at the same calibrated rate; its name did not match the Composer 2 entry, so it was falling to the generic Cursor rate, five times higher.
-
More specialist models are priced: GPT-6 Cyber ($20 / $100), GPT-6 Rosalind ($15 / $75) and GPT Rosalind Discovery ($5 / $25), the last two available only through a trusted-access program, and Gemini Omni 1.2 Flash ($1.50 / $9 for text).
- The DataGrout certificate renews before it expires. The device certificate lasts 30 days and is meant to be renewed in its last week, but the renewal authenticated with the certificate alone, and client certificates do not reach the gateway through the CDN in front of it — so every renewal was refused and each device ran to expiry, showing "DataGrout session expired". Renewal now sends the device's sync token as well, the same credential the recovery path after expiry already uses.
- Claude Haiku 5.5 is priced. It is priced by prompt length: $0.10 input / $0.50 output with a $0.01 cache read up to 100,000 prompt tokens, and five times that above. The table has no prompt-length tiers yet, so it carries the short-prompt rates and a request with a longer prompt is understated. Until now Haiku 5.5 traffic fell to a fuzzy match on an older Haiku and was costed at roughly ten times its price.
- Sonnet 5.5 cache reads cost half what they did. Sonnet 5.5 reads cache at 0.05x its base input, like Opus 5.5, not the standard 0.1x — $0.10 per million rather than $0.20. Cache reads are most of an agent session's tokens, so this was overstating Sonnet 5.5 spend by around a quarter. Verified against the vendor pricing pages on 2026-10-13.
- Claude Sonnet 5.5 and GPT-6.1 Sol are priced, with the specialist models alongside. Sonnet 5.5 holds Sonnet 5's $2/$10 and the standard cache read. GPT-6.1 Sol matches GPT-6 Sol at $2/$10 but reads cache at 0.05x rather than 0.1x — the two must never be matched onto each other, since one would then bill its cache line at half or double. Also priced: the GPT-5.6 and GPT-5.5 cyber models, GPT Rosalind Research (trusted access only), Gemini Omni Flash Preview and the Gemini 3.1 Pro custom-tools preview. The Gemini live models are left out deliberately: they are priced per audio token or per minute, and a text-only rate would misprice their real traffic. Verified against the vendor pricing pages on 2026-09-29.
- A downloaded price list can no longer remove a model the app already knows. A list used to replace the built-in table outright, and the cached list is whatever was last downloaded — usually older than the app reading it. So a new release ignored its own newer prices on every existing install, and a model the list had not caught up with fell back to a guessed rate. Lists are now laid over the built-in table: a stale one can only fail to add a model, while a newer one still adds models and corrects rates.
- The price list refreshes while the daemon runs. It was fetched once at startup and applied only on the next start, so a daemon left running kept pricing newly released models by fuzzy match for as long as nobody restarted it — weeks, in practice. It is now fetched shortly after startup and every six hours (thirty minutes after a failure) and applied straight away. Costs already recorded keep the rates in force when they happened. A user override at
~/.lumen/pricing.jsonstill wins.
- Lumen says when nothing is getting through, instead of holding the machine. The system proxy points every client on the computer at Lumen, and a watchdog re-applied that setting every twenty seconds without ever asking whether a request could actually complete. When the upstream leg broke, browsers and agents broke with it — and the loop undid every attempt to recover: clearing the proxy by hand did not survive the next tick, and restarting Lumen only re-established the same broken state, so the failure looked permanent and unexplained. The daemon now counts what the proxy achieves. A sustained run of failures with nothing getting through turns the menu-bar icon amber and raises a banner naming the error, with a button that takes Lumen out of the path; while it holds, the watchdog stops re-applying the proxy. Any single success clears it, because the question is whether bytes move rather than whether something failed. An existing proxy setting is left in place rather than dropped automatically — silently ending capture is its own surprise, and the menu bar stays reachable even when nothing loads. The banner also says that applications already open keep the settings they launched with, because nothing outside a process can change them.
- GPT-6 Astra, Sol and Luna, Gemini 3.8 Flash, and Claude Opus 5.5 are priced. Each was being costed by the $5/$15 unknown-model fallback, which neither invents spend nor erases it but is wrong in both directions for a frontier model: it understated Astra ($10/$50) on both legs while overstating Luna ($0.10/$0.50) twentyfold. Opus 5.5 reads cache at 0.05x its base input and Gemini 3.8 Flash is on promotional rates that double on 2027-01-01. Verified against the vendor pricing pages.
- Connecting to DataGrout no longer starts with finding a UUID. The setup asked for a
/servers/UUID/mcpURL before it would do anything, which put the hardest step first — and the answer was already in the token the flow ends with. Lumen now authorizes against the gateway's Quick Connect resource, so the browser lists the account's servers and the person picks one there. The field stays, optional, for a device already enrolled against a per-server URL and for a self-hosted gateway; supplying one behaves exactly as before.
- The proxy stopped altering the requests it forwards. Redirects were followed, so a site redirecting from http to https was served to the client under the original URL — rendering as a 200 with the address bar still on http and still marked insecure, and with links, cookies and mixed-content rules resolving against the wrong origin. A proxy hands the 3xx back instead. Any method the forwarder did not name became GET, so a preflight went upstream as a GET and a HEAD came back with a body, succeeding while breaking the page. Hop-by-hop headers were passed through in both directions, which an origin may reject outright and which described a body this proxy re-frames. The connect phase is now bounded; the whole request deliberately is not, because streamed completions legitimately stay open for minutes.
- Proxy errors say what actually failed. The error page showed only the request error's summary, which names the URL and drops the cause — so a name that does not resolve, a refused connection, a TLS failure and a timeout all read as one identical sentence, and a dead link was indistinguishable from Lumen being at fault. The cause chain is now shown, and the page says plainly that the upstream request failed rather than that anything was refused.
- Fast-mode cache reads follow the model rather than a fixed multiplier. Fast rates are derived from the base rate, and the cache-read multiplier was a constant 0.1x. Opus 5.5 reads at 0.05x, so a fast Opus 5.5 cache read priced at twice its real rate, on the line that is most of an agent session's tokens.
- Stopping the Windows daemon takes the proxy pointers with it. The proxy variables are persisted at user scope because a packaged client cannot be handed a custom environment, which meant they outlived the daemon: stopping Lumen left every environment-respecting application on the account aimed at a port with nothing behind it, surviving reboots and uninstalls until someone knew to run
-Cleanup.run-stop.batnow clears them, matching on the value so a proxy that does not point at Lumen is left alone. The launcher is also kept pure ASCII, which Windows PowerShell 5.1 requires to parse it at all.
- Lumen now says when a trusted certificate has gone unused. Removing the CA only helps someone who thinks to press the button, and a user who stops using proxy mode never will — which is precisely how a local root outlives its purpose in a keychain. The daemon records when it last captured a call, so once a trusted CA has seen nothing for ninety days the certificate panel says so and points at the removal. A CA that was trusted and never used counts too: with no capture to measure from, the window runs from whichever is later, the certificate's creation or the point tracking began. That distinction is what keeps an upgrade honest — measuring from the certificate alone would have told every existing user with an older root that nothing had been captured in years, on first launch, however heavily they use it. The threshold lives in the daemon and is reported to the app, so there is no second copy of the number to drift, and an app talking to an older daemon that sends nothing simply shows no advisory. The timestamp is written to
~/.lumen/activity.jsonat most once every fifteen minutes, so an intercepted call does not mean a disk write.
- Removing Lumen no longer leaves its CA trusted indefinitely. Trust set with
add-trusted-certoutlives the application, and nothing in the app could take it back out — so deleting Lumen left a ten-year root in the login keychain, and the Windows script had reverted its own trust on-Cleanupall along while macOS had no equivalent at all. Settings → Certificate → Remove Certificate now drops the keychain trust setting and deletes~/.lumen/ca.pemandca-key.pem. It deletes in a loop, because each call removes one matching certificate and the same CA can be trusted more than once. The README had also gone stale: it still described the oldsudoinstall into the System keychain, from before the trust step moved to the login keychain to drop the administrator prompt during setup. It documents the login keychain the app actually uses now — narrower scope, no admin rights — and how to remove the certificate by hand. - Quitting Lumen no longer leaves the machine without internet. The system-proxy teardown cleared only whichever network service happened to be primary at the time, so setting the proxy on Wi-Fi, plugging in ethernet and quitting left Wi-Fi aimed at a port nothing was listening on. The setting lives in
preferences.plistand survives a reboot, while Lumen was not a login item — so on any boot where nobody launched it by hand, every app honouring the system proxy pointed into a closed local port, and it recurred every boot until the user found the setting themselves. Tethering to a hotspot did not help, because a hotspot rides the same "Wi-Fi" service. Lumen now clears its proxy from every service, registers as a login item for as long as it manages one, and reconciles onto the primary service every twenty seconds. Ownership is matched on127.0.0.1and its own port, so a proxy you configured yourself on another port survives untouched. - The system proxy follows the route the machine actually takes. Interface selection returned the first service holding any IP address, which is a different question from which service macOS routes through. With Wi-Fi associated and a USB ethernet dongle plugged in, the proxy landed on whichever sorted first while every request left unproxied — capture stopping silently mid-session. The primary service now comes from
scutil, which is what applications consult. - A daemon that will not start now says why. Its output went to
/dev/nulland it restarted every two seconds forever, so the app showed "not running", Restart appeared to do nothing, and no record of the failure existed anywhere on the machine. Output is kept at~/.lumen/daemon.log(written by the daemon itself, so Windows gets one too), the reason appears in the alert, and repeated failures back off and stop after four attempts. Restart clears that budget, so an explicit retry is a real one. - Ctrl+C no longer kills Claude Desktop. Launching a GUI app as a child process put it in the terminal's foreground process group, so stopping the proxy took the user's editor with it — and a second Ctrl+C was needed to stop the thing they were aiming at. Launches now go through LaunchServices, so the launched app is not our descendant.
- The UI no longer deadlocks on a subprocess. Reading a command's output only after waiting for it to exit deadlocks the moment that command outproduces the ~64KB pipe buffer, which
networksetupdoes on a machine with VPN adapters. All copies of that pattern now drain the pipe while the child runs, under a timeout. - An expired certificate no longer blocks the browser. Leaf certificates were served from cache past their own expiry, and CA staleness was judged from the file's modification time rather than the certificate's
notAfter. Because macOS trust is per-certificate, regenerating alone could not unstick anyone either — a fresh CA is untrusted until approved. The proxy now degrades to a plain tunnel when its CA is unusable, so requests keep working untracked while the certificate is fixed. - The CA outlives the user's patience for approving it. Validity was 365 days, which scheduled a forced re-approval for every user once a year. It is now ten years.
- Fast mode is no longer billed at half.
speed: "fast"on Opus 5 and Opus 4.8 costs $10/$50 against their standard $5/$25, and the API reports the same model id either way. The request's speed is now read and carried into the cost, with the prompt-cache multipliers stacking on the fast base rather than the standard one — cache reads are most of an agent session's tokens, so correcting only the base rate would have left most of the error in place.
- Windows: Claude Desktop (MSIX) support + one-click launchers. The Windows launcher now detects and drives the packaged (MSIX) Claude Desktop that
claude.ai/downloadships today — it trusts Lumen's CA in the Windows certificate store (Chromium validates there, not viaNODE_EXTRA_CA_CERTS), persists the proxy env at user scope, and launches viaInvoke-CommandInDesktopPackage. It also supports Claude Code (the CLI, via the relay), and auto-detects whichever client is installed (run.batwith no args). Per-client double-click shims are included:run-code.bat,run-claude.bat,run-cursor.bat. run.bat -Stop/run-stop.bat— stop the background daemon cleanly instead of ending it in Task Manager.run.bat -Cleanup(and-NoTrustCA) — revert the CA trust + persisted proxy env, or skip the CA import entirely.- Client OS/arch in usage sync — each synced event now reports the daemon host's
platform(windows/macos/linux) andarch, for origin attribution on the dashboard. - Cache savings in usage sync — each synced event now includes
cache_savings_usd, the savings figure computed at capture time, so a receiver can store it as an immutable snapshot instead of re-deriving it from a pricing table that changes over time. - Pricing: Claude Opus 5 (
$5/$25, same tier as Opus 4.8) and Mythos 5, so their costs are tracked instead of falling back to defaults.
- Claude Desktop no longer triggers an infinite Cloudflare CAPTCHA.
claude.aianda-api.anthropic.comare no longer MITM-intercepted — they sit behind Cloudflare bot management, and intercepting them broke Claude Desktop with an unsolvable CAPTCHA loop. They carry no per-token usage anyway; the Desktop "Code" tab and Claude Code useapi.anthropic.com, which is still captured.
- Up-to-date model pricing. Adds the newest families across all three providers so their costs are tracked instead of falling back to defaults:
- OpenAI — the GPT-5.6 family (
gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna), plusgpt-5.5/-pro,gpt-5.4(-mini/-nano/-pro),gpt-5.3-codex,gpt-5.1-codex-mini. - Anthropic —
claude-fable-5andclaude-sonnet-5(standard rate), alongside the existing Opus 4.8 / Sonnet 4.6 / Haiku 4.5 lines. - Google — the Gemini 3 family (
gemini-3.1-pro-preview,gemini-3.6-flash,gemini-3.5-flash,gemini-3.5-flash-lite,gemini-3.1-flash-lite) andgemini-2.5-flash-lite. - Fixes a stale
gemini-2.5-flashrate that was tracked at$0.15/$0.60instead of the correct$0.30/$2.50(costs for it were under-reported), and adds cached-input rates to the Gemini 2.5/3 entries.
- OpenAI — the GPT-5.6 family (
- One-command Windows launcher (
scripts/lumen.ps1+run.bat, with a README). It starts the daemon, verifies the proxy is actually listening, and launches Claude Desktop or Cursor already wired through Lumen with the CA trusted — and if the proxy didn't come up, it says so plainly instead of the failure looking exactly like "Lumen is off." Abuild_exe.shhelper is included for producing the Windows binary.
localhostnow works on Windows. The API and proxy also listen on IPv6 loopback (::1) now. Windows resolveslocalhostto::1first, so clients, relay base URLs, and the dashboard's ownfetch()calls that usedlocalhostwere hitting[::1]:port— where nothing was listening — and failing with a bare "Failed to fetch" (or silently capturing no traffic). Both listeners are loopback-only, so there's no wider exposure.- A proxy that can't start no longer looks like "Lumen is off." If the proxy fails to bind its port (on Windows, usually a reserved/excluded port range that fails with
WSAEACCESeven when nothing is using the port), the daemon now logs an unmistakable diagnosis with the exact commands to check, and reportsrunning: falseon/healthso the app and launcher can tell it went down. - Claude Desktop launches from either install location — the standalone installer and the Microsoft Store / winget build — instead of assuming one hardcoded path.
- No more connection stalls during the cold-start "cert storm." When the system proxy is enabled, every host reroutes through the freshly-started MITM at once. TLS certificate generation (CPU-bound crypto) is now offloaded to a blocking thread pool, and the CA signing certificate is built once and reused instead of being rebuilt on every leaf — so the async runtime no longer starves and connections don't hang on startup.
- DataGrout sync sessions now stay alive automatically. Previously the secure session credential expired after ~30 days and sync would quietly stop with no indication. Now the daemon:
- renews the session before it expires while running normally, so a continuously-running daemon never lapses;
- recovers on its own if the session has already expired (e.g. the app was closed for a while) — restoring the secure connection with no sign-in required;
- keeps syncing in a reduced mode if automatic recovery isn't possible, and prompts you to reconnect rather than failing silently.
- DataGrout session state is now visible in the app (it previously showed "Connected" even after the session had lapsed):
- Settings → DataGrout is three-state — Connected, Session expired (with a one-tap Reconnect), or Not connected — and shows when the session expires.
- Monitor tab banner appears when the session has expired, with a Reconnect shortcut.
- Launch screen no longer implies all-clear when the session has lapsed — it tells you to reconnect.
- Version is now visible, so it's easy to answer "what version are you on?":
- Right-click the menu bar icon → a header line shows the app version (and the daemon version too, if they differ).
- Settings → About lists both App and Core (daemon) versions, with a note if they don't match.
- The web dashboard footer shows the running version.
- No more repeated sync-error log spam. A persistent sync failure now logs once and then only occasionally, instead of every 30 seconds.
- Added certificate-expiry awareness and automatic renewal/recovery to the DataGrout sync client. New
x509-parserdependency to read certificate validity windows (rcgenonly generates certs, it can't parse them).
This release is a cross-platform / enterprise readiness pass on top of the pricing accuracy work in 0.1.5. The headline shifts are universal (Intel + Apple Silicon) DMG builds, a configurable rustls crypto backend so Lumen can be deployed into FIPS environments or cross-compiled to Windows without C-toolchain pain, and a substantial UX pass driven by feedback from real non-technical users.
- Default crypto backend is now
ring(wasaws-lc-rs). Pure Rust + assembly, no C/CMake at build time, cross-compiles cleanly to Windows and other constrained targets. Runtime-equivalent toaws-lc-rsfor everythinglumen-coredoes (TLS MITM, outbound HTTPS via reqwest, self-signed CA generation). The two backends are exposed as mutually-exclusive Cargo features:crypto-ring(default) — laptop / Apple Silicon / Intel / Windows cross-buildcrypto-aws-lc— FIPS 140-3 environments, post-quantum hybrid KEMs, AWS-aligned deployments- Breaking change for source builds:
cargo buildpreviously linkedaws-lc-rs; it now linksring. Rebuild with--no-default-features --features crypto-aws-lcto keep the prior backend.
rustls,tokio-rustls,rcgen, andreqwestswitched todefault-features = falseso the crypto backend choice is fully controlled bylumen-core's[features]block. Verified viacargo tree: each backend's dep tree contains only its own crypto crates with zero contamination from the other.- DMG build defaults to universal (Intel + Apple Silicon).
scripts/build_dmg.shnow invokescargo build --target x86_64-apple-darwinand--target aarch64-apple-darwinthenlipos them into a fat binary; SwiftPM uses--arch x86_64 --arch arm64. Single-arch builds remain available viaARCHS=arm64 ./scripts/build_dmg.shfor faster iteration. The script logslipo -archsoutput for both bundled binaries after assembly so a stray single-arch build can't ship to Intel users undetected.
- Web dashboard now has management UI, not just live stats. Non-Mac users can now configure Lumen end-to-end from a browser:
- Session controls — "New Lap" and "Clear Session" buttons at the top of the page
- Quick Setup — copy-to-clipboard relay URLs derived from current routes + proxy port (
http://localhost:9090/openai, etc.) - Monitored Hosts — list / add / delete the HTTPS hosts whose traffic Lumen intercepts
- Relay Routes — list / add / delete the relay prefix → upstream mappings
- Certificate — show CA subject + path, one-click download of
ca.pem, and platform-specific trust-install commands (macOS / Linux / Windows tabs, defaulted by User-Agent detection) - Launch Your Client — per-platform copy-paste commands for Claude Code, OpenCode, Cursor, and Claude Desktop. macOS / Linux / Windows tabs auto-selected by User-Agent; commands use the live proxy port + CA path (no stale localhost:9090 references after port changes). Deliberately not a one-click launcher: spawning processes from a browser request would expand the post-compromise blast radius (an attacker with token access could launch GUI clients pointed at their own proxy or trust-store overrides) for the modest benefit of saving a paste. The command rows give the same effective outcome — copy, paste into a terminal, run — with zero new attack surface.
- DataGrout — full connect / disconnect flow. Paste the DG server URL → daemon initiates DCR + PKCE registration → dashboard opens the auth tab → daemon's existing
/dg/oauth/callbackhandler completes the exchange → dashboard polls/dg/dcr/statusand flips to the connected view automatically. Same endpoints the macOS menu app already calls; nothing about the OAuth flow was Mac-specific. ADisconnectbutton callsDELETE /dg/identityto clear the local identity files in~/.conduit/. - UI lives in a collapsible "Settings & Configuration" panel below the existing stats grid + event feed so the live-stats view stays uncluttered for users who just want to monitor.
/ca/pemis now auth-exempt (was: gated like the rest of the JSON API). The endpoint serves the public CA certificate — the same bytes anyone with the proxy intercepted would see — so the auth gate was theatre. Making it exempt lets a plain<a download>from the dashboard work without JS gymnastics. Private key material lives in a separate file (ca.key.pem) and remains protected; nothing about its handling changed.- Windows daemon support.
lumen-corenow runs natively on Windows. The home-directory resolution falls back from$HOMEto$USERPROFILE, so state files land underC:\Users\<you>\.lumen\without configuration. Unix-only file-permission calls (chmod 0600on the API token + DG identity files) are now#[cfg(unix)]-gated; on Windows the files inherit the user-profile directory's ACL, which is already access-controlled by the OS. Verified by cross-compiling tox86_64-pc-windows-gnufrom a Mac (warning-free) and by a new Windows job in CI that runs the full test suite on every PR. Platform-specific privileged features (--transparentpf-based capture,passivefeature) are compiled out on Windows. claude-opus-4-8($5/$25, cache read $0.50, cache write $6.25) added to both compiled-in defaults andpricing.json, with the dated aliasclaude-opus-4-8-20260528.- Right-click context menu on the status bar icon. Surfaces a spending summary (
Lap: $x.xxxx · Total: $x.xx), New Lap, tab navigation (Monitor / Settings), a Launch submenu (Claude Code, Claude Desktop, Cursor, OpenCode), Open Dashboard in Browser, a read-only TLS trust indicator, and Quit. Addresses training feedback that Quit and lap creation were hard to find. - Persistent popover footer with always-visible Open Dashboard and Quit buttons. The footer sits below the scrolling tab content so global actions are one click away from any tab — no need to flip back to Monitor to quit, or hunt through Settings to find the dashboard link. When the active tab is Monitor, the footer renders a second row above containing Lap and Clear (which were previously buried at the bottom of the Monitor scroll view, awkwardly adjacent to the footer's other buttons). The lap-naming text field also lives in this footer region so committing a lap doesn't push the footer off-screen. Other tabs see just the two-button global row.
/→/dashboardredirect on the API port. Users who type:9091in a browser now land on the dashboard instead of getting an auth-gated response. Defangs the misdiagnosed-404 reports from initial DMG users.- Notification.Name extensions (
lumenShowTab,lumenNavigateToMonitor) so the right-click menu, the launchers, and any future surface can drive tab navigation through a single observable channel. - Click-outside dismisses the popover via a global
NSEventmonitor in addition to the existing.transientbehavior.NSApp.activate(ignoringOtherApps: true)was removed from the open path — that call was preventing transient dismiss from firing reliably. $prefix on cost gauges.ArcGaugegained aprefixparameter; Lap Cost and Total gauges now show$0.04instead of0.04 USD. Addressed feedback that non-technical users scanning the gauges didn't read "USD" as currency at a glance.- Live CA trust status in Settings.
checkCATrust()now re-runs every 8 s, so the badge updates within seconds of any Keychain change rather than only on popover re-open. - Auto-navigate to the Monitor tab after any Launch action. All four launcher functions now post
lumenNavigateToMonitoronce the spawn completes, so users see the live event feed start ticking without needing to manually switch tabs.
- Integration tests couldn't find the daemon on Windows CI.
tests/lifecycle.rs::find_binary()hardcoded the binary name aslumen-coreand panicked when Windows producedlumen-core.exe. Fixed by appendingstd::env::consts::EXE_SUFFIX(which is""on Unix,".exe"on Windows) to every candidate path — works uniformly on all platforms. Also gated the test-onlyDaemonGuard::pid()method with#[cfg(unix)]since its only caller (test_sigterm_handling) was already Unix-only, eliminating adead_codewarning on the Windows runner. - First click in the popover required a "wake up" tap. With
LSUIElement = true(accessory app) and.transientpopover behavior (noNSApp.activate), AppKit didn't auto-promote the popover to key window on show — so the first click on a tab was consumed by focus-grab instead of hitting the button. Fixed by callingpopover.contentViewController?.view.window?.makeKey()immediately afterpopover.show(...). We deliberately don't usemakeKeyAndOrderFrontorNSApp.activatehere because either would yank system focus from the user's foreground app;makeKey()alone gives the popover the key-window status it needs without stealing focus. - Tab buttons needed pixel-precise aim. Under
.buttonStyle(.plain), SwiftUI only treats the rendered text glyph as hit-testable — clicks on the padded background area registered as misses. Added.contentShape(Rectangle())to all.plain-styled action buttons (tab buttons in the tab bar, Lap, Clear, footer buttons) so the full rendered frame is clickable. - UI not updating after Restart button — the polling
Timerwas scheduled in.defaultrunloop mode, which NSPopover can suspend while open. As a result, between clicking "Restart" and closing/reopening the popover, no polls fired and the "Daemon not running" banner stayed up. Fixed by scheduling the timer viaRunLoop.main.add(timer, forMode: .common)so it ticks regardless of popover state. Combined with explicitpollNow()triggers at +0.5 s and +1.5 s after Restart, the banner now disappears within ~1 s of the daemon coming up. - Polling timer was hammering the OS scheduler because manual
Timer(timeInterval:)construction leavestoleranceat 0, defeating wakeup coalescing. Settolerance = 0.15on the main poll timer (and1.0on the slower CA-trust refresh timer); the user-visible polling cadence is unchanged but battery wakeups are now coalesceable. - CA info never refreshed after first fetch.
poll()hadif caInfo == nil { await fetchCAInfo() }, so cert details were captured once at startup and never re-fetched. Removed the guard — CA info now refreshes on every tick, which matters when a user regenerates the CA or the daemon swaps to a different cert. - CA trust check blocked the main thread when opening the right-click menu. The status-bar context menu previously called
security dump-trust-settingssynchronously while building the menu, hitching the UI for 100–300 ms on every open. Moved trust checking intoAPIClient.refreshCATrust()which runs on a background queue every ~5 s and updates a publishedcaTrustedproperty; menu and Settings view read the cached value instantly. - DMG build broken on macOS 15+ —
hdiutil attach's tab-separated output format changed in Sequoia, causingawk '{print $NF}'to return1instead of the mount path. Replaced with an explicit-mountpointflag so we no longer parse hdiutil's output at all. - DMG build script silently swallowed Swift compile failures — the
swift build … | grep -E 'error:|warning:|Build complete'filter was fragile: multi-arch (XCBuild) builds emit "Build succeeded" instead of "Build complete", so underpipefailthe grep returned 1 and aborted the script with a misleadingly clean exit, leaving no DMG and no error message. Removed the grep filter (full output streams through) and added an explicit check that fails loudly if the expected built binary isn't found. - Bundle version drift.
Info.plist'sCFBundleShortVersionStringhad fallen behindCargo.toml; both are now driven from the same release tag (0.2.0).
LaunchService.swiftextracted — the four LLM-client launch flows (Claude Code, OpenCode, Cursor, Claude Desktop) previously existed in two parallel implementations: one inLaunchersView.swift(the Launch tab), one as@objchandlers inLumenApp.swift(the right-click menu). They have now been unified into a singleLumenLauncherenum +LauncherSupporthelpers that both call sites use. Eliminates the drift risk where a fix in one path would silently not propagate to the other.- Tab navigation consolidated to a single notification. Removed the redundant
lumenNavigateToMonitornotification; all callers now postlumenShowTabwith the targetAppTab.rawValue. Simpler observation surface, no behavioral difference. install_crypto_provider()extracted frommainand madepubso test setup can call it viastd::sync::Once. Single chokepoint per test module (proxy::tests,tls::tests,tests/lifecycle.rs) — no per-test boilerplate, no risk of provider-not-installed panics in CI.compile_error!guard if neithercrypto-ringnorcrypto-aws-lcis enabled. Prevents the "compiles, then panics on first TLS handshake" failure mode that an over-zealous--no-default-featurescould otherwise produce.
- All 91 unit tests + 13 integration tests pass under both
crypto-ring(default) andcrypto-aws-lcfeature configurations on macOS, and undercrypto-ringon Windows. - CI now runs a matrix across
(macos-latest × crypto-ring, macos-latest × crypto-aws-lc, windows-latest × crypto-ring)(.github/workflows/ci.yml). Cache keys are namespaced per(os, backend)to avoid cross-thrashing. Windows skips thecrypto-aws-lcrow to keep PR build time reasonable — it works in principle but the C-toolchain cost isn't justified until a real customer asks for FIPS-on-Windows. cargo treeverified to containringonly (default) oraws-lc-rsonly (crypto-aws-lc) — no cross-contamination between backends.- Universal DMG pipeline verified end-to-end: built
dist/Lumen-0.2.0.dmg(9.8 MB), confirmed both bundled binaries reportx86_64 arm64vialipo -archs, launched the daemon directly from the mounted DMG, and confirmed:9091/dashboardreturns HTTP 200 and:9091/302-redirects to/dashboard.
- DMG is still ad-hoc signed, not notarized. Managed-laptop users may have first-launch blocked by Gatekeeper policy. Pending org Apple Developer ID.
- No Windows installer /
.msi. Windows users currently invoke the daemon binary directly from a terminal. A proper installer with a Start Menu entry and service registration is a future addition.
claude-opus-4-7priced at $15/$75 instead of $5/$25 — The model was using the deprecated Opus 4.0/4.1 rate tier, making every Opus 4.7 call report 3× the expected cost. The correct Opus 4.7 rate is$5.00/$25.00per million tokens (same tier as Opus 4.5 and 4.6).claude-haiku-4-5priced at $0.80/$4.00 instead of $1.00/$5.00 — Was using the retired Haiku 3.5 rates. Now correctly uses the Haiku 4.5 rate tier.- Fuzzy model-name match too broad —
gpt-4.1was resolving togpt-4(30× more expensive) because the prefix check used a plainstarts_withwithout requiring a-separator after the prefix. Fixed: fuzzy matching now only considers a prefix match valid when the character immediately following the prefix in the longer name is-, sogpt-4.1no longer matchesgpt-4butgpt-4o-2024-08-06still matchesgpt-4o. - Stale lumen-core process surviving
run.shrestart — A lumen-core process launched from a different path (e.g. a recorded demo session) could ignoreSIGTERM, leaving ports 9090/9091 occupied and preventing the new binary from starting.run.shnow sendsSIGKILLas a fallback if the process is still alive after the initialpkill.
- Externally-updatable JSON pricing file (
lumen-core/pricing.json) — All model pricing is now defined in a single JSON file (schema version 1) committed to the repo. This lets rates be updated without recompiling. - Pricing loader (
pricing::loader) — On startup,load_pricing()selects the best available source: user override at~/.lumen/pricing.json, last remote fetch at~/.lumen/pricing.json.cache, or compiled-in defaults. After loading, a background task fetches the canonical file from the repository and writes it to the cache path so the next restart automatically gets fresh rates. - Current OpenAI models added to compiled-in defaults and
pricing.json:- GPT-5.x family (released 2025–2026):
gpt-5.5($5.00/$30.00),gpt-5.5-pro($30.00/$180.00),gpt-5.4($2.50/$15.00),gpt-5.4-mini($0.75/$4.50),gpt-5.4-nano($0.20/$1.25),gpt-5.4-pro($30.00/$180.00) — all cached at 10% of input rate - Codex family:
gpt-5.3-codex($1.75/$14.00, cache $0.175) andgpt-5.1-codex-mini($0.25/$2.00, cache $0.025) - GPT-4.1 family:
gpt-4.1($2.00/$8.00),gpt-4.1-mini($0.40/$1.60),gpt-4.1-nano($0.10/$0.40) with dated aliases (-2025-04-14) - GPT-4o dated aliases:
gpt-4o-2024-11-20,gpt-4o-2024-08-06,gpt-4o-mini-2024-07-18(current-rate);gpt-4o-2024-05-13($5.00/$15.00) andchatgpt-4o-latest($5.00/$15.00) as explicit entries since the older snapshot is priced higher than the currentgpt-4o codex-mini-latest($1.50/$6.00, cache $0.375)
- GPT-5.x family (released 2025–2026):
- Retired o-series entries added with
"note": "retired"for historical traffic attribution — the entire OpenAI o-series was retired from ChatGPT on 2026-02-13 (o1-preview hard-shutdown 2025-07-28; o1-mini hard-shutdown 2025-10-27). Entries are kept so cost reporting remains accurate for any residual API calls from apps that haven't migrated:o1,o1-2024-12-17,o1-pro,o1-mini,o1-mini-2024-09-12,o1-preview,o3,o3-2025-04-16,o3-pro,o3-mini,o3-mini-2025-01-31,o4-mini,o4-mini-2025-04-16. notes.retiredconvention added topricing.jsonheader to document what the"note": "retired"tag means and why those entries are preserved.- Expanded Anthropic model coverage — Added explicit entries for
claude-opus-4-0,claude-opus-4-1,claude-opus-4-1-20250805,claude-opus-4-5,claude-opus-4-5-20251101,claude-opus-4-6,claude-sonnet-4-0,claude-sonnet-4-5,claude-sonnet-4-5-20250929so dated and minor variants resolve correctly without relying solely on fuzzy matching.
pricing::test_opus_4_7_is_5_25_not_15_75— regression guard for the Opus 4.7 rate fix.pricing::test_haiku_4_5_is_1_5_not_0_80_4— regression guard for the Haiku 4.5 rate fix.pricing::test_gpt_4_1_family_priced— verifiesgpt-4.1,gpt-4.1-mini, andgpt-4.1-nanoresolve to correct rates and are not fuzzy-matched togpt-4.pricing::test_from_file_roundtrip— verifiesPricingDatabase::from_file()correctly parses an inline JSON snippet and produces accurate cost calculations.pricing::test_from_file_rejects_unknown_schema_version— verifies the loader falls back to compiled-in defaults (not a crash or silent success) whenschema_versionis not 1.pricing::test_repo_pricing_json_is_valid— compile-time inclusion ofpricing.jsonviainclude_str!, parsed and validated on everycargo testrun to catch malformed JSON or unsupported schema versions before they ship.pricing::test_o1_pro_and_o3_pro_not_misprice_as_o1_o3— verifieso1-pro($150/$600),o3-pro($20/$80), andcodex-mini-latestare not fuzzy-matched down to the cheaper base model rate (relevant even for retired models that still appear in traffic from unmigrated apps).pricing::test_gpt4o_old_snapshot_uses_higher_rate— verifiesgpt-4o-2024-05-13uses the $5.00 input rate and is not overridden by fuzzy-matching to the cheaper currentgpt-4oentry.pricing::test_gpt5_family_no_fuzzy_bleed— verifies all eight GPT-5.x/Codex models resolve to their correct prices and-pro,-mini,-nanosuffixed variants don't bleed into the cheaper base model price via fuzzy matching.
- Cursor cost overestimation by 15–30x — Cursor traffic was being priced at the underlying Anthropic/OpenAI direct API rates (e.g.
claude-opus-4-7at $15/$75 per million tokens), which dramatically overshoots Cursor's "On-Demand" billing. A 963K-token Opus call invoiced by Cursor at ~$2.74 was being reported as ~$72. Fix: added a calibratedcursor:namespace to the pricing database with effective blended rates derived from real Cursor invoices (claude-opus-4-7,claude-opus-4,claude-sonnet-4-6,claude-sonnet-4,claude-haiku-4-5,claude-haiku-4,composer-2,composer-2-fast,gpt-5.5,gpt-5,gpt-5-mini,gpt-5-nano). Lumen's reported costs now land within ~2x of the actual Cursor bill. - Cursor pricing lookup precedence —
calculate_costnow does an exact match in thecursor:namespace, then a fuzzy match withincursor:, then cross-provider fallback, then thecursor-unknownsentinel. The new fuzzy step is what makes variants likeclaude-opus-4-7-thinking-highresolve tocursor:claude-opus-4-7instead of leaking through to the (much pricier) Anthropic-direct entry. composer-2-fastpriced as unknown — Cursor's first-party Composer models had no pricing entries and fell through to the $5/$15 unknown-model fallback. They now have explicitcursor:composer-2andcursor:composer-2-fastentries (~$0.75/MTok blended, matching observed invoices).cursor-unknownfallback rate — lowered from $3/$15 to $0.50/$2.50 per million tokens, an honest blended rate for unidentified Cursor traffic.
pricing::test_cursor_uses_cursor_pricing_not_anthropic_direct— locks in that Cursor traffic never gets Anthropic-direct rates.pricing::test_cursor_opus_thinking_variant_resolves_to_cursor_opus— locks in the cursor-namespace fuzzy match for-thinking-high(and similar) variants.pricing::test_cursor_composer_priced— coverscomposer-2-fastno longer falling through to the unknown-model fallback.pricing::test_cursor_opus_realistic_call_against_invoice— calibration check against a real Cursor invoice line (963.1K tokens for $2.74).
- Cursor token counts are still byte-estimated (
BYTES_PER_TOKEN = 4.0), which over-counts heavily for SSE-wrapped streams and lands almost everything inoutput_tokens. The new pricing absorbs this bias but doesn't fix it. - Cursor's gRPC responses don't expose
cache_read_input_tokensthe way Anthropic's JSON API does, so cache savings from Cursor traffic remain invisible. Real-usage extraction would require decoding Cursor's protobuf schema.
- Web dashboard —
GET /dashboardserves a self-contained HTML dashboard athttp://127.0.0.1:9091/dashboard. The token is injected at build time viainclude_str!+ template substitution so the page authenticates automatically. The endpoint is auth-exempt (noX-Lumen-Tokenrequired) since the token is embedded in the served HTML itself. - DataGrout sign-up link — "Don't have an account? Create one free →" button in the DataGrout settings panel opens
https://app.datagrout.aiin the default browser.
- Cursor BidiAppend over-estimation —
BidiAppendcalls with no response body are now correctly identified as Cursor's background context-sync traffic and excluded from usage tracking. Previously, Cursor's ~195KB codebase-snapshot uploads (sent every ~1 second before any AI call) were each estimated as ~49,000-input-token AI completions, inflating cost estimates by orders of magnitude. The fix requires a non-trivial response (resp_bytes > 50) before a BidiAppend call is treated as AI inference — real AI completions always produce output. ReportAiCodeChangeMetricstelemetry — added to the Cursor noise-path list so these background reports don't generate usage events.
proxy::test_cursor_is_significant_call— verifies BidiAppend calls with 0B response are not counted as AI inference.proxy::test_cursor_is_noise— verifiesReportAiCodeChangeMetricsand other known-telemetry paths are excluded.
- Sync watermark stall —
DGSyncernow tracks against a monotonically-increasing lifetime event counter (total_event_count) instead of a window-relative position. Previously, after 100 events the watermark could never advance beyondMAX_BATCH_SIZE, silently dropping all subsequent usage events. - CORS header removed from the local JSON API (
json_response). TheAccess-Control-Allow-Origin: *header served no purpose — the API is consumed only by SwiftURLSessionon loopback — and was unnecessarily permissive. - Swift concurrency warning —
Task.detached(priority: .utility)inWizardViewchanged toTask(priority: .utility)to satisfy main-actor isolation requirements. - Privacy documentation — README's "message content is never stored" claim now correctly scopes to normal operation and documents the opt-in debug capture mode.
- Local API authentication — the JSON API on
:9091now requires anX-Lumen-Tokenheader on all requests exceptGET /healthand the OAuth callback redirect. A 32-byte random token is generated on first launch, written to~/.lumen/api.token(mode 0600), and reloaded on subsequent starts. The Swift app reads the same file and injects the header automatically. This closes the control-plane exposure where any local process could call/shutdown,/debug/arm, or/dg/identitywithout authentication.
aggregator::test_total_event_count_is_lifetime— verifies the lifetime counter is unaffected by lap creation, which is the invariant the watermark fix depends on.sync::test_sync_skips_without_server_url— verifiessync_batchreturnsOkwithout advancing the watermark when no server URL is configured.sync::test_sync_watermark_does_not_advance_when_no_new_events— verifies the early-return path whentotal == last.
First public release.
- HTTP forward proxy on
:9090with TLS MITM via self-signed CA - Transparent proxy on
:9443(pf-redirect mode, requires root) - Passive sniffer via libpcap/BPF for zero-config traffic identification
- Multi-provider token extraction: OpenAI, Anthropic, Google AI (REST and SSE)
- Cursor protobuf/gRPC parsing: BidiAppend (gzip-compressed requests) and RunSSE (gRPC-framed gzip responses)
- Model detection for Cursor: binary pattern scan of decoded gRPC frames, system-prompt text extraction (
powered by Composer→composer,You are Codex N.M→codex-N.M), analytics event scanning - Token pricing database with fuzzy model-name matching
- Real-time stats aggregation with rolling 60-second windows
- Lap-based session tracking for before/after cost comparisons
- REST API on
:9091(stats, events, traffic log, host aggregates, lap control, config) - Per-provider relay routes (e.g.
/anthropic→https://api.anthropic.com) - DataGrout sync: 30-second usage batches and immediate lap snapshots via HMAC Bearer auth
- DataGrout DCR OAuth flow for device registration
- Body size limits configurable at runtime
- Payload capture / debug mode (ring buffer of recent request+response hex)
- Status bar icon with animated live-cost gauge
- Arc gauge display (cost, token rate, cache savings)
- Scrollable event feed with per-request model, tokens, and cost
- Traffic log with host/path/status/latency filtering
- Monitored endpoint manager with custom host support
- DataGrout integration settings (server connect, tool visibility, Intelligent Interface)
- Setup wizard with CA certificate installation and per-tool launcher shortcuts
- System proxy auto-enable/restore on launch and cleanup on quit
- Automatic daemon lifecycle management (launch, health check, restart on crash)