Skip to content

Configuration Toggle Effects ​

Every toggle in Meshlet that has a visible on/off effect, with off/on screenshots and an animated GIF for each. The evidence is generated by a reproducible capture pipeline (scripts/doc-gif/run.sh). It drives the real UI and real HTTP output; no hand-drawn diagrams. The same pipeline asserts the effect, so it doubles as a regression test. Any check that fails makes the run exit non-zero.

How the evidence is produced ​

  • GUI toggles are recorded by driving the real console in headless Chromium (Playwright). Frames are captured across the switch.
  • Server/CLI toggles record the real HTTP exchange (the exact Set-Cookie header or status line). It is rendered as a terminal capture.
  • Frames are composited into GIFs with ffmpeg (palettegen/paletteuse).
  • Re-run any time with scripts/doc-gif/run.sh. It builds the console and server, then boots throwaway instances on loopback. The script captures, asserts, and writes to docs/public/toggles/.

Console theme (dark ↔ light) ​

The console follows the OS color scheme until you pick a theme explicitly. The choice is stored in localStorage['meshlet-theme'] (console/src/theme/theme-provider.tsx). Off = dark (the default), on = light.

Off (dark)On (light)
theme offtheme on

theme switch animation

Console language (English ↔ 中文) ​

The console follows the browser language (zh* → 中文, otherwise English) until changed. The choice is stored in localStorage['meshlet-lang'] (console/src/i18n/language-provider.tsx). Off = English, on = 中文.

Off (English)On (中文)
language enlanguage zh

language switch animation

cookie_secure = true in the server config adds the Secure attribute to the session cookie (apps/server/src/auth.rs). Off = no Secure attribute (HTTP-friendly), on = Secure (browser only sends it over HTTPS). The captures below are the real Set-Cookie header from a bootstrap request.

Off (cookie_secure = false)On (cookie_secure = true)
cookie offcookie on

cookie_secure switch animation

Server console_dir ​

When console_dir is set, the server hosts the built console at /; when unset, / is a 404. Off = unset (404), on = set (serves the console bundle).

Off (console_dir unset)On (console_dir set)
console unsetconsole set

console_dir switch animation

Toggles not recorded on this host ​

These switches exist, but their effect requires a host this pipeline cannot drive. They are not in the GIF list above; the pipeline would produce a misleading or impossible capture. Each is recorded honestly where it can be:

  • Tray app: autostart / animations / language — a desktop Tauri window (system tray). Needs a Windows or macOS GUI session; on this Linux host the tray app has no display. Record by running the tray app on a desktop host and capturing its settings window (apps/tray-app).
  • Agent [dataplane] enabled — the effect is the agent actually applying WireGuard config to a real interface. It needs NET_ADMIN and a reachable hub. Record with MESHLET_REQUIRE_DATAPLANE=1 and a data-plane-capable host (see ADR-007).
  • Agent [dataplane.direct_connect] enabled — on by default (since 2026-11-06; set enabled = false to turn off). Effect = a solid direct edge with an RTT label on the console topology page (data source: devices API, direct_links[].connection_mode = p2p_direct), plus a /32 direct peer visible in wg show on each end. Recording needs a real second meshlet node, which this single-host loopback pipeline cannot drive; the two-real-node walkthrough is done: coding-vm ↔ cuihaitao (Windows) established a direct link over the Tailscale underlay with the topology API reporting RTT 18 ms (2026-11-06, evidence in todo.md's P2P ledger).
  • Agent [dataplane.probe] enabled — on by default since 2026-11-13 (spoke incident; set enabled = false to turn off; crates/meshlet-config/src/agent.rs:273-284, defaults 5 s / 20-sample window / switch_required 3 / switch_margin 30% / recovery_required 3 / degrade_rtt_ms 800 / loss_spike 20% / switch_cooldown_secs 30 / degrade_min_samples 4). Effect = candidate-endpoint ICMP probing (the SEL-001 collection itself) that feeds the SEL-002 switch gate and the SEL-003 promote/demote gates; its visible traces are the probe_window field and the probe action in {state_dir}/agent-decisions.jsonl (see observability). Not recordable on this single-host loopback pipeline, which has no candidate endpoints to probe.
  • Service notifications / status_notifier_item — desktop tray indicator, same host limitation as the tray app.

None of these are faked: they are listed here as not-yet-recordable on this machine rather than shown as passing.

Reproducibility ​

scripts/doc-gif/run.sh is the single entry point. It builds the console and server, then boots isolated loopback instances. It drives the captures, asserts the effects and writes the images. Every check must pass for the script to exit 0. Configuration changes that break an effect surface as a failing run. This page doubles as the configuration-effect regression test.