Commit Graph
894 Commits
  • refactor(web): use the canonical channel entry
    Remove the duplicate channel-preview route and move its launcher, owner-link, acceptance and documentation callers to the existing root URL. Query and invitation fragments retain their meaning. App launcher and component preview routes stay separate. Route, session and built-server protocol checks pass.
  • fix(app): cancel source operations at their request owner
    Propagate the AbortSignals already owned by source selection, viewing and source enumeration. Cancellation releases a pending hello or source lookup without retiring retained playback or App hosting. Public-action regressions fail before the correction and pass afterward; no extra timeout or recovery state is added.
  • refactor(conversation): deliver one signed history page
    The writer already produces a bounded complete page and readers publish it atomically. Remove the per-message/reaction envelopes and Browser/Node reassembly, retaining request, binding, transaction and live-change owners. The mixed-page component control cuts serialized bytes by 47.4% and signatures from 101 to 1. Advance private Domain wire to 51; stored formats are unchanged. Core, actual IndexedDB, Server, Node and protocol checks pass.
  • fix(routing): preserve recoverable paths and adopt proved spare branches
    Keep current-socket disconnect observations separate from confirmed pairs. Existing room operations prepare and commit an authorized confirmed alternate, recheck every leg, preserve independent candidates through ancestor retirement, and reject late proof after recovery or a personal zero limit. Native reads SDK-owned send consent and retains established media; expiry uses the existing retirement boundary, including ICE Checking. Remote input releases on lost notifications and rechecks permission at the final write. Pin the existing SDK fork query at 5f1f6346 and move the private Domain wire to50, without changing stored formats or App26.
    
    Core, Native, Server, rebuilt WASM, protocol and 2389 Web checks pass, with Windows capture compilation. Matching frozen Browser/Native/Server controls verify actual decode, same-pair recovery, exact candidate adoption, late-proof cancellation, zero capacity and Native expiry. The final Checking-state regression and valid ICE restart control pass. No field NAT-success rate, cold three-hop discovery, Native GUI or physical-capture claim is made.
  • merge(review): consolidate private room contracts and their readers
    Take Claude C2 at 53bea0a6 and the reviewed private contract batch. Viewer audience owns failure; invitation payloads use correlated replies; Core owns fixed observation limits; HostInput requires hosting mode; invitation digest derives from its retained key. Domain wire49, room SQLite11, IndexedDB9 and room archive4 refuse old private formats without mutation; unrelated formats retain their generations. Core/Native/Server, rebuilt WASM, five live protocol cases and 2388 Web tests pass; actual Browser storage checks pass. Broader media acceptance found a separate relay-unwatch decode stall and remains blocked; no runtime workaround or release is included.
  • refactor(core): a viewer reads delivery failure from its own audience entry
    The room carried the same fact to each viewer twice. Every snapshot had a
    failedSubscriptions list for the recipient, and every screen publication's
    audience already listed the recipient's session with the state failed. Both
    came from the publication's record of failed receivers over the sessions that
    watch the screen, and the Domain retained, validated, paused and merged them
    in matching ways.
    
    The audience is now the one carrier. The core no longer projects, retains,
    validates, pauses or merges the list, and the wire snapshot no longer has it.
    The audience validation already requires each entry to belong to an
    authorized, subscribed viewer of a screen.
    
    The client finds its entry by its own session identifier, never by user,
    because one person can watch the same screen from several endpoints. The
    projected view already drops this page's own entry when the page has stopped
    watching locally, so a screen unwatched before the room sees the unwatch still
    does not show as failed. The room preview's failed picture now comes from the
    viewer's own audience entry.
    
    No protocol, storage or format version changed: the owner batches wire changes
    and bumps once.
  • merge(review): keep playback surfaces through media handoff
    Take Claude 8cda3edd after source and runtime review. Keep received-stream retirement at transport and presentation proof at each candidate. Complete two observed gaps at shared owners: held quarter-turn dimensions and cover clipping, and same-publication picture-in-picture transfer. Real Chromium checks preserve pause, honor explicit PiP exit and cover an ended old track. All 12 rotation/fit/viewport geometry comparisons agree; TypeScript and focused transport, stage and playback checks pass.
  • merge(review): give the 3.0 documentation one owner per contract
    Take Claude b4c96a79 after independent semantic and engineering reviews. Preserve current remote-control, playback, language and media rules while removing duplicate 2.x copies. Actual VitePress build exposed missing Chinese deployment and unpublished-reference routes; repair both and verify generated links plus publication tests. Browser preview startup was rejected by automatic review, so this does not claim rendered documentation acceptance.
  • fix(screen): keep a picture's surface while it has a live input
    A stage tile mounted its picture only while the publication had a selected
    stream. When the room's projection briefly had no selected flow while a live
    candidate was still preparing, the tile fell back to its waiting block and
    unmounted the candidate's consumer, so the candidate could not composite or be
    presented when it was selected a moment later.
    
    The surface now lives while the publication has any live input, selected or
    not, and theatre mode follows the same rule. Without a selection the player
    keeps its displayed layer and lets the candidate prepare beside it. A displayed
    layer that has left the live inputs holds its last frame, so it shows the
    player's existing waiting status until the incoming layer has composited and the
    usual handoff replaces it. Remote control is available only while the displayed
    layer is the selected flow.
    
    The composited-gated handoff, local pause, what is reported to the room, the
    waiting block for a picture with no live input, and cleanup on unwatching,
    ending or leaving are unchanged.
  • docs(operations): replace the 2.x hosting guides with the 3.0 deployment guide
    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.
  • fix(transport): leave received streams empty when a pair closes
    Closing a pair ended the tracks it had received while they were still in the
    streams handed to the page, and Chrome then paints a black end-of-stream frame
    on any video still showing them. The transport now removes those tracks from
    their streams before it closes the connection, so a consumer keeps its last
    frame, as it already does when a remote track is withdrawn by renegotiation.
    
    When a pair closes, what is reported and which tracks are stopped are
    unchanged. Media consumers and relays read received tracks through inputs the
    media owner clears in the same call, and relays copy tracks into their own
    outgoing streams, so neither depends on seeing these streams hold ended tracks.
  • merge(review): use room-owned handoffs and remove retired client code
    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.
  • fix(channel): a hosted room keeps one host and outlives a failed close
    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.
  • refactor(channel): BrowserHosting owns hosted rooms and their cleanup
    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.
  • fix(screen): retire feedback with its publication
    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.
  • merge: take Codex's line through 4c08b316
    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.
  • refactor(channel): the room authority alone validates voice bitrate, relay limit and title length
    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.
  • fix(channel): follow the successor the room names
    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.
  • fix(watch): preserve follow intent until the next projection
    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.
  • merge(review): adopt route and local failure presentation
    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.
  • refactor(client): remove components only the previews reached
    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.
  • refactor(client): remove exports only their tests called
    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.
  • fix(channel): room settings give the reason a room cannot open here
    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.
  • merge: take the storage-unavailable lane
    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.
  • fix(voice): report playback only through a ready output
    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.
  • fix(ops): validate the channel runtime and expected deployment
    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.
  • feat(screen): show a failed share start at the share control
    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.
  • feat(channel): say why this device cannot open a room it hosts
    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.
  • feat(screen): show a picture's Watch and Retry failures with that picture
    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.
  • feat(stage): tell a viewer that no route to a picture is available yet
    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.
  • merge(review): add microphone modes and preserve playback intent
    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.
  • fix(files): cancel retained writes when their source retires
    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.
  • refactor(invites): derive rotation progress from its request
    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.
  • merge(review): integrate voice ownership and scoped Server forwarding
    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.
  • merge: take the push-to-talk lane
    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.
  • feat(voice): choose the microphone mode in voice settings
    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.
  • feat(voice): hold a talk shortcut for push to talk
    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.
  • feat(voice): gate the shared microphone for push to talk and voice activation
    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.
  • fix(media): probe the automatic codec with the share's mapped hint
    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.
  • feat(debug): sample derived connection numbers once a second
    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.