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>
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>
Status icons and group badges previously sat right after the name with no
push-right, so they clustered close to it instead of at the row's right
edge like the poke button already does. Wrapped them in a flex span with
margin-left: auto to match.
Also added temporary eprintln logging of each channel/server group's
resolved icon_id, to check whether this server's groups actually have
custom icons assigned (native TS3 doesn't show a badge for groups without
one either) before assuming the icon feature itself is broken.
Group icons were entirely missing from the data model - GroupEntry only
carried id/name. Added icon_id (from ServerGroup/ChannelGroup's Icon field)
through connector -> gateway -> frontend, matching the same channel-0
icon_<id> file convention already used for server icons (#77), reusing
that dialog's fetch/cache/render plumbing (serverIconImages, iconDataUrl).
Client rows now render a small badge per server group with a non-zero
icon, positioned after the name/status icons (i.e. on the right), instead
of not existing at all. Also added a 🔒 status icon for clients who aren't
muted but still can't talk due to insufficient talk power in a moderated
channel (previously no icon indicated this state at all).
The previous fix only accounted for the local mute toggle. In a moderated
channel (one with a talk power requirement) a client without sufficient
talk power still has selfActive/VAD firing locally and no local concept of
whether they're actually allowed to transmit, so the indicator stayed on
regardless.
The connector now computes has_talk_power per client from the book state
(talk_power_granted || talk_power >= channel.needed_talk_power), mirroring
tsclientlib's own internal intern_can_send_audio moderated-channel check,
and threads it through gateway and frontend. The talking indicator (both
the own-client injection into displayTalkers and the general per-client
render in ChannelTree) now requires hasTalkPower too.
selfActive is driven by MicCapture's local VAD (raw input level), which has
no notion of the input-muted state - only the actual audio send (onFrame)
checked inputMutedRef. So muting the mic still lit up the green talking
indicator on your own row locally, even though nothing was being
transmitted.
servergrouplist/channelgrouplist decline silently on the server when the
account lacks permission to see them (no reply at all - same behavior as
banlist/complainlist elsewhere in this app). The permissions editor's
group list only rendered when it had data, so a permission-limited
account just saw a permanently blank left panel with no explanation
(reported by a screenshot from the real server).
Added the same loading/6s-timeout/"nicht verfügbar" fallback every other
list dialog in this app already uses (GroupAssignDialog, banlist, etc.) -
now shows a loading indicator, then a clear "unavailable" message
instead of nothing.
Verified in demo mode: both Server Gruppen and Channel Gruppen tabs still
list their (demo) groups correctly - no regression from the loading-state
change.
The previous \xHH unescaper treated every escape as exactly 2 hex digits
representing one raw byte. The native client's .ini format (Qt's
QSettings escaping) actually uses \x followed by 1-4 hex digits for one
UTF-16 code unit - astral characters (emoji) become two consecutive
escapes forming a surrogate pair, e.g. "\xd83d\xde43" for 🙃. The old
code only consumed the first 2 digits of each escape, leaving the rest as
stray literal text - exactly the mojibake ("Ø3dÞ43" etc.) a user hit
when importing an identity with emoji/Greek/Turkish letters in the name.
Root-caused directly from the user's screenshot (reverse-engineered the
old buggy output back to the real escape sequence) and confirmed against
their actual .ini file content. New parser correctly reconstructs
"[🙃 ] λşşαşşỉŋş88 / Möpchi" and a real connect using that identity's
exact key + nickname succeeds against the live server.
The connector now parses --identity either as our own JSON blob or as a
raw TS3 identity string ("<counter>V<base64-key>", the format inside a
native client's exported .ini and in teamspeak:// URLs) via tsproto's
Identity::new_from_str, which already handles both.
The web client's "Identitäten" > Importieren now recognizes a native
.ini file (looks for a [Identity] section), unescapes its \xHH-escaped
name field, and pulls out id/identity/nickname/phonetic_nickname directly
- no conversion needed, the raw identity string is stored as-is and self-
migrates to our JSON format after the first successful connect (same as
any other imported/created identity).
Verified with a real exported .ini file: parsing extracts the right
name/nickname/blob, and connecting the connector directly against the
real server with that exact identity string succeeds and is recognized
as the already-known account (its own channel/server group, not the
default guest group) - not just a fresh/anonymous identity.
The old dialog was a flat list with an inline rename field and a radio
button per row - visually and structurally nothing like the native
myTeamSpeak-style Identitäten window. Reworked to the same list + detail
panel layout: pick an identity on the left, edit its Name/Nickname/
Phonetischer Nickname on the right, see its Eindeutige ID (once known)
and creation status, Standard/Löschen/Exportieren buttons per identity.
Also added what was actually missing functionally, not just visually:
- Import/Export: an identity's opaque tsclientlib blob can be downloaded
as a JSON file and re-imported later (backup/transfer between browsers).
- Per-identity nickname: each identity now remembers its own nickname
(like native TS3), applied when switching identities in the connect
dialog and saved back after a successful connect - previously there was
only one global nickname shared by every identity.
Deliberately left out of scope (documented inline in the component):
myTeamSpeak cloud-synced identities (a whole separate account system this
self-hosted client has no equivalent of) and the manual "Sicherheitsstufe
erhöhen" button (tsclientlib already runs that proof-of-work step
automatically during connect whenever a server demands a higher level,
so a manual trigger wouldn't add functionality, only let you pre-compute
it before connecting).
Verified interactively in demo mode: dialog renders in the new layout,
fields are all editable, Standard/Löschen/Export honor their expected
enabled/disabled states.
The "Rechte" top menu's four previously-disabled items now open a tabbed
editor matching the real TS3 client's window: Server Gruppen, Client
Rechte, Channel Rechte, Channel Gruppen, Channel Client Rechte. For each
tab you pick a group/channel/client (or combination), see its currently
assigned permissions in a filterable table, add new ones from a searchable
catalog, and remove existing ones.
Connector: new servergrouppermlist/channelgrouppermlist/channelpermlist/
clientpermlist/channelclientpermlist request handling (unified behind one
"permlist <scope> ..." stdin command and a single-target pending-list
mechanism, mirroring the existing permoverview pattern's name-resolution
cache) plus servergroupaddperm/-delperm, channelgroupaddperm/-delperm,
channeladdperm/-delperm, clientaddperm/-delperm, channelclientaddperm/
-delperm for mutating them, and a "permissionlist" command to expose the
full permission catalog (needed for the "add permission" picker).
Verified against the real server: permission list/catalog requests reach
the server correctly. The test guest account turns out to lack rights to
see permission names/IDs at all (server replies with only the hierarchy's
group-boundary markers, no populated permid/permname) - same class of
account-permission ceiling as banlist/file uploads/etc. earlier in this
project, not a bug in this feature. Add/remove wire commands support both
numeric permid and permsid addressing per the protocol, so this should
work fully for an account with actual view rights (e.g. the real server
admin), even though it couldn't be exercised end-to-end with this guest
account. Full interactive verification (list, add, remove) done in demo
mode instead.
"Rechteübersicht" (viewing another client's computed effective
permissions with grant provenance) stays disabled - a materially
different feature the connector doesn't support.