Server and channel group ids overlap, and the editor kept both groupId
and the loaded entries across tab switches - so after switching from
server group 6 to the channel group tab, delete/add hit channel group 6
while the table still showed server group 6. The group selection now
resets between the group tabs, the new tab reloads, and entries are only
shown while they belong to the target on screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
wireSocket's handlers were created once per socket, so they kept the
state from connect time: "ignore contact" never applied, the file list
didn't refresh after uploads, the channel-password dialog lacked the
name, log texts stayed in the old language and reconnect restarted the
mic with old settings. The handlers are now rebuilt every render and
the socket calls the latest version through a ref.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
New submissions are "pending" until approved by the STORE_ADMIN_TOKEN
holder via the new /api/store/admin review page (CSS shown as text only).
Theme CSS is normalized (comments, escapes, case) before checking and may
no longer load anything: no @import/@font-face, no image-set()/src()/etc.,
url() only for inline data: images. Already-approved themes failing the
new check are hidden. Store file is written atomically.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
- A1: resume a suspended AudioContext on any click/keypress, so playback
works even with the mic denied or absent
- A2: own mute state and message sounds follow ownClientId, not the
nickname, so they keep working after a rename
- A3: startMic/stopMic generation counter - a stop during getUserMedia no
longer gets overridden by the late mic; failed starts clean up
- A4: a failed reconnect of a previously connected session keeps its tab
and retries instead of removing it
- A7: new AudioPlayer instances get the current volume and output device
- A8: AEC3 is (re)created with its AudioContext instead of only on toggle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
- /ws: optional ALLOWED_ORIGINS allowlist, connection limits per IP and
in total, 34 MiB maxPayload (uploads capped at 24 MiB client-side)
- connect: reject malformed host/nickname before spawning a connector;
args passed as --flag=value, secrets via env instead of argv
- connector: 25 MiB download cap, 512 KiB for auto-fetched icons, friendly
error for blocked private targets (tsclientlib: ALLOW_PRIVATE_TARGETS)
- feedback: contact e-mail never goes into the public GitHub issue;
mentions/links in the issue body are neutralized; form says so
- rate limits: TRUST_PROXY-aware client IP, expiring limiter maps
- security headers (nosniff, frame options, CSP on served HTML)
- web: icon downloads requested once per path instead of on every update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
- Dockerfile: install ca-certificates in the runtime stage. Its absence
broke the Rust connector's native-tls HTTPS call to the TeamSpeak
nickname-lookup API for every nickname-based connection (GitHub
issue #11, "mgonline" report) - Node's own bundled certs masked this
everywhere else in the gateway, so only that one HTTPS call failed.
- tsclientlib bump: resolver.rs now surfaces the real per-step errors
instead of an empty list when every resolution method fails (see
that submodule's own commit for detail).
- gateway: new ALLOWED_SERVERS env var lets self-hosting admins lock
their instance down to specific server(s) (with *.example.com
wildcard support) instead of accepting connections to any address.
Documented in the README env var table.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Two more unhandled-EventEmitter crash/latency bugs in the same spot as the
last one:
spawn() itself can fail asynchronously (bad CONNECTOR_BIN path, no exec
permission, or EMFILE/ENFILE under load) and emits an unhandled 'error' on
the child process object - just as fatal to the whole gateway as the stdin
EPIPE case, and more likely to hit exactly when the most connections are
already open. Now caught and turned into a normal error event.
disconnect() attached its exit listener with child.once("exit", ...), which
never fires if the connector already exited before disconnect() was called -
'exit' fires exactly once, and by then it's already happened. That always
fell through to the 3s hard-kill timeout for a process that was already
gone, needlessly stalling explicit disconnects and same-socket reconnects
after the connector died on its own. A childGone flag, set by both the new
error handler and the existing exit handler, lets disconnect() skip that
wait entirely when there's nothing left to wait for.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
writeLine()'s killed check only reflects Node-side .kill() calls, so it
can't catch the connector exiting on its own (e.g. the TS3 server drops
it) and closing its stdin first. Writing to that closed pipe threw an
unhandled EPIPE 'error' event, which Node treats as fatal - crashing the
gateway and every other client's live session along with it. Listening
for the error on child.stdin turns it into an isolated write failure.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The Design Store defaults to the maintainer's shared catalog for
every build, but a self-hoster running their own gateway store
(STORE_ENABLED=1) had no way to actually point their Docker build at
it - VITE_STORE_URL existed in App.tsx but wasn't wired as a build
arg, and neither it nor the gateway-side STORE_* vars were documented
anywhere. Add the --build-arg STORE_URL passthrough (same unset-means-
no-override convention as DEFAULT_SERVER) and document both it and
the STORE_ENABLED/STORE_DATA_FILE/STORE_ALLOWED_ORIGIN/STORE_ADMIN_TOKEN
gateway env vars in the README.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The store was previously derived per-instance from VITE_GATEWAY_URL,
so every self-hosted Docker image silently got its own empty,
isolated catalog instead of sharing the curated one. The store is a
single curated catalog (gateway/src/store.ts), unrelated to which
TS3/TeaSpeak gateway a build otherwise talks to, so all builds now
default to the same central endpoint. VITE_STORE_URL still lets a
self-hoster point at their own store instead. DEMO_MODE keeps the old
same-origin derivation, which 404s on the static demo host, so the
public demo can never write to the real production store.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Same pattern as the recent store.ts extraction: feedback-log writes and
connection-event logging move from inline file/console I/O in index.ts
into activity-log.ts, called via logFeedback()/logConnectionEvent(). The
public default behavior is unchanged (JSON-lines file with rotation,
console logging gated by LOG_CONNECTIONS).
This is the piece of the private SQLite overlay's persistence swap that's
a clean drop-in replacement - the private VPS gateway now imports the same
two function names from its own activity-log.ts (SQLite-backed) instead of
patching these call sites into a forked index.ts.
Note: the private overlay's live host-ban enforcement (blocked_hosts
table, heartbeat-driven disconnect) is NOT extracted here - it has no
public equivalent and touches the WS connection/heartbeat control flow
directly, not just a persistence call. Left as-is for now.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Moved all store code (constants, cache, handlers) from index.ts into
store.ts verbatim, no behavior change. It has zero private-VPS
modifications (unlike feedback/connection persistence, which the private
overlay patches to use SQLite), so this file can be copied unmodified into
the private overlay - future store changes there no longer need a manual
diff/patch against a hand-patched index.ts.
A full separate microservice was considered but rejected: this repo builds
one Docker image (connector + web + gateway) and self-hosters run one
container via docker-compose.yml; splitting the store into its own service
would force a second mandatory container for what's an opt-in, currently
tiny feature. A module boundary gets the actual pain point (patch-merge
friction) without that cost.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
STORE_MAX_THEMES was 2000, meaning the in-memory store cache could
theoretically grow to ~900MB (2000 * up to 450KB CSS+screenshot each) with
no eviction. 300 bounds that to ~135MB, which is proportionate for what is
currently a niche community design store.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Explicit red instead of the theme's accent color, so it stays visually
distinct as a destructive action regardless of the active design. The
confirm() prompt before deletion was already there.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
.ts-design-theme-card has align-items:flex-start, so its flex children
shrink to content width unless given width:100% explicitly (like
.ts-design-theme-card-select already does). The actions row was
missing that, so flex:1 on its buttons had no extra width to grow
into - they stayed small and left-aligned no matter how the buttons
themselves were styled. That's why nothing helped until now.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The 2x2 layout looked worse. flex:1 on a 4-in-a-row already makes the
four buttons together fill the card's full width - that was right the
first time, just needed the mismatched-glyph fix, not a layout change.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The edit/duplicate/export/delete row mixed three text glyphs with a
color emoji (🗑), which render at different sizes and weights across
platforms - that was the actual cause of the row looking uneven, not
just sizing. Swapped all four for matching stroke-style SVG icons.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The store's install button had accidentally inherited the icon-row's
big-icon sizing (shared class) and rendered huge. Gave it and the
publish/new-design/import/store buttons proper themed gradient styling
instead of the browser default, and moved "back" to a top-left header
button instead of stacking it under publish.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Themes published before this schema existed have no screenshot/rating
fields at all, so `t.screenshot !== null` (undefined) and the rating
counters (undefined += n) were both wrong for them.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Möpchi/Moepchi can only be used as an author name with a matching
STORE_ADMIN_TOKEN bearer token. Submissions can now include an optional
description and a manually uploaded screenshot (data URL, capped size),
shown on browse cards, plus a simple 1-5 star rating (one vote per IP
per theme).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The edit/duplicate/export/delete row used 12px muted-color icons with no
horizontal padding - hard to hit and easy to lose against darker custom
themes. Bump size/padding and switch to the full-contrast text color.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Opt-in gateway endpoints (STORE_ENABLED=1, off by default like every other
optional feature here) to browse and publish community themes, reusing the
existing {name, baseTheme, css} export/import shape so no new packaging
format is needed. CSS is sanitized against @import and remote url() before
being accepted, since it's rendered on other users' pages. Client side adds
a "Store" button to the design picker with a browse/install and a publish
view built on the same DesignPanel patterns as import/export.
No website-side store yet - deliberately client-only for the MVP.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
setMonitoring() connected the raw pre-AEC3 mic source straight to playback,
so the self-test howled regardless of AEC3 - it was bypassing the whole
cancellation path entirely, not failing to cancel. Mirror the processed
signal into the ScriptProcessorNode's own output and monitor that instead.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The requested AudioContext sampleRate is only a hint - some backends
(notably Linux/PulseAudio) silently run at their own native rate anyway.
AEC3 was told the requested rate (48000) regardless, so its internal
frame timing drifted from the actual sample rate its buffers came in at,
audibly heard as the echo's pitch descending with each repeat instead of
being cancelled.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Off-by-default toggle in the recording options (Aufnahmeoptionen), using
@ennuicastr/webrtcaec3.js (Google WebRTC's AEC3, compiled to WASM) as a
stronger supplement to native browser echo cancellation - addresses the
speaker+studio-mic (no headset) case from issue #2. Native echoCancellation
is turned off while this is enabled since running both fights the same
signal. Assets are synced from node_modules into public/vendor/ at
dev/build time rather than committed, since the module's glue code needs
its .wasm co-located under an exact, unhashed filename.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
WEB_STATIC/WEB_DIST were mentioned once in passing for local dev; the
rest (feedback, broadcast, TLS, connection logging) weren't documented
at all, so self-hosters had to read gateway/src/index.ts to discover
them.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The WEB_STATIC file server checked containment with a plain string
prefix (filePath.startsWith(WEB_DIST)), which a sibling directory
sharing that prefix passes without actually being inside WEB_DIST -
e.g. WEB_DIST "/app/web/dist" also accepts "/app/web/dist-backup/...".
Now requires an exact match or a path-separator boundary.
WEB_STATIC defaults to on, so this affects any self-hoster serving the
UI from the gateway with the stock config, not just this deployment.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
socket.on("message") parsed JSON and ran the whole handler switch with no
try/catch. Since the callback is async, any throw - malformed JSON from
any connected browser tab, or a handler throwing on unexpected input -
became an unhandled rejection and crashed the entire gateway process,
dropping every other connected user's live session. Now wrapped so one bad
message only errors back to that socket.
connection.ts wrote several fields (permission scope/ids, whisper targets)
straight into the connector's line-based stdin protocol without stripping
embedded CR/LF, unlike the sanitization already applied to every other
free-text field in the file - a newline in one of them could smuggle in a
second, attacker-chosen connector command. All stdin writes now go through
one writeLine() helper that strips embedded CR/LF, closing this for every
call site at once instead of patching each one individually.
Bumps the tsclientlib submodule for the matching SSRF/panic fixes there.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The Nova connect dialog styles its buttons per-class rather than via
the shared wrapper selector Standard/Pulse use. The Cancel and Connect
buttons had their Nova classes, but "In new tab" had none, so it fell
back to unstyled browser-default chrome instead of matching Cancel's
outline style.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
.ts-dialog-backdrop was z-index:15 while the donate/feedback FABs are
z-index:500, so any modal (connect dialog, settings, etc.) opened while
those buttons are visible left them floating undimmed in front of the
backdrop instead of behind it. Bumped the backdrop above the FABs but
below the update-available toast (600).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Nova relocates the self/voice toolbar below the chat panel, adding ~6.7rem
of footprint the fixed-position donate/feedback buttons didn't account for,
so they landed on top of the composer's send button. Also the chat
textarea's auto-resize effect only ran on chatInput/theme change, so on
first mount (while the chat panel was hidden pre-connect, scrollHeight 0)
it locked in a near-zero height that never got recalculated after
connecting.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Landing pages can now send visitors straight into a TeamSpeak server:
a ?connect=host&nickname=&channel=&token= share link auto-connects on
any deployment, or a self-hoster can bake in a default server at build
time (VITE_DEFAULT_SERVER/VITE_DEFAULT_CHANNEL, mirroring the existing
DONATE_URL Docker ARG pattern) so every visitor auto-joins with zero
params. A share link always overrides the build-time default. Waits
for the mandatory first-visit ToS gate where applicable, falls back to
a prefilled reopened connect dialog on failure, and generates a
Guest-XXXX nickname when none is available.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
An already-connected client only learned about another client's TS6
stream via the initial snapshot; a live start/stop toggle mid-session
went out via notifyclientupdated, whose attribute list didn't include
client_is_streaming, so tsclientlib silently dropped it. Fixed upstream
in tsdeclarations/Messages.toml; only a reconnect used to pick it up.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
client.webspeak3.de's gateway has answered setupStream/joinStream/
sendStreamSignal since v0.11.0-beta.1 (2026-09-11); STREAM_UI_ENABLED
was flipped back on then but this doc never caught up.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Previously the container was killed with connector child processes still
mid-session, so the target TS3/TeaSpeak server only noticed the drop via
its own timeout. A client's automatic reconnect (see App.tsx's
scheduleReconnect) landing before that timeout got rejected as a
duplicate identity (e.g. ClientTooManyClonesConnected).
Now SIGTERM disconnects every live connection first (bounded to 5s) so
the target server frees the slot immediately. The connector's own
resulting "disconnected" event is suppressed from reaching the browser
during shutdown (shuttingDown flag) so the browser sees a raw socket
close, which it treats as an unexpected drop and retries, rather than an
explicit disconnect, which it treats as deliberate and gives up on.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Lets the operator send a free-text maintenance notice to every connected
browser tab via POST /api/broadcast (Bearer BROADCAST_TOKEN). Reuses the
existing {type:"notice"} WebSocket message the frontend already renders
for the SIGTERM restart notice, so no frontend changes are needed. Off
(404) unless BROADCAST_TOKEN is set, same opt-in convention as
FEEDBACK_ENABLED/LOG_CONNECTIONS.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Translation strings were split across inline TS objects in i18n.tsx
(de/en) and separate .ts modules (zh-CN, fa). Consolidated into one
JSON file per language under web/src/locales/ - translation tools
(e.g. Weblate) can read/write these directly, and i18n.tsx is now
just the loader/lookup logic. No string content changed.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
- New locales/fa.ts, 618 keys, full parity with de/en/zh-CN
- document.documentElement.dir flips to rtl/ltr with the active language
- Language selector + system-locale auto-detect (fa-*) updated
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Feedback dialog (incl. new report category), ToS modal, restart
notice, Hilfe menu, channel password dialog, custom design manager,
and the whole screen-share/publish feature were falling back to
English. Also removed connect.sendMyTeamSpeakId and
favorites.enableMyTeamSpeak, which no longer exist in de/en.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU