Commit Graph
971 Commits
  • fix(watch): choose usable tracks and retain writer backpressure
    Use existing player duration and browser codec support for automatic indexed-track previews, and retain explicit webpage selection. Give source-window notices their intrinsic height. Carry writer delivery separately from ordinary Core effects so expiry does not bypass its queue.
  • refactor(core): centralize state changes and persistence outcomes
    Keep channel time explicit, room binding transitions owned by their records, and shared limits checked against Core. Persist the actual changes before delivery, preserving expiry and the original requester on failure. Include the verified receiving-route, cache-clear, tooltip and native appearance corrections from this integration phase.
  • test(app): expect unchanged page catalogs to stay quiet
    The native window fixture still expected a repeated catalog after closing an empty, unselected opener and reselecting the same child video. Assert the surviving WebView, selected media lifetime and complete catalog are unchanged, and require the specific empty queue outcome. Real candidate loss and final closure must still emit their existing events.
    
    This corrects the assertion reached in hosted Windows run 46167682687. That run remains failed; the corrected GUI fixture and previously skipped input check require a new isolated run. Production code is unchanged.
  • feat(watch): simplify video selection and preserve playback intent
    Start from one address and select a page video with one action. Keep resource ordering across direct, DASH and indexed offers, and keep each resource with its supported playback methods. Automatic viewers try the site before eligible sharer bytes; an explicit route stays selected. A room refusal ends the attempt rather than retrying a different source.
    
    Share, cancel and stop use a stable control footprint. End actions suppress native popover activation while preserving keyboard focus. The existing picker remains available for manual source and track choices. Update the English and Chinese flow descriptions.
    
    Built on reviewed queue changes 3378bca2 and f8ed4c1c, corrected through independent source-identity and operation-lifecycle regressions. The integrated Web suite passes 2631 tests; Windows compilation and 31 pure tests pass. Chrome at 390 and 820 verifies the combined workflow, keyboard focus and retry. Final TypeScript checks pass after matching the shared optional event signature. Native GUI and real-site acceptance remain separate.
  • docs: separate current contracts from investigation history
    Condense collaboration procedures, protocol field inventories and repeated audit or experiment narration into their existing owners. Keep accepted decisions, unresolved work, primary sources and measurement limits. Detailed historical trials remain accessible at their measured Git revision without a second archive tree.
    
    Align both language guides with the existing contribution value criteria. Keep local operating instructions out of public contributor guidance. Independent reviews preserved closed baseline choices and single-run evidence limits. Documentation and repository hygiene checks pass; this phase changes no runtime code.
  • fix(watch): tell the room a webpage's catalog only when it changed
    The bridge reports its candidates on every batch of document changes, and
    the host told the room each time: a catalog with a source read from every
    view, sent over the App link, and a render of the whole room page. The
    comparison now sits with the catalog's owner on the host, which knows the
    page's address and the limit on candidates: the bridge-side comparison is
    undone because, as Codex showed, it lost an address change of a page whose
    video sits in a frame, and a child's report refused for capacity.
  • feat(diagnostics): measure the native window loop after debug starts
    Renderer frame timing cannot see WebView2 work that blocks the host window thread. Send at most one timing probe through the existing Tao event loop and aggregate its queue delay there into the opt-in App report. The sampler shares the existing service lifetime and adds no window or network data.
    
    Summaries include the actual observation window, sample count, maximum delay and counts at 16, 50 and 100 ms. Existing Windows App compilation and deterministic threshold checks pass; independent review confirms bounded admission and cancellation ownership. Actual native-window delay injection and shutdown remain runtime acceptance, not established by the pure test.
  • fix(app): move windows from the host instead of CSS drag regions
    The App's whole window stalled in ordinary use. WebView2 recomputes a page's
    CSS drag regions in the embedding process, on the window thread, after each
    layout change, and answers pointer moves over a region from there. With the
    top bar marked app-region: drag, a posted event reached the window thread up
    to 217 ms late on maximize, 85 ms late on opening or closing a popover and
    505 ms late while the pointer moved along the bar; with no drag region it was
    never late, and the page's own frames showed nothing in either case. Others
    report the same path: WebView2Feedback 5798, and a sampled trace of another
    wry application that puts the window thread in Controller::UpdateDraggableRegions.
    
    The page's top bar, the standalone caption and the permission prompt now ask
    the host on a press, and the host starts the system's own move of the window
    (the first press moves, the second maximizes), as Tauri's drag regions do. No
    page uses app-region any more, and WebView2's non-client region support is
    turned off for every WebView, so that a site's own style cannot hold the
    window thread either.
    
    Measured in the App built from this tree with a real pointer: no late event
    in any of those phases, also with chat text selected and with a page that
    sets a drag region itself; a press and a move on the room's name, on the bar
    and on a detached panel's caption moves the window, a double click maximizes
    and restores, a drag from the maximized state restores and moves, and a
    control in the bar still takes its click. Not exercised: the permission
    prompt's heading. Lost with the regions: the system menu on a right click of
    the bar, and moving the window by touch.
  • fix(protocol): retain unfamiliar audience readiness descriptions
    Audience readiness describes an authorized viewer; it does not grant admission or select a route. A new well-formed description previously rejected the whole Domain snapshot and retired an established client session. Reuse the existing short wire key rule and retain the original value through Domain, Native and Browser.
    
    One presentation owner maps unfamiliar readiness to the existing joined label. Only active counts as received picture and only failed triggers failure. Malformed values retain validation. Real Domain host-output and Native image round trips, all 355 SQLite Core tests, both TypeScript projects and 102 focused Browser checks pass with the rebuilt WASM. Independent ownership review passed. Current writers still emit the original three states; this repairs the first-public extension boundary rather than attributing a field incident.
  • feat(diagnostics): record the first transport failure cause
    UU playback reports retained capture progress but lacked the event before flow retirement. Record the existing Engine failure branch in the opt-in RTC log before Driver retirement. Causes state only what the transport knows; unavailable send consent is not labeled as expiration.
    
    Independent callsite and privacy review plus the existing in-memory diagnostics ZIP fixture pass on Windows Rust 1.91. Repeated failure remains bounded by the existing Engine terminal state. No routing or recovery policy changes; the historical field cause remains unconfirmed.
  • fix(nat): keep STUN results when one destination rejects sends
    A configured destination can reject a UDP send while the same socket still reaches other destinations. Retire only that STUN transaction and preserve completed observations and pending destinations. Existing socket errors, cancellation and survey deadlines retain their owner.
    
    A Windows kernel-rejected send reproduces the old failure; the repaired survey retains the other real Binding response and its original socket. A separate local unicast control confirms send failure need not invalidate the socket. All 22 Native preparation tests pass, including all-target rejection. This is controlled local evidence, not regional reachability or field success-rate evidence.
  • fix(app): return unsupported for unknown page resource methods
    Treat the nested action as a request-method discriminator. Fold an unfamiliar
    string into the existing unsupported operation before looking up a page or
    starting I/O. Preserve its request ID and keep malformed known requests on
    the invalid-request path.
    
    The real App request parser reproduces the previous invalid-request result
    on the baseline and passes with the correction. Missing and numeric actions
    and a known read missing its resource ID remain invalid. The exact Windows
    Server library test passes; no App process or new recovery state is added.
  • fix(files): separate original media types from preview support
    Preserve a valid MIME essence in attachment metadata, signed history and file
    plans. Readers offer a generic download for formats they do not preview.
    Recognized raster bytes retain their original MIME and thumbnail behavior
    even when File.type is absent or wrong.
    
    Thumbnails keep their own raster, binding and budget validation independently
    of the original format. Historical inline originals still require the exact
    size and digest and a case-insensitively equivalent MIME type. Existing image
    decoders and retained original bytes are unchanged.
    
    Core SQLite passes 354 tests; Web TypeScript, 826 focused checks and 32 fresh
    WASM consumer checks pass. Real Chrome 156 exercises signed history, atomic
    restore/reopen and cross-frame file storage with the same WASM. The first
    browser harness bundle needed its dynamic module kept separate; the complete
    fixture then passed without product-source changes. The beta.62 missing-image
    report remains unlocated.
  • fix(ice): ignore unsupported hints without retiring the connection
    Preserve bounded origin labels through their assigned Domain pair. Browser
    and Native discard a hint they do not support before it can enter the pre-SDP
    queue or ordinary ICE. Native admission stays in Driver; Transport receives
    only ordinary candidate strings. Other coalesced signaling fields continue.
    
    The actual Domain and Native decoder/Driver controls pass, including continued
    bidirectional traffic on the original RTC. Browser's socket control preserves
    ordinary candidates, a coalesced offer and a pending request. Stale unassigned
    pairs retain their existing silent-disposal behavior. Combined Core and Web
    verification passed with the rebuilt shared WASM.
  • fix(rtc): nominate an available alternate without keepalive delay
    Advance the existing str0m patch stack to e8d043a0, retaining its consent and
    delay-controller repairs. The upstream nomination correction clears a cached
    check deadline when nomination changes the pair's state. Original authorship
    and the regression test are retained in the fork.
    
    All 120 ICE library tests pass. The actual Windows Native loss comparison
    changes nomination dispatch from 354 ms later to the same SDK tick, retaining
    both original SCTP channels and send consent. Total loopback recovery remains
    dominated by failure detection; this is not a WAN success-rate claim.
    
    With the Git pin, 31 focused Windows and 28 Linux Native checks pass. Seven
    Native/Server/Android metadata contexts resolve all four SDK crates solely
    from the same revision with unchanged feature sets. No package is relabeled.
  • test(protocol): preserve baseline authority and watch selectors
    Keep hosting, creation and access values tied to their governing rules in the
    baseline Domain representation. Check actual Welcome and State serialization
    for full and conversation readers with exhaustive expected wire spellings.
    
    Reuse existing Watch scenarios to check source, clock and byte-reader forms.
    These describe fixed playback semantics; a generic activity envelope is not
    needed for the current flows. New codecs can use understood existing forms.
    
    The authority-writer fixture and all 19 Watch tests pass. No production wire
    shape, permission rule or playback lifecycle changes in this commit.
  • fix(protocol): preserve extended screen source descriptions
    Represent a capture-origin kind as a bounded symbolic key and preserve its
    spelling through the room writer, Domain, Native state reader and Browser.
    Screen and voice remain the baseline RTP classes that own their permissions,
    subscriptions and forwarding budgets. The origin is descriptive metadata.
    
    Reuse the ScreenSource type in presentation and stage props. Existing titles,
    names, generic labels and exact-screen content hints keep their behavior.
    
    The private-room control proves publish/update, unauthorized rejection,
    subscribed route continuity and removal while voice survives. Core SQLite
    passes 353 tests; the revised exact StateImageDecoder case also passes.
    Both Web TypeScript projects, 822 focused integration tests and 31 fresh-WASM
    consumer checks pass. Windows Server capture-feature checking covers Native
    and Core. Public mixed-version acceptance remains in the existing freeze.
  • test(app): cover every page resource request action
    Extend the existing App boundary fixture with metadata and byte reads, alongside
    inspection and cancellation. One local declaration supplies the exhaustive
    ResourceRequest match and the actual control_request checks.
    
    Windows Server capture-feature compilation and the exact parser test pass.
    Unfamiliar actions and malformed known reads keep their correlated invalid
    request result; unknown outer request kinds keep the existing unsupported path.
  • test(protocol): cover file and watch control message forms
    Use the actual Core writer and reader for the six control forms and keep the
    fixture declaration exhaustive over their production enums. Check preserved
    fields, expected roles, unknown roles and malformed known messages.
    
    The focused Core fixture passes all six round trips through the single test.
    Existing delivery controls retain responsibility for operation settlement and
    the surviving sibling range. No production protocol or state changes.
  • test(watching): preserve concurrent reads after an unknown reply
    Extend the existing control-reader regression with a simultaneous read of
    another range on the same resource. After the first ends as unknown_outcome,
    the source's real chunk must traverse the relay and reach the second caller.
    Both owners must retire their completed work.
    
    The focused Core regression passes through the actual future-reply decoder
    and source/relay/viewer delivery owners. This adds no production behavior.
  • test(channel): require specimens for declared wire message kinds
    Exercise all 46 known Domain commands and 10 Native events through their actual
    readers. Each local fixture declaration supplies an exhaustive enum match as
    well as the decoder checks, so a missing row cannot silently pass. Browser
    fixtures cover all nine declared event tags using the existing Zod schema.
    
    Removing one Command and one Event row produces E0004 in the corresponding
    test file; restored fixtures pass all three Core tests. The Browser wire suite
    passes 16 tests, and the five version preflight controls pass. An added Browser
    schema variant without a specimen fails the roster comparison.
    
    This establishes root message-kind coverage, not all nested choices or the
    first-public mixed-version contract. No production protocol is changed.