Commit Graph
2432 Commits
  • perf(browser): return only forwarding fields used by the client
    The only JavaScript consumer already declares and reads pairs, files and watchBytes plus commands and capacity. Seven paired emitted-WASM runs over 200 updates and 20 identities reduced active return bytes by 88.0 percent and idle bytes by 98.9 percent; consumed outputs match across forwarding-limit transitions. Real WASM compilation, focused Core checks, TypeScript and 701 client tests pass. This measurement is serialization cost, not end-to-end media throughput.
  • docs(review): answer the queue and narrow the recovery contract
    Record independently rendered queue acceptance, the reproduced source-follow correction, and the new atomic identity storage boundary. Keep Native diagnostics and early recovery at their demonstrated scope; update the pending field-input and upstream runtime facts.
  • fix(screen): keep picture retry visible beside its failure
    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.
  • fix(room): show the storage diagnosis in room settings
    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.
  • 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(storage): persist domain identities as individual rows
    Keep Identity as the authority, while a Domain SQLite transaction writes the admitted user and conditionally updates the small domain header. Normal startup hydrates the same model without rewriting it. This removes full-history profile rewrites and preserves recovery of a previously uncommitted room directory without a dirty-state mechanism.
    
    The private Domain physical format is 1; Room SQLite remains 10 and portable archives and wire versions are unchanged. Unsupported old private databases remain untouched. A matching old build can export the existing domain archive for import into a fresh directory.
    
    Paired local Release controls at 2000 retained identities measured join 17.78 to 4.17 ms and rename 7.75 to 4.02 ms. Full Rust, Native, WASM, protocol and 2394 Web checks pass. Actual old-Linux-export/new-Windows-import preserves credentials and records; real Browser hosting verifies storage scope and byte-bounded signed history across five pages. Correct obsolete fixture assumptions about standby pairs and private room admission.
  • docs(guide): say who keeps a room's history
    A security review reproduced that a room's creator can restore a backup that names another member as the author of a message. The owner decided to build nothing against it: whoever hosts a room holds its history and can change its own store with or without a restore, so a check or a marker would add a special case that protects nothing. The guide says plainly who keeps the history and what a restore does.
  • 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(screen): end picture and share-start failures with the connection
    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.
  • fix(screen): keep a picture's failure visible in a thumbnail
    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.
  • 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.
  • refactor(client): remove unused private exports
    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.
  • 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.
  • fix(room-host): report a newer stored version as unsupported
    IndexedDB rejects opening the room store at a lower version than the one
    already saved with a VersionError. The store passed that DOMException on
    as is, so a database saved by a newer build reached the page as a raw
    browser message and fell through to the generic "could not complete the
    action". The store already names an older schema
    unsupported_storage_version, which the interface explains with the
    existing saved-data version message and help entry. A newer schema is the
    same fact seen from the other side and now carries the same code.
    
    Verified: tsc -p prototype/channel-browser/tsconfig.json passes. The
    Browser room check gains a case that opens a store at a newer version;
    running it locally failed before the page loaded because Chrome could not
    start in this environment, so that case is not yet observed.
  • docs(review): propose the typed early-recovery boundary
    Ask the peer reviewer to evaluate the minimal observation and presentation proof after the bounded hard-exit and short-loss experiments. Keep the private fixture sideband out of product protocol and leave implementation pending contract review.
  • merge(review): synchronize accepted lanes and matched runtime evidence
    Close settled queue items, request a scoped independent review of the remaining ownership corrections, and keep the next recovery contract and attribution/presentation work distinct. Record matching Domain-48 package acceptance without promoting experiments or device-static checks to field proof.
  • merge: take the implementer's line through 495be82c
    The four lanes are integrated on the implementer's line with its reviewed corrections. This branch takes that integration whole, including its resolution of the quick-start flow, so the two lines now differ only in the mailbox.
  • docs(review): close the reviewed voice and presentation lanes
    Return exact acceptance and remaining boundaries for e7cfc15f, including scoped debug-event adoption, source-aware content hints, key-release ownership and early-recovery controls. Keep unsupported screen-forwarding advice and incomplete replay mechanisms out of the implementation.
  • 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.
  • merge: take the implementer's line through aca30497
    The quick-start flow keeps both changes: the implementer's rule for a remembered room and for a room that was created before an interruption, and the failure shown at the quick-start button instead of the page banner.
  • docs(review): return Domain 48 integration and bounded recovery evidence
    Report outcomes for the queue through 151cd1c9, actual per-kind Server forwarding, corrected UI/identity ownership and archive import. Record the next four lanes as under review, and keep the one-use Server entry and remaining experimental choices in their existing work owners.
  • 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.
  • fix(backup): reject history data the importer cannot preserve
    Close archive-only live row and reaction decoding without tightening the ordinary message wire. Supported room backup and copy writers remain unchanged. Unknown durable fields now fail before installation instead of disappearing on export.
    
    Both native staging and real WASM importers reproduce the old loss and reject seven unknown-field positions with the fix. Legal attachment, reply, mention, image and tombstone controls pass; all twelve stored-room tests remain green.
  • refactor(audio): use the upstream WASAPI capture reader
    wasapi 0.27 correctly handles SILENT packets and exposes frame flags and QPC timestamps. Replace local GetBuffer/ReleaseBuffer pointer ownership with its slice reader and one reusable packet buffer, preserving the existing Float32 stereo clock and capture scopes.
    
    The Microsoft GetNextPacketSize shared-mode contract guarantees the buffer size used by the next read. Five Windows synthetic and initialization checks pass, plus integrated Rust compilation. Actual device capture and the reported field silence remain separate acceptance.
  • 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.
  • fix(voice): say the microphone is off only when no joined room carries the press
    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).
  • 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.