The 2.x self-hosting and service-management guides, in English and Chinese,
leave this tree; main keeps them. The documentation site now publishes
docs/deployment.md in a Self-hosting group. It has no Chinese counterpart, so
the Chinese sidebar links the English page in the same place and marks it as
English, as the sidebar already did for English-only references; the 2.x
configuration link leaves that group. The homepage points its server link at
the deployment page, sends the 2.x media fallback sentence to the published
2.x pages and drops the service-management item. README, frp, website and
translation guide links that meant the 2.x guides now point to main, and the
publication test uses another published page as its fixture.
Integrate d32f2dc8 after independent reachability, session and rendered reviews. Keep HTTP-only preview identifiers and integer serialization guards, let Core own policy ranges, and wrap the share controls intrinsically on narrow layouts. The page now uses the shared document-title owner. Full Rust, WASM, protocol and 2382 Web tests passed; subsequent title checks and the final Core/Server suite passed.
With one owner for the slot, two gaps the session's many writers hid can be
closed in one place. A host registered over another now closes the one it
replaces, and a restore that finds the slot taken after its store opened
closes its own and leaves the room to that writer. A reconnect during a
history install could otherwise leave an open store that nothing closed.
The cleanup chain waits for closing to finish whatever each close returned.
One rejected close used to leave the chain rejected, so hosting was never
restored again in that session.
Step 6 of ADR-0015. The rooms this Browser hosts lived in two private fields
of ChannelSession, hostedRooms and hostCleanup, written from the host_bound
and host_input handlers, applyState, releaseHosts, restoreHosts,
registerBrowserHost, backupOwner, installRoomHistory and closeConnection, and
five sites extended the cleanup chain by hand. BrowserHosting in
browser-hosting.ts now holds each open host and its binding, the chain of
closing hosts that the next restore awaits, and the reason each stored room
could not open, which it publishes to view.roomOpenFailures as its only
writer.
The session no longer holds hostedRooms, hostCleanup, restoreHosts,
registerBrowserHost, browserStorage or setRoomOpenFailure. It keeps the
connection, the request correlator, the view and the App link, and gives the
owner six operations: view, socket, request, write, report and failures. It
calls eight in return: host, bound, input, update, restore, register, replace
and release. Every check after an await survives inside the owner against the
same map entry, binding, socket and session predicate, and each sequence keeps
its order of effects. The one reordering is in releaseHosts, where the hosts
start closing just before the App link closes instead of just after; the two
share no state.
Behaviour is unchanged. tests/channel-session.test.ts passes 638 of 638 with
no test edited. A new owner test shows that hosts released by an ended
session finish closing before the next session opens the same room.
A React reproduction accumulated 16 failed picture actions after their publications disappeared. The keyed feedback owner now receives the full live publication set, prunes retired results and sends late errors back to the existing banner policy. Room-view changes preserve live feedback; reconnect resets it. Scope identity suffices without an abort controller because this helper does not cancel the operation. TypeScript and 79 focused tests pass.
Room settings take Codex's form of the storage diagnosis, which carries the
help link. The follow correction on Codex's line and the stamp-following rule
on this branch compose: an activity that is gone keeps its waiting entry and
needs no decline, any other failed follow declines its successor. The
regression test covers both.
The session rejected a room voice bitrate outside 6,000 to 320,000 or from
a non-manager, a direct relay limit outside 1 to 20, and a screen title
longer than 64 UTF-16 units before sending them. The shared core rejects
each with the same code (forbidden, invalid_audio_bitrate,
invalid_relay_capacity, invalid_title), and every runtime runs that core.
The App branch reaches it unchanged: the App forwards capture_direct_limit
and capture_title as set_screen_direct_limit and set_title through its
Native session and returns the room's error code. The controls already
bound their input: the bitrate field is an integer kbps field between 6
and 320 shown only to managers, the limit is a select from 1 to 20, and
the title input has maxLength 64.
Title trimming and the blank-to-null mapping stay in the client. JavaScript
and Rust trim different whitespace sets, so the core does not normalise
identically.
The session tests now check that the room's rejection reaches the caller.
The room stamps a successor with its predecessor only in the snapshot of a
viewer that watched the predecessor and has neither joined nor declined the
successor, and it keeps the original predecessor when a pending successor is
replaced again. The Browser session now follows exactly that: a named
successor in a followable room is followed unless this page already holds it,
is opening it, or has declined it or its predecessor.
The local re-derivation of eligibility is removed: the checks against the
previous snapshot and local players, the search through pending waits, and
the rewrite of the predecessor in the projected view. A join error that
arrived before the snapshot naming the next successor used to delete the only
local link to it, so the viewer silently stopped following. That sequence is
now covered by a regression test.
The page records the sources it left until no followable snapshot contains or
names them, because a snapshot from before the leave can still name them. A
leave made offline is declined on reconnect. A follow whose join fails
declines that successor, so the room retires the handoff instead of naming it
on every snapshot, while a successor the room moved the handoff to is still
followed. The receiving method still comes from the page's own earlier
choice. Focus, waiting placeholders and picture-in-picture accept a successor
that names the original source of a pending one.
A watch_unavailable reply can precede a replacement projection held below the channel floor. Keep the existing waiting predecessor until a projection consumes or retires it, or the viewer leaves. Both video and screen successors reproduce the error-first ordering before the fix; the full integrated Web suite passes.
Integrate Claude queue through 374a92e5. The changes derive route, room-open and operation feedback from existing owners. Independent Chromium review covered real components and IndexedDB version rejection; integrated type checking and all 2409 Web tests pass with the reviewed corrections that follow.
PawnDetail, RoomCodeInput, RouteTree, ShareFailureHelp and ViewerOverview,
the room voice panel and its connection details, the participant topology,
the relay volunteer limits and the media failure resolver were reached only
from the development previews and their tests: an import trace from the
product entry without its DEV routes, from site/ and from scripts/ reaches
none of them. Their preview sections, the room voice preview hook and the
troubleshooting checks that only fed the removed dialog go with them, along
with their tests, their styles and the 51 copy keys nothing else uses, in
all five locales.
The document title helper stays: it is also preview-only today, but the
visual language standard names it as the owner of document titles.
The orchestration that used these helpers was retired in 5d4a67cf and
5126b9a0, leaving them reachable only from their own tests. The Browser-
rejected video check and its error, the encoded-frame maximum, the quality
label and whole-settings comparison (with the audio comparison it alone
used), and the unused PeerSnapshot, ChannelRequest and NativePageMpdTrack
types go. The video-only comparison, which the encoding pool and transport
still use, stays.
currentLang had no product caller; the tests that read the language through
it now read it through say(), the accessor the product uses.
The list and the room notice already say why this device could not open a
room. Room settings still called it offline. The settings line now reads the
same recorded reason through the same diagnosis, and falls back to the
offline text for every other unavailable room.
The diagnosis keeps both new facts, a viewer awaiting a route and a room that could not be opened here, and the session keeps the function form of error reporting beside the record of rooms it could not open.
Use the existing ViewerAudio output owner to distinguish ready element or WebAudio playback from a pending or failed sink. Retain local mute intent, show the playback action when unmuting triggers an autoplay pause, and restore the rendered state when the output recovers.
TypeScript and 21 related checks pass. Production-component Chrome controls verify sink refusal and retry; an independent two-stream test confirms that an old sink completion cannot mark its successor ready. Physical device removal remains separate acceptance.
The Rust health endpoint returns a fixed text marker, so the operator check must not decode the former JSON response. Carry the accepted optional full-revision comparison from maintenance and exclude the operator updater script from automatic product-release planning.
Eleven local CLI cases exercise real HTTP with an SSH substitute, including healthy stale releases. Eight release-planning cases pass. First-public cutover still requires resolving the Rust CI and coordinating public guides/downloads; no live service or workflow setting was changed.
A share started from the picker reported its failure in the page banner,
away from the control that started it. The failure now appears in the
share control's existing wait slot, where the system picker and picture
preparation are already announced, with a dismiss button. It clears on
the next start, on dismissal, or when another room is selected.
The picker closes before the start runs, and the room's share control
unmounts or moves to the share's tile once a publication appears, so the
page owns the result through useSettingsAction keyed to the room and hands
it to every ChannelShareControl as startAction. Browser, camera, App and
OBS starts from the picker pass the session's function form of
reportError, so a failure that arrives after a room change still reaches
the banner rather than being dropped. Starts from the share settings
popover and all other failures still go to the banner; the messages per
failure code are unchanged because both surfaces use
channelErrorPresentation.
The ChannelShareControl renders in tests/app-connection-button.test.ts now
pass an idle startAction, as the component requires one; their
expectations are unchanged. Verified with npx tsc -b --pretty false and
npx vitest run tests/app-connection-button.test.ts
tests/channel-session.test.ts, with new tests that a control-owned start
leaves the banner empty unless its owner is gone and that the wait slot
shows the failure and yields to a new preparation.
restoreHosts collapsed every per-room open failure of the Browser room
store into one storage_failed error with no room. The page showed the
generic "could not complete the action", and the room itself showed the
same "Offline" as a room whose host is simply away.
The local hosting runtime in the session now owns a per-room fact,
roomOpenFailures, in place of that flag. Its reasons are the ones the
Browser store can report for one room: unsupported_storage_version
becomes unsupported_version, and every other failure to open, summarise
or own the room becomes unreadable. A missing record is not a failure. An
entry clears when a later open of that room succeeds (restore, create or
backup registration), when its saved record or its channel entry
disappears, and when the hosting runtime is released.
The room list labels such a room "Can't open here" instead of "Offline"
only while it is unavailable. The room's own notice replaces the offline
copy with the reason, reusing channel.error.unsupportedStorageVersion
for a version, and a new sentence that this device cannot read the
room's saved data otherwise, with the existing storage help entry beside
it. Nothing appears on the stage. The new copy exists in all five
locales.
The Browser store cannot report a room held by another window: tabs share
the IndexedDB store, and a second tab is refused by the site with
room_already_hosted, which leaves the room available. No such reason was
added.
Changed test expectation: "Welcome restores the next Browser room after
%s failure" in tests/channel-session.test.ts expected the old
storage_failed error; it now expects the per-room reason and no error.
Verified: tsc -b passes; new unit tests cover the reason mapping and its
copy, a session test covers recording, clearing on a later open and on
removal, and a render test covers the list label; the whole vitest suite
passes.
A failed Watch or Retry picture landed in the page banner, away from the
picture it was about. The failure now stays with the picture: under its
offer while it is not watched, at the lower edge of its tile's wait area,
or in its video status area. It clears on the next attempt at that
picture, when its video composites a frame, or on dismissal, since an
operation result carries a dismiss button.
The result is owned by the page, one entry per publication, because the
offer, the tile, the picture help dialog and the picture panel can all
close or unmount before the operation ends: a failed watch keeps the
source as an offer, and a retry that fails after withdrawing turns its
tile back into one. useKeyedSettingsAction keeps one result per key with
the lifetime rules of useSettingsAction, whose failure-code mapping it now
shares through settingsActionFailure. Watch and retryPicture accept the
session's existing function form of reportError, so a failure whose owner
has gone (another site or session) still reaches the banner instead of
being dropped. All other failures still go to the banner.
Verified with npx tsc -b --pretty false and npx vitest run
tests/channel-session.test.ts tests/channel-presentation.test.ts
tests/watch-presentation.test.ts tests/channel-stage-picture.test.ts
tests/retry-picture-controls.test.ts tests/deferred-module-failure.test.ts
tests/viewer-playback.test.ts, with new tests that a control-owned watch or
retry leaves the banner empty unless its owner is gone, that the failure
renders in the offer, wait area and video status area, and for the shared
failure-code mapping.
A watched screen whose viewer has no selected incoming flow showed
"Waiting for a video route" with no action and no outcome. The core never
records a failure for a viewer it cannot place, and a measured viewer
decoded as soon as a source output freed, so this state is a wait with no
deadline, not a failure.
The client already separates the three states from facts it holds: no
selected incoming flow for the publication (awaitingRoute, from the pair
bindings), a selected flow without a stream (connecting), and the
publication in failedSubscriptions (failed). The no-route line now says
that no route is available yet and that watching starts by itself, in all
five locales. The tile offers the existing picture help for this state;
its dialog explains that nothing needs to be done, shows no retry and no
route-failed comic. Retry stays hidden here, because it withdraws and
resubscribes and cannot place the viewer sooner. Stopping stays in the
tile's footer. The connecting and failed states are unchanged. The
troubleshooting guide quotes the new line.
Verified with npx tsc -b, the diagnosis and stage tests (new cases for
the no-route diagnosis and the tile's actions), and the full vitest run.
Integrate the Browser push-to-talk and activation modes, local operation feedback and shared content-hint mapping. A held action owns its release across fast key events, rebinding and focus changes; capture applies the current press before publication. Voice readiness follows actual local playback events. Screen intent comes from the publication source through probe, ordinary sender, shared encoder and rollback.
Keep scoped flow/link debug events. Defer whole HostInput recording and periodic sampling that cannot establish a replay or quality comparison; retain the existing opt-in exporter. Omit the picture-specific Server-help claim until the relevant offered kind is available to that surface. Preserve committed quick-room reuse and recorded pending picker fixes.
TypeScript and all 2393 Web tests pass. Real Chrome AudioWorklet/WebRTC/PiP controls verify decoded PCM release and activation without a physical microphone. Production voice settings pass narrow/wide bilingual theme and keyboard controls. Recovery timing remains an explicitly isolated experiment, not a production routing change.
Require the existing source-ownership callback on confirmed-send and archive-restore retention, as on downloads. The IndexedDB write transaction now rejects a source that has already been withdrawn, preserving a newer cached file at the same attachment address.
Both late-write scenarios reproduced with actual ChannelAttachments/FileStore and two isolated mock IndexedDB clients. Authorized reads of an older live history still replace the cache normally. TypeScript and the integrated retention suite pass.
The request correlator owns invitation rotation from its first key response to the final outcome. The initiating popover shows failure without overwriting session errors; same-room duplicate work is refused while other rooms remain independent. Remove the separate action pending key and caller-specific reporting flag.
Focused public-action regressions cover intermediate results, concurrent rooms, late old replies and local failure. TypeScript and 672 integrated session, attachment and room-creation tests pass.
Take the reviewed voice owner and interface lanes, preserving room-local media lifetimes. Server forwarding is offered per kind by its operator, remains off by default, and fills participant routing gaps without sacrificing reachable receivers. Validate the registered service identity even in public rooms and advance private Domain protocol to 48 for the typed offer.
Correct quick-sharing reuse, pending picker ownership and local bootstrap retirement. Keep record-extension and recovery proposals separate from production mechanisms. Full Rust, Native, Browser-WASM and protocol checks plus 2350 Web tests pass; follow-up focused controls pass 672 tests. Actual Domain-48 loopback controls verify master-off, voice-only hosted and files-only Browser-hosted traffic with unchanged room authority.
The voice dock keeps both additions: the status derived from played audio, and the notice shown when a talk key is held while every joined room is muted.
The gate and the talk key need a place to be chosen. Voice settings now
offer a microphone mode under the shared microphone: open microphone,
push to talk or voice activation. The three choices stack in the shared
sliding selection, because the mode names differ widely in length
between the five languages. A line under the choice says what the
selected mode does. In push to talk it names the current shortcut and
says the key works only while the Piik page or room tool has focus, the
same scope the shortcut settings already state; without a talk shortcut
it says to assign one.
Voice activation adds a sensitivity slider in dBFS (-70 to -10, default
-40, the shared speaking level). A live meter on the same scale sits
under it and reads the microphone before the gate, so it keeps moving
while the gate is closed; it turns green once the level reaches the
slider. The meter polls through the existing visible-surface level
owner. When no microphone is captured it shows no reading, only a line
saying to turn the microphone on.
All new strings exist in all five locales.
Verified with tsc -b, the copy catalogue test, and static render tests
for the default mode, the push-to-talk hint and talk row, the unbound
case, and the slider with and without a captured microphone.
Push to talk needs a key that is held, not toggled. A third binding,
talk, follows the existing binding rule and defaults to Ctrl+Shift+V
(Command+Shift+V on macOS), unless another action already holds that
chord. Stored bindings from before parse unchanged, and a reset restores
all three.
In push-to-talk mode the page now listens for key up as well as key
down. Repeats are ignored, and editors keep the chord as before. The
chord ends when its key or any of its modifiers comes up, because macOS
sends no key-up for a letter released while Command is down. Losing
focus, a hidden page or a frozen page also releases it, through the
existing document-inactive owner, so a lost key-up cannot leave the
microphone open. Changing the dock's room or leaving push to talk
releases a held key too.
Holding the key on a muted microphone sends nothing, and the dock says
"Microphone off" in a small notice above the microphone. It is a manual
popover placed by the shared anchored-popover owner, so the controls do
not move. The talk row appears in the shortcut settings only in push to
talk; with background App shortcuts on, it says it works while the page
or room tool has focus. A clash with a hidden binding now names the
action holding the chord, in all five languages.
The App still receives only the two toggles it registers, because it
rejects unknown fields; nothing changes on the wire.
Verified with tsc -b and tests for key down, key up, repeats, release by
a modifier, blur, hidden and frozen pages, editors, mode and room
changes, the default merge, preferences stored before the talk binding,
and the App request.
A group of friends misses push to talk and a voice-activation threshold
first; until now the microphone could only be muted. The shared room
microphone gains a third choice of how it transmits, stored beside the
other voice preferences and defaulting to open microphone.
Push to talk and voice activation insert one AudioWorklet gate between
the gain and the output. It runs on the audio thread, so a throttled
background page cannot delay the 200 ms release or the 300 ms activation
hold, and it fades over 10 ms so it never clicks. The analyser still
reads before the gate, so a level meter works while the gate is closed.
The gate's decision is a pure function in media/voice-gate.ts; the
worklet shell is bundled by Vite with ?worker&url so it can import it,
and it loads through the same addModule and ready handshake as the noise
suppressor, now one helper for both. Open microphone inserts no gate and
loads no worklet, so its graph is exactly what it was.
Mute keeps its code path and overrides the gate. A press only posts to
the worklet: no server command and no publish delay. The local speaking
level is now reported only while the gate is open. A gate that cannot
start stops the capture before anything is published, and a processor
that fails later retires the microphone through the existing owner, so
the page never claims to send while it sends silence. Nothing changes on
the wire.
Verified with tsc -b; new tests for the gate rules, the graph placement
and failures, the session flow (gate prepared before publish, no command
per press, mute overrides a held key, return to open microphone) and
preferences stored before this change; the full channel session suite
passes unchanged. A Vite build of the worklet produced a self-contained
script with no worker-only globals.
Display capture stopped setting "motion", so the automatic codec
preflight's clone inherited an empty hint. Chromium then keeps the
desktop source's screencast flag, and every default probe encoded as
screen content while a Balanced or Fluency share encodes with "motion".
The H.264 decision was made on a configuration the share does not use.
preferredVideoCodecForTrack now takes the sender's hint and sets it on
its clone. startScreen passes screenContentHint for the stored
preference and the track's display surface, the same mapping
configureVideoSender applies. The relay probe in media.ts passes none
and is unchanged: it probes a received track, as before. The
media-quality standard names the preflight among the hint's readers.
Verified: npx tsc -b --pretty false; npx vitest run (159 files, 2360
tests), including new tests that the probe clone carries the given hint
without touching the source, and that startScreen passes "detail" only
for Clarity on a display surface.
An offline replay judges routes by how playback went, but a Browser export
held stream numbers only at export, during a handoff probe, or as raw
statistics that carry candidate addresses.
With the debug switch on, ChannelMedia now records one connection-sample
event a second while any pair exists. For each connection the transport
adds the selected pair's round-trip time, available outgoing bitrate and
candidate types; for each incoming stream the interval frames decoded and
dropped, freeze and pause time, jitter-buffer delay and loss; and for each
outgoing flow the quality limitation reason and loss. The numbers come from
the same derivation as the connections panel, with baselines of their own
so the panel's intervals do not change. No raw report, address, port or
candidate identifier is recorded. The sender selector is shared with the
panel's outgoing metrics instead of being written twice.
Verified: npx tsc -b; new channel-session tests check three samples in
three seconds with debug on, none and no extra getStats call with debug
off, no address in the records, the timer retired with the session, and
the outgoing limitation and loss. One received screen on one connection
measured 619 to 635 bytes per second.
Every failure landed in the page banner, away from the control that
failed, while the visual language puts an operation's failure beside its
task. The two controls now receive their own result the way settings
controls do, through useSettingsAction and ChannelSettingsError, and call
the session with reportError false so the banner stays out of it. Voice
join gains that reportError parameter, as createRoom already has.
The quick-start failure hangs below the centred button, so the button
does not move, and clears on the next attempt or another site. The join
failure takes its own line under the join row and clears on the next
attempt; the control is mounted per room, so a late result from another
room is discarded with it. useSettingsAction now names a DOMException by
its name, as the session does, so a device failure keeps its meaning.
All other failures still go to the banner.
The call in tests/channel-session.test.ts that passes a provided voice
stream now passes reportError first; its expectations are unchanged.
Verified with npx tsc -b and npx vitest run tests/channel-session.test.ts
tests/channel-presentation.test.ts, including a new test that a
control-owned join rejects with its code and leaves the banner empty.
Every Browser screen share was hinted "motion", which turns off Chromium's
screen-content encoding, so text could be downscaled to keep motion even
when the person chose Clarity. The stored picture preference already
states that intent, so one pure function, screenContentHint, now maps it:
Clarity gives "detail" on a display surface; Balanced, Fluency, cameras
and received tracks keep "motion". Balanced stays "motion" because
Chromium turns an explicit "balanced" into maintain-resolution under
"detail", which would collapse three choices into two.
The function is the single owner of the hint. Display capture no longer
sets one. cloneSenderVideoTrack takes the hint instead of falling back to
"motion" and still copies it to the frame-forwarding track, so the first
configure need not rebuild the codec. configureVideoSender sets the hint
from the profile whenever no carrier is active, so a live edit and its
rollback restore it; the pool carrier keeps its own transport hint. The
pool producer clones with the mapped hint. Start-up protection becomes a
configureVideoSender flag that overrides only the sender's degradation
preference, replacing startupVideoProfile, so it cannot reach the hint.
No setting, default or per-choice degradation preference changes. The
media-quality standard now states the mapping.
Tests whose expectation changed: quality "bounds initial capture to the
selected profile" (capture leaves the video hint empty), "holds resolution
only while a scaling preference starts" and "leaves picture cadence with
the producer..." (startupVideoProfile removed; the latter uses the flag).
The sender-video-track clone helper passes a hint for the new signature.
New tests cover the mapping, a clone, a live edit, a rollback, start-up
and a camera at the quality, clone, producer and transport boundaries.
Verified: npx tsc -b --pretty false; npx vitest run (159 files, 2355
tests). Encoder behaviour under each hint still needs a lab measurement.
An offline replay has to know which parent served each publication and
when, and when each pair was confirmed or failed. Each participant logged
only the removal of a flow assignment and the flow states it sent.
With the debug switch on, ChannelMedia now also logs when a flow is
assigned and when it becomes selected, with the pair, peer, flow,
publication, upstream flow and direction, beside the existing removal. The
session logs each link state it sends beside the flow states it already
logs. All fields are identifiers or states.
Verified: npx tsc -b; the new channel-session test walks a pair through
an unselected assignment, its selection, an outgoing relay flow, the
connected link state and removal, and finds no record with debug off. The
existing flow report test passes unchanged.
ADR-0018 stage 0 replays the route planner on exported diagnostics. The
planner's inputs never reached the Browser export, and an ordinary debug
event keeps only 64 array items, which cuts the confirmed pairs of a room
past eleven or twelve endpoints.
With the debug switch on, the Browser room host now records the room
summary it registers and every input it dispatches to the shared core. The
inputs keep session, flow and publication identifiers, counts and states.
Names, titles, message bodies, passwords, invitations, images, watch
locations, file references, signatures and signing keys are removed before
recording, and the shared secret-key filter still applies. A new whole
record bypasses the per-event caps but stays inside the existing 8 MiB
history; a record larger than the history is counted as evicted rather
than flushing everything.
Verified: npx tsc -b; vitest for browser-debug and the new channel-session
test, which dispatches five inputs with 30 endpoints (435 confirmed pairs)
and checks that none is truncated, no free text or URL remains, the core
receives the original input, and nothing is recorded with debug off.
The owner decided how a Server forwards. Forwarding spends the operator's
bandwidth, so the operator offers it and it is off by default. Once offered,
rooms use it without a second switch, a room manager can decline it, and the
service ranks after participant paths (canon: P2P first, load is shared, the
same rule for every node, automatic).
a. Operator switches. PIIK_CHANNEL_SERVICE_TRANSIT is the master switch, off
by default. PIIK_CHANNEL_SERVICE_TRANSIT_SCREEN, _VOICE and _FILES default to
true and each turns one kind off. Files include original video forwarded for
watching together. With the master switch off nothing is offered. The offer
reaches room hosts with the service socket. The room removes the service from
the relays of a kind it does not offer, and the channel rejects a projection
that gives the service such a kind as site transit. A service that offers no
kind reads as unavailable.
b. A new room allows the service. Creation paths apply only an explicit
choice, so Browser, App and Server-hosted rooms and room copies take the
default, and a stored false stays false. The setting reads as declining a
default, and its note says the site forwards only the kinds its operator
offers, in all five locales.
c. The planner names the service as the fallback. When a route is assigned it
first extends the tree with participant relays only, then lets the service
reach the receivers still waiting. It keeps that tree unless the joint tree,
where the service may take a scarce output, serves more receivers, so ties go
to participants. A strict participant-first pass could spend the source's
outputs on direct listeners and leave those reachable only through the
service unserved; a test reproduces that. The ranking among participants is
unchanged.
The rule applies when a route is assigned. A receiver already served through
the service keeps that route until it fails or demand ends, even if a
participant path appears later. A screen viewer can still make the usual move
to a direct path from the person sharing.
Left open: in a public room the service's session has ordinary read access,
so a modified room host can list it as a plain participant relay, without the
transit view that carries the room's choice and the operator's kinds, even
when forwarding is off. Closing it needs the channel to recognise the
Server's own session by identity in rooms that session does not host.
Tests added in channel-core: a participant wins over the service; the service
serves only receivers no participant path reaches; the service takes a scarce
source output when that serves more receivers; a moved child takes a ready
participant before the service; the service carries only the kinds its
operator offers; a service that offers no kind reads as unavailable; a new
room uses the offered service until its manager declines. Expectations
changed for the new default in host_review, service_transit, stored_room and
the first test of tests/service-transit-wasm.test.ts.
Verified on the lane: cargo test for piik-channel-core with and without
sqlite, cargo check for channel-server and channel-browser, the
room_creation_policy test, a rebuilt WASM package, tsc -b, the whole vitest
suite and the docs check. The channel-native suites were not run.
A watched picture whose delivery failed gave a manager no sign that the
room itself had turned down the site's forwarding, the one fallback they
can change. The core projects room.serviceRelay only to managers, with
available meaning the site has a service endpoint and enabled meaning the
room policy allows it (channel.rs service_relay). When delivery failed,
forwarding is available but not enabled and the person can manage the
room, the tile adds "Site forwarding is off for this room." and a Room
settings action that opens the room settings on the Connection tab. The
existing failure copy stays, since the client does retry in that state.
Verified with npx tsc -b and npx vitest run
tests/retry-picture-controls.test.ts tests/channel-diagnosis.test.ts
tests/copy.test.ts tests/media-copy-accounting.test.ts.
The dock said "Voice joined" as soon as the server answered, before any
audio reached this page. roomVoiceStatus derives the label from facts the
page already has: membership, mute and deafen state, and the publications
voicePlaybackPublications selects as playing. Connected needs a playing
publication from an unmuted member of the room, matched by speaker because
one microphone can play through a sibling room's publication. Connecting
means someone else is unmuted, listening is on and none of them plays yet.
Otherwise, alone, nobody speaking or listening paused, the label keeps the
membership copy. Connecting uses the busy colour, the others stay green.
No timer or report is added; the room list keeps showing membership.
Verified with npx tsc -b and npx vitest run tests/voice-playback.test.ts
tests/copy.test.ts tests/media-copy-accounting.test.ts.
Leaving the window (blur, hiding, or the App window becoming inactive)
runs release(), which clears the idle timer that docks the mini mouse
and never arms it again. Dragging the mini widget and switching windows
before the idle time passed therefore left it over the picture until
the next touch. The inactive handler now re-arms the existing park
timer after releasing, as the widget's own blur handler already does.
It is an effect event so it reads the current mode without
resubscribing; resubscribing would run the cleanup's release() on every
mode change and drop a drag in progress.
The existing tucking test asserted that hiding leaves no dock timer,
which is the defect; it now asserts the timer is re-armed and is
cleared on disposal. The test harness injects useEffectEvent like the
other hooks.
Verified: the new blur test fails without the change and passes with
it; tsc -b and the full vitest run (159 files, 2348 tests) pass.
Simple sharing reused the first room the person had created, was
admitted to and could reach. A person who made a room for another
audience in the full view and later pressed Start sharing in the simple
view would show their screen to that room. Showing a screen to people
it was not meant for is a privacy failure, so the choice now fails
closed: the simple view remembers, per site and person on this device,
the identifier of the room it created and reuses only that room. When
the room is gone, belongs to someone else, cannot be reached or already
holds this person's share, a new room is created and remembered
instead. A room recovered through the interrupted-creation dialog is
remembered the same way. The identifier is kept in localStorage under a
site/person key, the scope the personal room order and read markers
already use; without storage the next start makes a new room.
Verified: tsc -b passes; the room-creation tests cover a person with
another room of their own and no remembered room, reuse of the
remembered room, a deleted remembered room, rooms that cannot take the
share, and the stored identifier's scope.
A cached or presented frame does not repair a failed selected audio device. Keep the existing output chooser visible until that output recovers, independently of picture waiting. The regression fails before this change; TypeScript and 33 related output/playback tests pass. Physical device and audible background-alert acceptance remain explicit TODO items.