Chromium at 390 pixels reproduced the absolutely positioned failure overlapping Retry picture. Use the existing in-flow thumbnail treatment for waiting pictures of every size. Checked production controls at 390 and 1280 pixels.
Reuse the selected-room diagnosis and help for a known local open failure. Same-origin Chromium tabs and newer IndexedDB rejection preserve stored data; production settings were rendered with the matching facts.
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.
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 session drops a failed operation's result when its socket has gone,
and clears the banner when the connection returns. The picture and
share-start owners kept the same key across a drop and a resume of the
same session, so they recorded the rejected request and kept saying the
connection was lost after the site had reconnected by itself.
Both owner keys now include the connection, so a drop retires the owner
and its in-flight result goes back through the session's socket guard,
as before these failures moved to their controls. A result recorded just
before the owner changes is cleared by the new owner.
Verified with npx tsc -b and npx vitest run on the retry-picture,
connection-button, session and deferred-module tests. The drop and
resume sequence was checked by reading session.ts only.
Retry picture stays reachable in a thumbnail, both in the wait area and
in the picture panel, but the thumbnail hid the failure it reports: the
wait area hid it outright, and a playing picture's thumbnail hid its
whole message layer. Pressing Retry there gave no result at all.
The wait area now lets the failure take the status line's place in a
thumbnail, above Retry picture and without the loader or glyph, since
there is no room for it at the lower edge. A playing picture's thumbnail
still drops its waiting status but keeps a failure.
Verified with npx tsc -b and npx vitest run on the retry-picture,
connection-button, session and deferred-module tests. The rendered
thumbnail layout was checked by reading the rules only.
The retired peer snapshot, room-code error surface and ChannelRequest alias have no callers in the application, previews, docs tooling or text SDK. Remove only those definitions and their dedicated imports. All three TypeScript project checks pass; retained previews and shared controls keep their existing owners.
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 talk key opens the one shared microphone gate, while mute is per room
through each room's own track clone. The dock based its "Microphone off"
notice on the selected room alone, so with the selected room muted and
another joined room unmuted it claimed the microphone was off while that
other room was hearing the person. The notice now shows only when every
joined room is muted, the one state in which a press sends nothing.
Verified: npx tsc -b; npx vitest run (161 files, 2371 tests pass).
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.
The server adds the voice membership before the join publishes its
microphone, so the join control unmounted mid-join, its action lifetime
ended, and a publish failure (microphone_unavailable, room_host_offline,
request_timeout) was dropped: voice flashed to joined and fell back to the
Join button with no explanation. In the quick layout, opening or closing
the room tool also moved the control between slots and erased a shown
failure.
The page now owns the join result through useSettingsAction, keyed to the
room, so a slot move keeps it and another room retires it. The control
stays mounted while its own join is pending, even after the membership
arrives. useSettingsAction gains an optional owner whose change ends the
lifetime, as closing already does.
Verified with npx tsc -b --pretty false and npx vitest run
tests/channel-presentation.test.ts tests/channel-session.test.ts.
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.
The voice dock and the room voice panel each wrote -40 dBFS as a bare
.01 when deciding who is speaking. Voice activation is about to start
from the same level, so the level gets one named owner in
media/voice-gate.ts, in dBFS with its linear equivalent. 10 ** (-40 / 20)
is exactly .01, so nothing changes on screen.
Verified with tsc -b and the voice playback and activity indicator tests.
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.
Voice participation moves out of the session hub into one owner with no behaviour change, held by the existing session tests with none edited. The hub keeps one loop for stale local publications, and ADR-0015 no longer says that room voice and share commentary share a microphone.
VoiceParticipation.resumed() carried its own copy of the rule that
withdraws this session's publications missing from the local capture
map, filtered to one room's voice, while reconcileLocalMedia kept the
general copy. The session now owns that rule once in unpublishMissing,
with an optional room and kind scope, and passes it to the voice owner
through VoiceSession. reconcileLocalMedia calls it unscoped and keeps
only the screen pause re-send in its own loop.
No behaviour change: the same publications are withdrawn and the same
pause states re-sent. Within one reconnect pass the unpublish commands
are now written before the set_paused commands instead of interleaved;
the two sets never share a publication.
The local capture entry type stays declared where the voice owner uses
it: the session's type is inline in session.ts, which imports this
module at runtime, so importing it back would add a type-only cycle.
The compiler still checks the session's map against the narrower
read-only shape at construction.
Verified: tsc -b, tests/channel-session.test.ts (616 passed) and the
full vitest run (159 files, 2344 tests passed).
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.
The existing MediaInput owner now observes the selected audio track ending or leaving its stream. Track identity fences late callbacks and retires only that flow; live muted audio remains forwardable without a first-packet or volume gate. The two new regressions failed before the repair; TypeScript and 30 related media/session checks pass.
Chrome retained the original fragment URL in its persistent History database even after replaceState. App-owned navigation now issues a short-lived single-use ticket; the existing local Join consumes it under the domain lock. Ready, launcher links and terminal reopening no longer carry the durable bootstrap seed. Personal credentials keep their current reconnect and storage behavior.
The ticket follows the short-lived, single-use bearer principle described in RFC 6749 section 4.1.2; this is an internal local bootstrap, not a new OAuth implementation. No public Join field or saved-data format changes. Full Rust, real Native session, Browser/WASM and protocol checks plus 2342 Web tests pass. Matching Windows WebView package acceptance remains in TODO.
Step 3 of ADR-0015. Room voice lived in ChannelSession's shared fields and
was retired from generic places: the action() finally block,
refreshActivity and applyState each released the microphone, retireCapture
rewrote voice intent, and applyState, reconcileLocalMedia and
projectActivity each carried a voice arm. VoiceParticipation in
voice-participation.ts now holds each room's participation, the shared room
microphone and its pending request. It releases the microphone itself after
the last consumer: leave, mute, a failed join or unmute, removal by the
authority, a retired or ended capture, and close.
The session keeps the local publications with publish and retireCapture,
personal playback, listening volume, the voiceInput preference and the
action() wrapper, and passes them to the owner through one interface. Voice
keeps using captureLifetime as before instead of a controller of its own:
the session already aborts and replaces it when media is released, and a
second controller would be new state with the same lifetime. The scans of
the pending set for "voice:" keys in the session and in
ChannelVoiceSettings become one question the owner answers, exposed to the
interface as voiceBusy(). Screen commentary keeps its separate microphone.
No behaviour changes. Verified with tsc -b; tests/channel-session.test.ts
passed 605 of 605 with no test edited, as before the move; the whole vitest
run passed 159 files and 2327 tests. session.ts went from 4,096 to 3,827
lines, and the new owner has 394.
Reusing the person's simple-sharing room made it possible to request
the source picker in a room where no share control would take the
request. If they already shared in that room, both share controls were
hidden, so Start sharing did nothing visible and the stale request
opened the picker uninvited after the share stopped. If a friend's
screen was showing there, the toolbar control was mounted but ignored
the request in the quick layout.
A room where the person already shares is now skipped when choosing the
room to reuse, through the same condition that hides the toolbar share
control, and the toolbar control honours the picker request in every
layout. The quick-entry and toolbar controls never mount together, so
only one consumes it.
Verified: tsc -b; tests/channel-room-creation.test.ts extended with
rooms that already hold the person's share; full vitest run passes.
Merge Claude's queue through 0e018ae7 with the reviewed guide, trust and 2.x/3.0 scope corrections. ADR-0018 and ADR-0019 remain proposals. Topology comparison keeps per-kind budgets, manual limits, generation fencing and measured failure detection.
Complete the consecutive-source viewing fix by retaining the pending predecessor in the room surface, covered by the same 616 tests and real-browser controls. Track the separate local-launch credential and restored-attribution questions before public release.