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-Cookieheader 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 todocs/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) |
|---|---|
![]() | ![]() |

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 (中文) |
|---|---|
![]() | ![]() |

Server cookie_secure
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) |
|---|---|
![]() | ![]() |

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) |
|---|---|
![]() | ![]() |

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 needsNET_ADMINand a reachable hub. Record withMESHLET_REQUIRE_DATAPLANE=1and a data-plane-capable host (see ADR-007). - Agent
[dataplane.direct_connect] enabled— on by default (since 2026-11-06; setenabled = falseto turn off). Effect = a solid direct edge with an RTT label on the console topology page (data source:devicesAPI,direct_links[].connection_mode = p2p_direct), plus a/32direct peer visible inwg showon 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; setenabled = falseto 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 theprobe_windowfield and theprobeaction 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.







