Live testing against a real TS6 client settled how both settings actually
behave, and neither is what the previous commit assumed.
The server enforces nothing. It stores accessibility and viewer_limit,
echoes them back in notifystreamstarted, and then forwards every join
request anyway - a PRIVATE stream at viewer_limit=1 still had both
viewers announced to us. Enforcement is entirely the publisher's job.
And a refusal is the wrong tool for it. TS6's own rule, from main.js:
!autoAccept || full ? pendingJoinRequests.push(...)
: joinStreamResponse(...)
A request it will not take automatically is left *pending*, not denied.
That matters because a denial does not stick - TS6 pairs its own deny
with a ban (blockAndDenyJoinRequest) precisely because of this - so a
refused client just asks again. Measured: 7 retries in 40 s, with nothing
shown to the person waiting. Left pending, the same client asks once and
displays "waiting for access" until answered, then connects normally.
So: PUBLIC with room to spare admits; anything else queues for the user,
including a full stream. Deny is now an explicit choice, and block is the
sticky variant. CONTACTS_ONLY behaves as PRIVATE because the contact list
is a TS6 account feature we cannot read.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
viewer_limit went out with setupstream and was then never looked at
again - admit() handed a peer connection to every join request that
arrived. Nothing establishes that the server turns anyone away, so the
setting was advisory at best.
The publisher is the only side that can enforce it: it is the one
handing out peer connections, and in P2P mode each one is another
encode. respondJoinStream(accept: false) was already plumbed end to end
down to decision=0 in the connector; it just had no caller.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
TS6 shows a settings dialog before going live; this builds the same set
into webspeak3, split into Basic (preset, capture audio, privacy) and an
Advanced section (resolution, FPS, bitrate, audio bitrate, viewer limit,
connection mode).
The three numeric setupstream fields are enums lifted out of TS6's own
main.js rather than guessed (findings §10): source NONE/CAMERA/SCREEN/
WINDOW/EXISTING_SESSION, accessibility NONE/PUBLIC/CONTACTS_ONLY/PRIVATE,
mode NONE/P2P/SFU. We had been sending type=3 (WINDOW) unconditionally;
detectSourceType() now picks SCREEN for displaySurface === "monitor".
Resolution, FPS and the two bitrates are not protocol fields. They are
applied locally: capture constraints, track.contentHint, and
sender.setParameters() with encoding.maxBitrate. bitrate= on the wire is
advisory - the server echoes back its own number either way.
Connection mode "Server" (SFU) is rendered disabled with a tooltip. That
path is a separate transport (requeststreamsfuaccessinfo -> mediasoup)
that we have not built, and announcing mode=2 without it would publish a
stream nobody could watch.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The other direction, live-verified against TS6 6.0.0-beta12.1: a real
client rendered our video. Connector gains setupstream, stopstream and
respondjoinstreamrequest; the browser gains publish.ts and a toolbar
button.
The publisher offers. TS6 puts the first SDP in respondjoinstreamrequest,
so the side that owns the stream is the side that makes the offer - the
mirror of how it answered us when we were watching. Its reply confirmed
the key rule found in 7a8a1ea from the other side: TS6 sends us
args.answer, exactly as it expects args.answer from us. The key is always
named after the cmd.
The notify filter had to be fixed first. It matched
starts_with("notifyrespondjoinstream"), which drops the inbound
notifyjoinstreamrequest - so every viewer asking to watch *us* was
silently discarded, and the whole publishing direction was mute. Match
ends_with("joinstreamrequest") instead.
P2P mode is a mesh with no SFU in the path, so each viewer gets its own
peer connection and its own encode. Watching and broadcasting can run at
once, so the two panels stack in a shared container rather than both
anchoring to the same corner.
Note for later: we send bitrate=1500000 and the server reports 58208
back. It does not take our value - a real TS6 client showed 50880. Looks
server-side, and it does not stop the connection.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Live-verified against TS6 6.0.0-beta12.1: the working payload is
{"cmd":"answer","args":{"answer":"<sdp>"}}. Audio and video RTP now
arrive from a real TS6 publisher into the browser.
53f6856 sent the bare SDP string instead, inferred statically from an
`answer` branch in the inbound dispatcher that references no key
literal. The inference was wrong - that branch delegates the object
read to a shared JSON helper, and the key lives there. A branch with no
key literal in it means the read is elsewhere, not that there is no key.
The wrong shape is completely silent: the server accepts and routes the
command, and the client discards it. Only getStats() shows it, as TS6
answering our connectivity checks while never sending one of its own
(requestsReceived=0) - it replies from the credentials in its own offer
without ever having applied a remote description. So drop the 5 s
retry-in-the-other-shape fallback, and keep send_with_result on
streamsignaling so a refused command at least surfaces as an error.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
crypto.randomUUID() exists only in a secure context, so opening a self-hosted
instance over http on a LAN IP threw at module load - before React rendered
anything - and left a blank page with no visible cause.
Falls back to a v4 id built from crypto.getRandomValues(). These ids are local
identifiers (identities, sessions, whisper lists), not secrets.
navigator.mediaDevices was already guarded, so the mic just reports "requires
HTTPS (or localhost)" as intended.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
TeamSpeak.dll's inbound signaling dispatcher LEAs a key literal in every
branch that reads an object out of `args` (decision/offer for joinResponse,
sdp/mid/mLine for iceCandidate) and none in the answer and offer branches,
whose handler ends in StreamP2P::SetAnswerString(const std::string&).
That is static evidence only - TS6 has never had an answer from us to react
to, and it drops an unreadable payload silently - so the viewer re-sends the
object form after 5s if nothing connected. The first live test settles it.
Inbound offer/reconnectOffer now accept both shapes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Adds web/src/stream.ts, the receive-only RTCPeerConnection that takes TS6's
SDP offer out of notifyrespondjoinstreamrequest, trickles ICE both ways over
notifystreamsignaling and hands the remote MediaStream back.
App.tsx only wires it up: a client with client_is_streaming gets a requeststreaminfo
(that property is the *only* way a late joiner learns a stream is running), a
badge in the tree, a context-menu entry and a floating video panel.
Also adds the missing requestStreamInfo path in the gateway - the connector
already had `streaminfo <clid>` on stdin, nothing could reach it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
- Honeypot field ("website", hidden via CSS + tabIndex -1): any
non-empty value silently short-circuits to a fake success response
without logging or filing anything, at near-zero cost to real users.
- Tag created GitHub issues with the feedback category (bug/idea/
other) alongside the existing "feedback" label, for easier triage -
GitHub auto-creates labels that don't exist yet.
- Rotate feedback.log once it crosses 5MB (move to feedback.log.1) so
a busy instance doesn't grow the file unbounded.
- Push the nudge bubble's cooldown out from the moment someone
actually submits feedback, so it doesn't ask again shortly after
they just did.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Previously the service worker used registerType: 'autoUpdate' with
the default injected register script - a new deploy would install
and activate a new SW in the background, but an already-open tab
kept running the old JS/CSS from memory with no indication a newer
version existed, short of a manual hard reload (or clearing SW/
caches by hand, which we had to do repeatedly while verifying
deploys this session).
Switch to registerType: 'prompt' and register the SW ourselves via
virtual:pwa-register/react (useRegisterSW), showing a small "new
version available" toast with a reload button when an update is
waiting. Also poll registration.update() hourly so long-lived tabs
notice updates without needing a fresh navigation.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Each menubar dropdown (Extras, Rechte, ...) opened flush with the
left edge of the specific menu item that triggered it. On a narrow
screen, any item not near the left edge (e.g. Extras) opened a
260px-wide panel that ran off the right side of the viewport.
On mobile, anchor the dropdown to the whole menubar instead of the
individual item, and let it span (almost) the full width with a
max-height + scroll for long lists (Extras has a lot of entries).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
.ts-menubar had flex-wrap set for mobile, but the actual row of
menu items lives in the nested .ts-menubar-items flex container,
which never wrapped - so on narrow screens items past a certain
width (like the new Feedback entry) were clipped off the right
edge instead of wrapping to a second line.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Move the floating feedback button up above the message compose bar
so it no longer overlaps the input/send controls.
- Add a small dismissible speech bubble inviting feedback, shown once
~45s after load and at most every 3 days (tracked via localStorage),
auto-hiding after 14s if not interacted with.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Move the feedback entry out of the Extras submenu into its own
top-level menubar item, and add a floating action button (bottom
right) as a second, always-visible entry point. Both stay gated
behind IS_OWN_HOSTED_INSTANCE like before.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- gateway: opt-in POST /api/feedback endpoint (FEEDBACK_ENABLED=1),
logs submissions to feedback.log and optionally files a GitHub issue
on Moepchi/webspeak3 when GITHUB_TOKEN is set and the user opts in.
Rate-limited per IP, CORS-aware for split-hosted deployments.
- web: new "Feedback" menu entry under Extras, gated to
client.webspeak3.de at runtime (IS_OWN_HOSTED_INSTANCE) so other
self-hosted/forked deployments and the public demo never see it.
New FeedbackDialog with category/message/email fields and an
opt-in "publish as GitHub issue" checkbox. New i18n strings (DE/EN).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Wire up vite-plugin-pwa: generates a web app manifest and a
precache-only service worker for the built app shell (JS/CSS/HTML/
icons). WebSocket (/ws) and file-transfer traffic are never
intercepted or cached. Disabled in dev so it doesn't interfere with
Vite's own HMR websocket.
- Add 512px + maskable 512px icons generated from the existing logo.
- Add iOS "Add to Home Screen" meta tags (manifest support there is
partial).
- Gateway: serve .webmanifest with the correct MIME type.
Two related bugs: a browser tab that lost network (or got backgrounded/
suspended on Android) could leave the connector alive on the TS3/TeaSpeak
server for minutes after the frontend showed disconnected, and multi-join
background tabs simply vanished on any drop instead of staying connected.
- gateway: WebSocket ping/pong heartbeat (20s) so a dead browser socket is
detected and its connector torn down promptly instead of waiting on an
OS-level TCP timeout.
- web: every session (active tab or parked multi-join background tab) now
remembers its connect params and can reopen its own socket after an
unexpected drop, with exponential backoff (1s-30s) so a persistently
unreachable gateway isn't hammered. Wake Lock keeps the screen (and the
tab's throttling) at bay while any session is live; a visibilitychange
sweep reconnects every dropped session once the page is visible again.
Mic stays off for background sessions throughout, same as before.
- handleMoveClient: route self-drags through handleSwitchChannel so
moving your own client still prompts for a channel password when
required, while admin moves of other clients keep bypassing the
target channel's password (matches native TS3/GTS behavior - only
the mover needs permission, not the password).
- MoveClientDialog: disable channel spacers as move targets, they are
display-only rows with no backing channel.
- connector moveclient handler: carry the already-decoded password
through the fallback branch (client not found in local state)
instead of hardcoding an empty password, so self-moves via that
path still authenticate correctly.
- App.tsx: memoize treeClients/queryClientCount so they are not
recomputed on every render (e.g. on unrelated "talkers" updates),
and simplify the duplicated displayClientCount ternary.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Lets users move clients via context menu or drag-and-drop (including spacers), show ServerQuery clients per favorite without reconnecting, and surface TeaSpeak/GTS notifyclientpoke reliably via connector fallback plus tsclientlib parse fallthrough.
EOF
Co-authored-by: Cursor <cursoragent@cursor.com>
- Connection log only ever rendered the single latest entry
(log.slice(-1) -> log.slice(-50)), and appendLog grew log[] unbounded
- Mic stayed off after switching back to a parked multi-join tab
(added ParkedSessionState.micWasOn, restore mic on switch-back)
- Packet-loss heuristic guessed fraction-vs-percent by magnitude, which
can't disambiguate; now branches on actual server type (GTS vs TS3)
- serverGroups/channelGroups/permissionCatalog/banList/fileBrowser were
page-global caches never invalidated on multi-join tab switch, so a
newly active tab could show another server's stale data
- ServerQuery clients were filtered from the client list but still
counted in the online-total fallback; total now matches the list
- gateway disconnect() resolved before the connector child process
actually exited, allowing two connector processes to run briefly on
a fast reconnect; now waits for exit (with a hard-kill fallback)
- switching a parked multi-join tab back in replayed a spurious
whisper-target log entry and resent setWhisperTargets even when
nothing changed, because the diff was against the wrong tab's ref
- double-click-to-join channel detection used module-level state,
so a click in one multi-join tab could pair with a click in another
tab's tree as a false double-click; now keyed per session
Note: could not verify with a full cargo build - the PR's own
'Update tsclientlib' commit (cd6928b) points at a tsclientlib submodule
commit that isn't pushed to any reachable branch (not even the PR
author's own fork), so nobody can currently build this PR end-to-end.
That is unrelated to these fixes.
Joining a password-protected channel after connecting silently failed
with only a generic error in the log - there was no way to enter a
password except the initial-connect "default channel" field.
- connector: "switch" now accepts an optional base64-encoded password
and wires it through tsclientlib's existing set_password() API; a
ChannelInvalidPassword failure is reported as a distinct
channelPasswordRequired event instead of a generic error.
- gateway: forwards channelPassword through switchChannel and remaps
the connector's snake_case event to the frontend's camelCase shape.
- web: new ChannelPasswordDialog prompts for the password (and flags
a wrong retry); the password is cached in memory for the session so
re-entering an already-unlocked channel doesn't prompt again, and
the cache is cleared on disconnect.
Also includes two earlier Pulse-theme CSS fixes (bottom-toolbar
dropdowns opening off-screen; caret button height mismatch) and the
Speaking Now bar / Pulse Phase D wiring from this session.
zh-CN i18n adapted from MIKU-N's fork (github.com/MIKU-N/webspeak3):
new web/src/locales/zh-CN.ts, wired into i18n.tsx's Lang type, system
language detection, language preference persistence, the app.language
option list, and a new document.documentElement.lang sync effect.
App.tsx's language dropdown and the README feature table updated to
match. Missing keys naturally fall back to English via the existing
translations[lang][key] ?? translations.en[key] ?? key chain.
Also adapted from the same fork: the runtime stage's Dockerfile now
strips npm/npx (and npm's cache/package tree) after installing the
gateway's production deps, since nothing in the running container
invokes either afterwards - shrinks the image and drops npm's own CVEs
from the final attack surface. Adds a HEALTHCHECK that curls the
gateway's own port via Node's fetch.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Exposes autoGainControl as its own Options -> Aufnahme toggle (was
implicitly left to the browser default) and requests the pipeline's own
48kHz sample rate explicitly, so the mic doesn't need an extra internal
resample before the browser's own AEC runs. Both are standard
getUserMedia constraints, honored the same way by Chromium and Firefox
(unlike vendor-prefixed googEchoCancellation-style flags, which only
affect Chromium).
Helps speaker+mic (no headset) setups where AGC re-amplifying the mic
signal after AEC can bring back audible echo residue - see #2.
Lets users build their own theme packages from Options > Design: pick a
structural base (Standard or Nova), write free-form CSS, and save/select
it locally. Supports duplicate, export/import (JSON), and delete.
Custom CSS is injected via a dedicated <style> tag while the theme is
active. Fixes the built-in theme variable rules (.ts-app,
.ts-app.ts-theme-dark, .ts-app.ts-design-nova) so a plain .ts-app { ... }
override in custom CSS always wins, by wrapping them in :where() to
strip their specificity - previously the compound selectors always beat
a same-specificity custom rule regardless of injection order.
Standard/Nova behavior is unchanged when no custom theme is selected.
- Restyle classic top menu bar into pill-chip items merged into the
same row as the WebSpeak3 logo/server/status cluster, collapsed
behind a hamburger button with an outside-click/Escape-aware
dropdown panel (nested submenus flip to open leftward to avoid
clipping at the viewport edge).
- Make the Connect dialog the sole visible surface while
disconnected in Nova: it auto-opens on load and after every
disconnect, and the app chrome (menu/toolbar/body/log) is hidden
behind it until a connection succeeds.
- Rebuild the Connect dialog for Nova to match the TS6 Redesign
mockup's dedicated Connect screen: centered hero (logo/title/
subtitle) above an elevated card, a chevron-toggle "Erweiterte
Optionen" moved under the nickname field, reordered ghost/primary
footer buttons, and a fixed settings-gear shortcut into Options.
The 11 existing form fields/handlers are shared with the Standard
dialog via one JSX tree, decorated only through small nova ternaries.
- Nova starts with an empty server-address field instead of the
Standard theme's "localhost" default.
- All changes scoped under .ts-app.ts-design-nova (or nested
classes); Standard theme verified pixel- and behavior-identical
throughout via repeated live comparisons.
Both checkboxes were disabled stubs; the underlying protocol field is
hardcoded to None in tsclientlib and not exposed as a settable option,
so the feature can't be implemented. Removed from Connect and
Favorites dialogs plus the now-orphaned i18n keys (DE+EN).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The gateway's WebSocketServer only listens on /ws (gateway/src/index.ts),
but the VITE_GATEWAY_URL build-time override connected to the bare host
instead - causing 'Could not reach the gateway' on split-hosted deploys
(e.g. client.webspeak3.de -> gateway.webspeak3.de). Now /ws is always
appended, whether the URL comes from the same-origin fallback or the
override.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>