Skip to content

fix: live sync, Safari overflow, hideHigher, lasting logins, repo links - #147

Merged
zVapor-Dev merged 2 commits into
v3from
fix/web-beta-feedback-2
Oct 30, 2026
Merged

zVapor-Dev merged 2 commits into
v3from
fix/web-beta-feedback-2

Conversation

@zVapor-Dev

Copy link
Copy Markdown
Member

Fixes from the second round of beta feedback. The page builder editor gets its own PR.

Live sync

The space stream (/api/spaces/:platform/:spaceId/stream) wrote its headers with writeHead but never flushed them or sent any bytes. A browser's EventSource never reported the stream as open, so the dashboard showed "Live sync off". The route now:

  • hijacks the reply
  • flushes the headers (with x-accel-buffering: no for proxies)
  • sends a : connected comment right away and a : ping comment every 25 seconds
  • clears the heartbeat when the request closes

stream.test.ts opens a real connection and checks that the first chunk arrives.

Safari sideways scroll

The blurred .dd-bg glows widened the scroll area in Safari despite overflow: hidden. The fix:

  • .dd-bg gets clip-path: inset(0) and contain: paint
  • html gets overflow-x: clip

hideHigher

The Discord source ignored hideHigher. It now leaves out roles at or above the bot's highest role, from guild.members.me, falling back to the cached member for client.user. When the bot's position is unknown, it hides every role rather than offering roles it may not be able to assign. Covered in source.test.ts.

Logins survive a restart

  • SessionStore takes an optional synchronous SessionBackend (get, set, delete, sweep). Only logged-in sessions are persisted, and a memory miss is loaded from the backend.
  • @acstane/db adds SqliteSessionBackend. It stores a SHA-256 of each session id, so a copy of the file can't be turned into a cookie.
  • Lite mode uses it when storage: "sqlite", or with the new sessions: "sqlite" | "memory" option.
  • The scaffolder starter now sets storage: "sqlite" and ignores data.sqlite*.

Links

Checks

  • pnpm lint, pnpm typecheck and pnpm build pass.
  • pnpm test passes: 290 tests, including the new stream, hideHigher and session tests.

Requested by zVapor


Generated by Claude Code

- The space stream hijacks the reply, flushes its headers, sends a comment
  straight away and a keep-alive every 25 seconds. Before, a browser never saw
  the stream open, so the dashboard showed "Live sync off".
- The background glow layer is clipped and html has overflow-x: clip, so
  Safari no longer scrolls sideways into empty space.
- The Discord source applies hideHigher: roles at or above the bot's highest
  role are left out.
- SessionStore takes a SessionBackend. @acstane/db adds SqliteSessionBackend,
  which stores only a SHA-256 of each session id. Lite mode uses it when
  storage is "sqlite" (or sessions: "sqlite"), so a restart keeps people
  logged in. The scaffolder's starter now uses storage: "sqlite".
- The GitHub and Docs links point to the repository and the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017JdKJpQQK3XuLZTBiZ4gns
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017JdKJpQQK3XuLZTBiZ4gns
@zVapor-Dev
zVapor-Dev marked this pull request as ready for review October 30, 2026 03:55
@zVapor-Dev
zVapor-Dev merged commit fea1fbf into v3 Oct 30, 2026
1 check passed
@zVapor-Dev
zVapor-Dev deleted the fix/web-beta-feedback-2 branch October 30, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants