lucide-react 1.0 dropped brand icons, so the Github import resolved to
undefined and TopRightControls crashed on render. Swap in a small local
GithubIcon (Octicons mark-github, MIT) with the same size/className props.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node 20 is end of life and will not get the CVE-2026-111497 Brotli decoder
fix from the 2026-10-21 Node.js security release. The frontend image now
starts from node:24.22.1-alpine, the backend image installs Node 24 from
NodeSource and refuses to build on anything older than 24.22.1, and CI
runs on Node 24 so tests match the shipped runtime.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the dashboard bound to the network (make up-lan), the frontend proxy
added the server ADMIN_KEY to every same-origin request and the backend
trusted the frontend container as the local operator, so any device on
the LAN that opened the dashboard had full control: DMs, contacts, gate
keys and settings. The proxy cannot tell the local browser apart from
other devices, because Next.js forwards client-supplied X-Forwarded-For
verbatim (verified against next start: a remote client sending
X-Forwarded-For: 127.0.0.1 reaches the backend as 127.0.0.1).
SHADOWBROKER_LAN_MODE=1, set by make up-lan, now makes the proxy inject
the admin key only for signed-in admin sessions and stops the backend
trusting the frontend container. Loopback tools on the host keep working.
For a backend behind nginx/Caddy on the same host, the new opt-in
SHADOWBROKER_UNTRUSTED_LOOPBACK=1 makes loopback callers present the key
too. Default installs are unchanged.
Also compare the admin key in constant time at sign-in, and make the
403 message say how to sign in from another device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
- docker-compose.relay.yml: default MESH_ONLY=true with the Infonet sync
workers kept on (SHADOWBROKER_MESH_NODE_RUNTIME=true), like meshnode.sh.
Measured: the full backend takes 37 s to answer and settles around 1.5 GB
RSS at 30-50% CPU; mesh-only answers in 3 s at about 145 MB. The relay's
2 GB limit left the full mode little headroom. Both stay overridable
from .env.
- Next.js 16.2.7 -> 16.3.8: fixes the App Router proxy bypass advisory;
proxy.ts is the CSRF boundary for privileged API routes.
- PostCSS override 8.5.15 -> 8.5.28: fixes the source-map path traversal
advisories. npm audit (production) now reports only maplibre-gl, whose
fix needs a major upgrade; the app does not pass HTML to MapLibre.
- Next 16.3 type-checks every file tsconfig includes, so test-only typing
errors failed the build; build against tsconfig.build.json (tests
excluded) as before. Tests remain type-checked by Vitest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
Leaving InfoNet tears down Tor and the Wormhole by design, so nothing
private runs in the background. That was silent: switching chat tabs or
collapsing the panel cut the connection and the next visit waited for Tor
again. Every close path (LEAVE, tab switch, collapsing the chat panel,
closing or pressing Escape on the full terminal) now asks first while a
session is connected, explains that new messages won't arrive and that
reconnecting can take up to a minute, and offers "Don't show this again".
The teardown itself is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
- Turn raw backend codes (wormhole_required_for_*, control_plane_request_failed:403,
gate_mls_compose_failed, ...) into sentences that say what to do next, via one
shared helper used by gate rooms, key sharing, the Wormhole panel and mail.
- Fix contradictory privacy copy: the gates card said everything was end-to-end
encrypted while the advisory beside it said nothing was encrypted. Both now
describe what the code does: encrypted content, visible metadata, unaudited.
- Show a running timer while Tor connects instead of a static
"obfuscated lane starting", and say up front that the first start can take
up to a minute.
- Replace the TOFU jargon on first contact with what to do and why.
- New installs no longer get the changelog stacked on top of setup.
- Keep the expanded chat panel above the map status bar, which was covering
the terminal input.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
Gate history is readable on another node only through the gate envelope,
which is keyed from a per-gate secret that every node generated on its
own. Nothing ever moved that secret between members, so two operators in
the same gate could not read each other.
Members can now send the current gate key to a DM contact inside an
end-to-end encrypted DM. The key rides as a control frame that is
stripped on decrypt, so it never reaches the browser or the mailbox. The
recipient's operator accepts or declines it; the previous local key is
archived so existing history stays readable.
Rotation sends the new key to every contact the key was granted to,
minus excluded peers. Recipients apply a rotation automatically only
when it comes from the member they got the key from, and forward it to
their own grantees. Ban/kick rotations now redistribute too, instead of
silently splitting the gate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
After the browser tab sat hidden overnight, every airborne aircraft was drawn
smeared thousands of miles along its last heading (e.g. over open ocean) for
about a minute after waking, until fresh data arrived.
Polling pauses while the tab is hidden, but the interpolation clock keeps
counting from the last data refresh. Since 5ae1e5b the dead-reckoning cap
(interpolatePosition's maxDt, documented as "Cap interpolation time to prevent
runaway drift when data is stale") was overridden with
UNBOUNDED_INTERP_SECONDS = Infinity, so 8 hours stale moved a 500 kt flight
~3,300 nm.
Restore a cap via a shared MAX_INTERP_SECONDS = 180 used by flights, ships and
satellites (useInterpolation) and the worker-side interpolation
(applyDynamicLayerInterp). Live data refreshes every ~15s, so normal animation
is unaffected; stale markers now advance at most ~25 nm, then snap to fresh data.
Also widens a source-slice window in maplibreDecomposition.test.ts that had
zero slack (onClose ended exactly at char 500 with LF; failed on CRLF checkouts).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Connect modal's agent snippet steered agents into failures we hit while
wiring up a Hermes agent:
- It told agents to use search_telemetry as the default entry point, but the
backend rejects search_telemetry/get_telemetry/get_slow_telemetry/get_report
without confirm_expensive=true (EXPENSIVE_COMMANDS). Guidance now follows the
backend's routing manifest: route_query first, then find_entity /
get_entity_profile and other targeted reads; expensive commands are named as
gated, last-resort calls.
- It never said how to install the secret. Operators pasted it into agent chats,
where it stays in plain-text history and is still not an environment variable.
New SETUP block: set env vars in the agent's config, use a Python with httpx,
verify with verify_hmac.py; Docker note for host agents in Local mode. The
modal also shows an explicit "don't paste into chat" warning.
- It always said "You are a remote OpenClaw agent", even in Local mode.
- New ANALYST DIRECTIVE for unattended investigations: read-only, evidence-tied,
stated confidence, and "probably noise" when live data doesn't back an alert.
- Step 2 explains when Full Access is actually needed (Read Only stays default).
Renames the user-facing "OpenClaw" name to "AI Agent" across the UI and the
en/fr/zh-CN/fa translations. Env vars (OPENCLAW_*), API paths, the
openclaw-skills folder and backend identifiers are unchanged so existing agent
configs keep working; changelog history is left as written.
Tests: agentConnectGuidance.test.ts checks the snippet against the backend's
EXPENSIVE_COMMANDS, the setup/verify/leak guidance, mode-aware wording, and
that no user-facing OpenClaw text remains.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right-click opened the Sentinel-2 panel pre-filled with Esri World Imagery
("DATE UNAVAILABLE / fallback imagery") and only swapped in the live
Planetary Computer scenes after both the Sentinel search and the unrelated
region-dossier lookup settled. On a busy dashboard that took long enough
that the placeholder read as the result, so the 3-scene recent imagery
looked like it had regressed to generic fallback pictures.
- Show an explicit "SEARCHING SENTINEL-2 ARCHIVE" state while searching.
- Fetch imagery and the region dossier independently; render scenes the
moment they arrive.
- Use the Esri fallback only when the live search actually fails, and say so.
- Ignore stale responses when the user right-clicks again mid-search.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clicking an AIS vessel showed neither the map popup nor the side panel.
Since f95b0ec the dynamic worker builds ship feature ids with
shipFeatureId(), which stringifies the MMSI, but the backend sends MMSIs as
numbers. The lookups compared them with ===, so 234881054 === "234881054"
matched nothing and the UI silently rendered nothing. Carriers still worked
because their id is their (string) name.
Adds sameEntityId() and uses it for the ship lookups (popup, side panel,
findSelectedEntity) and the other numeric-id lookups that compare against a
clicked feature id (satellites, UAVs, trains, UAP sightings, wastewater,
weather alerts).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seven overlay label layers had a text-field but no text-font, so MapLibre
fell back to "Open Sans Regular,Arial Unicode MS Regular". The keyless
OpenFreeMap glyph endpoint returns 404 for that fontstack, which errors
every tile of the layer's source. For CCTV that meant the whole source
(clusters and dots) rendered nothing even though 23k cameras were loaded.
Affected layers: cctv-cluster-count, gps-jamming-label, corr-rf-label,
corr-mil-label, corr-infra-label, corr-contra-label, corr-analysis-label.
All now use Noto Sans Bold, matching the other overlay labels.
Adds a regression test that fails if any MaplibreViewer layout renders
text without pinning a text-font.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up:
- Drop the Next.js route. CARTO_API_KEY is now a regular backend registry
key (env, .env, or the API Keys panel) served by public
GET /api/basemap-config. Every frontend mode already proxies /api/* to
the backend (Next.js proxy in web mode, companion server in packaged
desktop), so this covers web and desktop with one mechanism and leaves
the static export untouched. Also removes the invalid non-handler
export from the route module by removing the module.
- useBasemapConfig: fail open to the unkeyed style after 3 s, abort the
request at 15 s, apply a late key when it arrives, cache successes per
page and retry failures on the next mount.
- Declare OSM/CARTO attribution on the raster source (same markup as the
viewer's existing AttributionControl so MapLibre de-duplicates it).
- Tests: backend endpoint (unset / set+trimmed / persisted operator key /
registry), hook behaviour (success, non-OK, network error, soft timeout
then late key, hard abort, shared request and retry), attribution and
gating source checks.
- CARTO_API_KEY moves to the backend service in docker-compose.yml; docs
updated accordingly.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Tracked-flight and tracked-yacht HTML labels are rendered from the raw
store arrays, while their icons come from the worker GeoJSON that already
has the operator's data filters applied. Filtering Tracked Aircraft to a
category therefore removed the icons but left every other aircraft's name
on the map.
Derive the label subjects from the ids in the filtered feature collection
so a label is only drawn where an icon is. The id rule lives in one shared
helper used by both the worker builders and the label selector; rows with
no identifier keep the worker's positional fallback and draw no label.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
CARTO now requires an API key for its basemap tiles; without one every
tile in the DEFAULT dark/light map carries an "API KEY REQUIRED"
watermark. The tile URLs were hardcoded in mapStyles.ts with no way to
supply a key, and because the frontend ships as a prebuilt image a
NEXT_PUBLIC_ variable would be baked in empty for every Docker user.
- New frontend-local route GET /api/basemap-config reads CARTO_API_KEY
from the frontend container's environment at request time (same
pattern as BACKEND_URL), so no image rebuild is needed.
- useBasemapConfig() fetches it once per page load; MaplibreViewer
builds the MapLibre style from it via buildBasemapStyle(theme, key)
and defers the map's first style load until the config has settled,
avoiding a burst of unkeyed tile requests followed by a style swap.
- Tile URLs move to CARTO's documented rastertiles/ path with ?key=
appended when configured. Unkeyed URLs serve byte-identical tiles to
the old path, so deployments without a key behave exactly as before.
- CARTO_API_KEY wired through docker-compose.yml and documented in
.env.example, README (data source table + frontend env table) and
docs/OUTBOUND_DATA.md.
- Tests cover the route (unset / set / trimmed) and the style builder.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>