Skip to content

v1.0.234

Choose a tag to compare

@github-actions github-actions released this 02 Jul 13:26

✨ New: remote access is no longer slow

Three stacked changes make cockpit over a tunnel (ngrok / Tailscale / LAN) feel local.

API JSON now gzips through the custom server — Next's built-in compression only runs under next start, so a 264 KB session payload used to cross the wire uncompressed; it travels as 71 KB now (SSE, HTML and statics untouched).

Reopening a session paints instantly: the first page of history is served from a per-session stale-while-revalidate cache, then revalidated by fingerprint — an unchanged session confirms with a ~62-byte { notModified } instead of re-downloading hundreds of KB of messages.

And the /m mobile session list no longer waits for JS download + hydration + the WebSocket handshake (~3.5 s over a tunnel) before showing anything — the list is server-rendered into the initial HTML from local file reads, and the first live WS frame takes over incrementally.

📦 Misc: ~130 KB lighter first load

shiki and its grammars no longer ride in the first-load bundle. The highlighter is code-split behind a dynamic import and fetched on first highlight — first-load JS drops ~130 KB (gzip).

🌐 Site: PostHog analytics

opencockpit.dev now reports pageviews to PostHog — production builds only, so dev and preview runs stay clean.