Commit Graph
8 Commits
Author SHA1 Message Date
LainHE feb50d29c1 fix(acceleration-relay): report socket errors instead of throwing into the void
The relay's socket error listener ended with `throw error`. A listener that throws
escapes EventEmitter.emit, so it became an uncaught exception that terminated the
whole process. Because the throw also aborts the remaining listeners, it prevented
the startup promise from ever settling when the socket failed to bind.

- extract an idempotent shutdown() used by both close() and error handling
- reject the startup promise when the failure happens before listening, so a failed
  bind behaves like any other rejected startup rather than a process crash
- tear the relay down and report via a new onError callback once it is running
- release the socket and sweep interval on a synchronous bind failure, which never
  emits error at all
- add 3 regression tests covering bind failure, a surviving relay after a failed
  sibling startup, and idempotent close
- register the new test file in the npm test list so CI actually runs it

Verified: tsc --noEmit is clean and the 3 new tests pass. Before the fix the same
bind failure terminated the process with an uncaught EADDRINUSE instead of
rejecting the startup promise.
2026-10-15 16:20:19 +08:00
LainHE 7a6e054fe9 fix(screen-share): use sender capabilities for codec preference
setCodecPreferences requires codecs from RTCRtpSender.getCapabilities;
feeding it RTCRtpReceiver.getCapabilities throws InvalidModificationError
in Chrome and the swallowed exception left VP8 as the negotiated codec.
Switch the capability source so H264/AV1 preferences actually apply.
2026-10-12 13:51:49 +08:00
LainHE d919dbd82a feat(web-client): allow users to pick screen share bitrate limit
Add a bitrate select to the screen share settings dialog (auto by
resolution, or a fixed 1.5/3/5/8/12 Mbps cap), persist the choice in
localStorage, and pass it through ScreenShareOutputSettings.maxBitrate
so configureScreenShareVideoSender applies the user-chosen budget
instead of only the height-scaled default.
2026-10-12 13:51:49 +08:00
LainHE 20bde72c8b fix(screen-share): use sender capabilities for codec preference
setCodecPreferences requires codecs from RTCRtpSender.getCapabilities;
feeding it RTCRtpReceiver.getCapabilities throws InvalidModificationError
in Chrome and the swallowed exception left VP8 as the negotiated codec.
Switch the capability source so H264/AV1 preferences actually apply.
2026-10-10 18:02:36 +08:00
LainHE 1c328995aa feat(web-client): allow users to pick screen share bitrate limit
Add a bitrate select to the screen share settings dialog (auto by
resolution, or a fixed 1.5/3/5/8/12 Mbps cap), persist the choice in
localStorage, and pass it through ScreenShareOutputSettings.maxBitrate
so configureScreenShareVideoSender applies the user-chosen budget
instead of only the height-scaled default.
2026-10-10 18:01:04 +08:00
LainHE c7794a12e7 fix(web): give join footer solid background and stacking, constrain join-content scroll
- .join-footer: background var(--surface-0) so it matches page theme in light/dark/system; z-index 2 so it stays above join-content overlap on short viewports

- .join-content: overflow-y auto on desktop so oversized copy scrolls inside the container instead of spilling into the footer
2026-09-23 09:48:08 +08:00
LainHE 408d8bcda4 feat(web): float desktop audio dock and message composer
Float .desktop-audio-dock at the bottom of .member-panel and .message-composer at the bottom of .chat-panel on desktop (>=741px):
- switch both from in-flow to absolute positioning, keeping the original visual anchor semantics
- width follows the parent content width (left/right insets align with member-panel horizontal padding / chat-panel zero padding)
- add padding-bottom compensation to .member-panel and .chat-panel so member/message lists are not covered
- mobile layout (<=740px) remains untouched
2026-09-23 08:39:36 +08:00
LainHE 5a3eebecbd fix(web): zoom compensation and mobile chat scroll fixes
- WebClient: divide fixed offsets and viewport heights by --ui-scale on large displays; fix member context menu position
- WebClient: use 100dvh/100svh with fallbacks on mobile; constrain workspace-content height so message list scrolls properly
- AdminView: keep html/body at real viewport while zoomed admin shell divides height by scale
- DemoView: divide poke banner offsets by --ui-scale to keep intended margin
- package-lock: drop stale peer flags
2026-09-23 06:57:09 +08:00