rename_all on the enum only renamed the kind tags, so the channel switch
entry arrived as from_channel/to_channel and the Server tab showed the raw
{fromChannel}/{toChannel} placeholders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
After a stall (CPU steal on the host), the missed 20 ms ticks fire in a
burst. With an unbiased select a tick could run before the already
received voice packets were processed, find an empty queue and play Opus
loss concealment, which sounds like a slowed-down tape.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
A dropped gateway connection reconnected with the original connect
parameters, so everyone landed in the server's default channel again.
The reconnect now aims at the channel the user was in ("/<id>"), with
its cached password if one was entered.
The client log also records why a gateway connection ended: the
WebSocket close code, or the keepalive watchdog firing. Until now a drop
left no trace on the client side.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
GitHub's image service answered 429 for the whole 20 seconds after the
v0.16.0-beta.5 release, so the Bluesky post went out without a card. Back
off 15/30/45/60 s and honor Retry-After (capped at 60 s), which fits in
the job's 5-minute timeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
A whole file used to cross the gateway as a single base64 line, which
readline, JSON.parse and JSON.stringify each copied: over 100 MB of heap
for one 25 MB download. Two parallel downloads ran the gateway out of
memory on 2026-10-11.
Downloads now arrive as fileDownloadChunk events that the web client
joins back together. Uploads go out as uploadFileChunk pieces when the
gateway announces "chunkedUpload"; older gateways still get the single
uploadFile message, and the gateway keeps accepting it from cached
clients.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Posts the first paragraph of the release notes plus the link. Notes with
<!-- no-social --> are skipped; a manual run defaults to a dry run that only
logs in and prints the post.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
On a flaky network every successful reconnect reset the backoff to 1 s,
so a connection that kept dropping after a few seconds made each tab
reconnect every few seconds. The backoff now starts over only once a
connection held for 30 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Each "connect" spawns a new connector and a socket could send any number
of them, so a handful of sockets could join-flood a TeamSpeak server
through the gateway. New CONNECT_RATE_LIMIT (default 30/min per IP).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
TRUST_PROXY=1 trusted CF-Connecting-IP and the first X-Forwarded-For
entry, both of which a client can send itself when the proxy in front
isn't Cloudflare (nginx's $proxy_add_x_forwarded_for only appends), so
per-IP limits could be sidestepped. Now TRUST_PROXY=1 takes the last
X-Forwarded-For entry (the one the proxy appended), and the new
TRUST_PROXY=cloudflare takes only CF-Connecting-IP. The bundled compose
file (cloudflared) switches to cloudflare.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
With ALLOWED_SERVERS set, the gateway now passes the list to the web client
it serves, and the connect dialog shows a dropdown of those servers instead
of a free-text address, or a locked field when only one is allowed.
SERVER_PICKER=0 keeps the plain text field; lists with *. wildcards can't be
enumerated and keep it too. Entries may now carry a port, which is the
address offered in the dialog (the allowlist still ignores ports).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Chat now renders [size], [left]/[center]/[right], [list]/[*], [hr] and
[noparse] plus the Markdown TS6 sends (emphasis, code, links, images,
quotes, lists, headings, rules, escapes). [img] stays a link unless
"Load images in chat" is enabled in Options -> Application (off by
default, since loading reveals the reader's IP to the image host).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Native TeamSpeak clients wrap links in [URL] tags when sending and only
link tagged ones, so a bare URL typed in the web client stayed plain
text for them. Chat and offline messages now wrap bare http(s) URLs;
links that are already tagged are left alone.
Also stops the collected-URLs list from picking up "[/URL]" as part of
a link, by sharing the renderer's URL pattern.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Server, channel and private chat now render [b] [i] [u] [s] [color]
[url] (and [img] as a plain link), and bare http(s) URLs become links -
the welcome message's [URL]...[/URL] showed up as raw text before.
Built as React elements, so message text can't inject markup; only
http(s) links are allowed and [color] only takes a name or hex value.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The 20s servergetvariables poll is answered with notifyserverupdated,
which tsclientlib applies as a PropertyChanged per field even when
nothing changed - so every poll logged "server settings changed".
Only log for notifyserveredited, the one that carries an invoker.
In the classic design .ts-chat-panel lacked min-height: 0, so the
message list grew with every line instead of scrolling, pushing the
chat input off-screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Accessibility stage 2.
- The channel tree is an ARIA tree with one Tab stop. Up/Down/Home/End walk
the visible rows, Left/Right collapse, expand, or jump to parent and first
child, and selection follows focus. The server row is focusable too.
- Menu bar entries are buttons with aria-expanded. Dropdown and context
menus focus their first item on open, move with the arrow keys (except
inside the volume slider), and Escape returns focus to the opener.
- Bookmark and contact list items, chat tabs and server tabs work from the
keyboard (Delete closes a tab, since its × can't be a nested button).
- <main> landmark and a level-1 heading for screen-reader navigation.
An axe-core scan of the connected UI in every built-in design turned up
contrast failures, three of them real bugs: the active server tab, the
update toast and the feedback bubble sit on a fixed dark background but used
the theme's text colour, so the light theme showed dark-on-dark text. Also
darkens the light theme's muted text, the donate button, and lifts
GreenTeaSpeak's muted grey to 4.5:1 (its selection colour stays native).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
It clicks in the mix and Edge delivers Windows system audio as silence;
parked until there's time to move capture to an AudioWorklet. The code
stays in place behind TAB_AUDIO_SUPPORTED.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The shared source is mixed in at -6 dB so music near full scale doesn't
clip with the voice on top. With AEC3 its blocks made the extra queue run
short now and then, which was padded with silence (clicks); it now skips
once and stays a frame ahead, capped to bound latency.
Drops the temporary diagnostics: Edge delivered silence for Windows system
audio even without the mic open, so the hint now points to sharing a tab.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Edge ran its echo canceller on the display-capture track (getSettings showed
echoCancellation: true on deviceId "loopback"), which subtracts exactly
what the speakers play - the whole signal. Voice processing is now off for
that track; noise suppression would mangle music anyway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Stopping it right away may end or silence the capture session the audio
track belongs to (suspected with Windows system audio in Edge). It runs at
1 fps and stops together with the audio.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Review S12: the banner loads from a host the server admin picks, which sees
the viewer's IP. It's now a switch under Options -> Application and is
requested without a referrer. Proxying it through the gateway would make the
gateway fetch arbitrary URLs, so that's left out.
Review S10: identities and favorite passwords stay in localStorage (the
native client keeps them in plain settings files too; favorite passwords
are already optional). The README now says so.
Also labels the dialogs' close buttons for screen readers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Dialogs move focus in on open, trap Tab, close on Escape, and return focus.
Toolbar icon buttons get aria-labels; away/whisper carets expose their menu
state. Channel and client rows are focusable: Enter joins/opens chat, Space
selects, arrows collapse/expand, the context-menu key opens the menu with
focus on its first item.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The new toolbar button asks the browser for a tab or window with audio and
mixes it into what the mic sends. It joins after AEC3, per 20 ms frame, so the
canceller only ever sees the mic, and while sharing the voice activation stays
open so music pauses don't cut out. Hidden where getDisplayMedia is missing
(mobile); a restarted mic picks the shared audio up again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Measured with relays that blackhole traffic:
- Gateway to TS server: tsclientlib reconnects on its own after a timeout or
server restart, but the connector ignored that, so the browser got no notice
and the new session stayed unsubscribed - everyone but us vanished from the
tree. The connector now emits "reconnecting"/"reconnected", resubscribes,
and pauses the server-variable poll meanwhile; the page logs both.
- Browser to gateway: a network that dies silently never closed the socket on
the page, which kept showing "connected" indefinitely. The gateway now sends
an app-level keepalive every 20 s (announced as "keepalive" in hello), and
a socket quiet for 50 s is handled as dropped and reconnected.
- Coming back online skips any remaining reconnect backoff.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
TURN_URLS on the gateway is handed to the browser in "hello" and added to the
STUN defaults for both watching and publishing. With TURN_SECRET (coturn's
use-auth-secret) each socket gets its own credential valid for 24 h; static
TURN_USERNAME/TURN_CREDENTIAL work too but are public to every visitor.
Also moves GATEWAY_FEATURES above the runtime-config comment it had split.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
A search field above the channel tree filters it live: a channel whose name
matches keeps all of its clients, a client whose name matches keeps its
channel, and the parent chain of every match stays so it is shown in place.
Collapsed channels open while searching; Escape clears the field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The connector now reports client_flag_avatar (the avatar's MD5) per client.
The browser derives /avatar_<uid> from the UID and fetches it through the
existing channel-0 file cache used for group icons, again whenever the hash
changes. Only the own channel and the selected client are fetched, so a big
server does not push every avatar through the gateway; avatars are capped at
512 KiB like icons. They replace the initials tile in the tree (Nova/Pulse),
the speaking-now bar, and appear in the client info panel.
Also fixes the Nova connect dialog staying open over an auto-connect: its
"forced open while disconnected" effect ran after the auto-connect had closed
it, and nothing closed it again once connected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The gateway now greets every browser with {type:"hello", features:[...]} so
the hosted client, which updates on every push, can hide what an older
gateway cannot do instead of hanging on it. A gateway without "hello" is
treated as the v0.14 feature set, which replaces the hand-flipped
STREAM_UI_ENABLED switch.
First feature behind it: "clientVolume". The client context menu gets a
0-200% slider, stored per client UID in localStorage. The connector applies
it to tsclientlib's per-speaker AudioQueue.volume while mixing, and keeps the
value across talk pauses, when that queue is torn down and recreated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
The connector is cross-compiled with tonistiigi/xx on the build platform
(pinned by digest); web-builder and gateway-builder also run natively there
since their output is platform-independent JS. Only the runtime stage runs
per target platform. README mentions the arm64 image.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
DEFAULT_SERVER/DEFAULT_CHANNEL used to be build args only, so pointing a
self-hosted instance at its server meant cloning the repo and rebuilding
the image. The gateway now reads them from its own environment and puts
them into the index.html it serves as <meta> tags (HTML-escaped; an
inline script would be blocked by the page's CSP). The client prefers
those over the build-time VITE_ values, which keep working as before.
Closes#12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
- A10: drop labels of unimplemented shortcuts, localize "Ctrl", never
fire shortcuts (Ctrl+D!) while typing in a field
- A11: in-memory localStorage stand-in when storage is blocked instead
of a blank page
- A12: invite link falls back to selecting the text without clipboard API
- A13: AEC3 script honors BASE_URL, failed loads are retried
- A14: shared downloadBlob helper, object URLs revoked with a delay
- A15: remaining hardcoded German/English strings moved to the locales
- A16: broken soundpack files show an error instead of failing silently
- A17: connect buttons no longer pass the click event as overrides
- A18: design base persisted from the resolved theme
- A19: no audio send() while the socket is still connecting
- S10: privilege keys are no longer persisted in localStorage
- S11: share links can carry the token in the fragment (#token=)
- oxlint: 0 warnings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
Viewer, publisher and streamInfos are global, so after a tab switch a
running stream's signaling went to the new server's socket and stream
infos showed up in the other tab under clids that name other people.
Parking a tab now stops watching/publishing (still via the old socket)
and clears the stream infos.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
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