Commit Graph
146 Commits
  • 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): open the current video directly for source replacement
    A synchronized video's switch action now opens its own address picker, with other sharing methods one step away. List each discovered video once and keep alternative playback methods folded. Publish parsed sources only after candidate media is ready so early failures remain retryable in the same page. Navigation cleanup follows the existing commit owner.
    
    Based on the room activity and source-selection lifetimes, the owner's workflow feedback, and Claude's measured preview findings. Chrome verified switching, confirmation, cancellation, Back and narrow track choices. A full Web run identified two stale presentation fixtures; both TypeScript projects and all affected tests pass after correcting those fixtures and the final scoped fixes. No new wire or storage contract.
  • fix(watch): confirm video changes in one retryable source picker
    Prepare the detected video, keep source and track choices as a draft, then confirm Start watching together or Switch video. Advanced source options stay folded. A failed preparation or confirmed room rejection keeps the page available for retry; ambiguous dispatched outcomes use the existing reconciliation path. Released native readers refresh their catalogs before retry.
    
    Based on the source-selection lifetime and shared dialog design, and the owner's beta.62 workflow feedback. Real React and Session controls cover refreshed source IDs, retry and cancel. SQLite Core, both TypeScript projects and all 2592 Web tests pass with the rebuilt WASM. Native candidate resource controls pass; field video and native window performance remain separate acceptance work.
  • docs(sharing): make the viewer entry and loading source explicit
    Name the Watch action in the room and distinguish each device loading the original site from receiving video through the sharer. Match the current shared controls in both guide languages.
  • fix(ui): keep playback state and floating controls consistent
    Native original-page readiness now reaches the existing participant projection. Narrow playback gives time priority over the inline volume slider. Floating panels join room Back handling after their document adoption so return from picture-in-picture remains dismissible. Checked actual touch controls and PiP return in Chrome, focused playback and panel suites, and both TypeScript projects.
  • feat(protocol)!: use product versions for Domain and App admission
    Declare major and minor once at admission and preserve each session's numbers
    beside its signing key. Equal majors admit different minors; incompatible
    majors reject before consuming launch authority and identify the older side.
    App discovery, Native readiness and Web diagnostics keep that direction.
    
    Resolve build identity before compilation. Browser values and displayed version
    share the same build input; the Node SDK reads its actual WASM version. Remove
    the two private wire identifiers without aliases for obsolete internal builds.
    
    Basis: the accepted compatibility rule in Versioning and ADR-0017. Validated
    Core, Web/WASM, Windows reader and App discovery controls. Real packaged SDK
    3.0 and 3.1 each completed signed conversation and private-room history against
    the other Linux Server minor. Browser/App mixed-artifact acceptance remains open.
  • fix(ui): describe media cleanup in terms of its contents
    Name the images and file cache being cleared and the device or page that owns them. Derive complete and retry room counts from the existing disjoint per-host results, retaining at most two result lines. Balance long titles at the shared settings-dialog heading instead of adding a scene-specific class. English and Chinese Chrome checks cover 320-pixel and desktop views; the guides use the same control label.
  • docs(rooms): define media cleanup and unnamed member behavior
    Keep the accepted host, reader and cache scopes in their existing owners and remove the completed TODO entries. Document local picture rotation, the optional nickname prompt and its current search scopes, plus the required Windows shortcut group. Actual Server and dual-browser acceptance and source-level protocol coverage are distinguished from the still-pending replacement shortcut OS check.
  • fix(copy): match diagnostic menus and shortcut preference scope
    Both remote-control shortcuts are saved in the same origin-local browser preferences, while Native owns the current OS registration. Describe that shared scope consistently. Update the two troubleshooting guides and App report hints to the actual More options entry. Verified against the existing Header, launcher, preference and Native owners; no new control or test mechanism.
  • fix(copy): align site addresses and localized launch guidance
    Complete the existing role and address vocabulary in five catalogs and bilingual guide links. Translations own quick-start sentence punctuation through existing interpolation, reusing hosting/access meanings without language-specific component branches. One hundred related catalog, launcher and room-form checks pass.
  • fix(copy): distinguish sharers and public site addresses
    Remote input consent belongs to the selected sharer, voice policy to the room owner, and the launcher public address opens a site without granting room admission. Match existing catalogs, console and bilingual guides to those actual owners. Existing catalog/launcher controls pass, and the terminal assertions track the same labels. No authority or protocol changes.
  • fix(app): distinguish saved addresses from site access
    Do not offer new bookmarks for known Quick Tunnel origins. Keep existing entries readable, renameable and removable, and allow replacing them with stable addresses. Empty launchers prioritize opening an invitation and hosting; the star still opens site management, where saving and App approval remain independent. Match Web, native captions and guides across the supported copy catalog. Real HTTP API and Chrome desktop/phone controls pass, including legacy entries, exact provider matching and stable-address saves. Integrated types, build and relevant Web checks pass.
  • fix(ui): keep room controls usable through layout changes
    The shared room sweep fixes narrow stage sizing, caption overlap, covered chat reads, phone history, focus restoration, settings error placement and row alignment at their existing owners. Room and Network settings share one draft and save action. The two shell stylesheets are consolidated; hidden current-room links and obsolete grid rules are removed. The handbook, matching guides and four generated room screenshots follow the shared components.
    
    Chrome 156 interaction checks covered both themes, 320px phones, short windows, classic scrollbars, native-caption simulation, eight retained players, nested Back/Escape and room-tool popout. Full Web validation passed 2485 cases and exposed one assertion on removed hidden local-preview text; the preview identity now lives in the player accessible label and all 15 affected playback/layout checks pass. TypeScript and Browser SDK types pass. Actual WebView caption dragging and physical mobile capture are outside this browser check.
  • fix(voice): let each room end its shared microphone wait
    A room owns its wait for the shared microphone. Muting ends that input wait and preserves the requested join as listen-only; leaving or revoked admission ends that room immediately while a sibling can still use the same capture. Direct permission denial retains the existing retry outcome.
    
    Production Session and dock-keyboard regressions cover the first prompt, shared A/B waits, late permission and revoked admission. The two complete session/shortcut suites pass 697 checks and the type build passes. No new global queue or owner is added.
  • fix(ui): align room controls with the approved layouts
    Minimal keeps named desktop voice actions, one room heading, a centred first-share action and profile access through the name. More retains its settings surface while its trigger moves. Folding keeps navigation marks and member faces aligned without replaying voice glyph entry animations.
    
    Presence uses actual online sessions, visible desktop tiles retain their own failures, and voice shortcut memory has one observation writer. Remove the unreachable bitrate section from global voice settings while preserving the room setting. Types and all 2464 Web tests pass; Chrome checks cover focus, drafts, viewport changes and the corrected focus-ring inset.
  • feat(voice): share shortcut scope across joined rooms
    VoiceParticipation remembers the rooms whose microphones or listening were last on. One key mutes the active set and cancels pending opens; the next restores successful members, with the most recently requested joined room as the empty-history target. Per-room controls retain their own scope.
    
    The first pending permission is reachable through the actual dock keyboard handler. Speaking overlays retain the existing voice focus, chosen by the joined-room name, independently of ordinary room navigation. Controlled microphone and room replies cover partial refusal, late permission and leave/rejoin; real Chrome DOM checks cover overlay target changes. No native window-system behavior changed.
  • refactor(ui): replace the old layouts with one living room shell
    Full and minimal are two forms of the same room, with shared players, conversation and voice lifetimes. The room list now discloses room membership; the couch owns current-room interaction and the people panel keeps the site-wide directory. Retire the old workspace and quick branches and their private preference values without aliases.
    
    Keep remote-input state mounted when its picture is hidden and expose requests directly on narrow cards. Preserve the common menu in the rail, relocate the voice-name style to its surviving owner, and regenerate guide screenshots from the production room view. Real room voice/draft controls, responsive media-node checks, types and the full Rust/Web/protocol gate pass. Existing Git-heavy Web fixtures pass when rerun serially after parallel timeout.
  • feat(room): compose the living layout from shared activity controls
    Add an explicit living entry to the existing room preview, with persistent room-list folding, shared surface tokens, one retained room tool and independent voice rows. Keep device preferences with the person and App at the top-row end. Chat stays central without pictures; focused pictures choose a measured side or bottom thumbnail strip without recreating players. Existing workspace and quick entries remain pending the owner decision.
    
    Reuse the shared surface motion and reduced-motion policy, restore focus on drawer close and release pointer hits outside the shrinking rail. Couch marks share activity meanings and one person target. Settings portalled out of a detached tool follow their actual document. Do not expose unused multi-room shortcut or overlay target configuration before its scope is decided.
    
    Chrome 156 checks cover desktop and narrow layouts, both themes, two voice rooms, detach document context, media residency and reduced motion. Type checks pass. The full Web run passed all other cases; its old couch target assertion was updated for the shared person control and the affected UI tests pass on recheck.
  • docs(network): link virtual LAN media failures to UDP firewall checks
    The maintenance guide already separates the TCP invitation entry from UDP media. Bring its missing-media branch into the 3.0 bilingual guide and target the actual Windows App peer, since the room host need not carry this transfer. Existing help-site link and heading resolution checks pass.
  • merge(review): close the browser diagnosis and hand off G50 recovery
    Take 266ecee4 with version-scoped evidence and ordinary current-browser guidance. Keep completed reproduction evidence local, report the fully integrated recovery boundary and its limits, and request ownership review of the final source.
  • docs: retire obsolete camera notes and unused fanout samples
    Trace current readers before removing a 2.x camera copy and two unreferenced synthetic data files. Keep the archived camera source pinned for existing pairing references. Correct the 3.0 control guide to match actual share controls rather than preview-only couch accessories. Current media and runtime research with active readers remains.
  • 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.
  • docs(standards): move interface languages to naming and copy
    The five 3.0 UI languages, system-language matching and launcher handoff
    leave the 2.x presentation lifecycle copy for a section in naming.md. The
    older-launcher sentence is restated as the 3.0 rule the copy store follows:
    an explicit launcher choice is saved, a launch default only fills an unset
    preference. The standards index, the documentation map and both translation
    guides now link the new section.
  • 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.
  • 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.
  • 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.
  • feat(forwarding): make Server forwarding an operator-controlled fallback
    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.
  • merge(review): integrate scoped design and lifecycle review
    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.
  • docs(guide): align entry points and storage actions with each version
    Keep the public README on released guides and label the internal 3.0 path. Match current sharing, room restore, cache clearing and reset labels. Distinguish Browser-hosted, App-hosted and Server-hosted rooms without changing their behavior. Checked current control labels, guide links and reset-script backup behavior.
  • docs(guide): say that an invitation or password still admits a removed person
    The guide said a removed person needs a new grant to return. The invitation link and the password still admit them. The owner keeps removal and the invitation as separate responsibilities, so the guide now says what removal does and how to keep someone out.
  • docs(guide): say what a site operator can read
    The room guide said a site owner needs access to read a private room. That describes what the product shows, and leaves out that the site carries chat in a form its operator can read and that a Server-hosted room keeps its records on the operator's machine. The canon asks that Piik say plainly what each party can see.
  • docs(help): distinguish playback failures from missing media routes
    Point a decoder/playback error to its existing retry and browser control before
    network troubleshooting. Keep the media-route procedure and the bilingual entry.
  • fix(watch): prepare a new player without retiring the active webpage
    Keep a borrowed page and its active media reader alive while the host inspects
    another player. Commit the candidate only after the room accepts it, then retire
    the previous reader through the page owner. The native caption reopens the same
    source chooser without navigating the logged-in page.
    
    Validation: 2298 Web tests, TypeScript, Windows same-page A/B cancellation and
    commit controls, 41 current Windows page tests, Linux page tests and both Android
    ABIs. Two cancellation assertions were updated to expect the released empty slot.
    The ownership and source-selection contract is in channel-network-design.md.
  • fix(ui): reuse the shared combination-key switch
    Align the remote keyboard setting with the existing switch control and remove its custom checkbox styling. Correct the App guides to describe native Windows entry, browser alternatives, bookmarks and startup preferences separately.
  • fix(ui): keep drafts and operation feedback in their room
    Retire quoted content after explicit access revocation without dropping drafts during a room writer restart. Bind a pending file picker to its original conversation, keep room record actions independent, and clarify narrow terminal help and local-network troubleshooting.
  • feat(transport): reuse native sockets and support TURN streams
    Native peers can use configured TURN over TCP or TLS and share ordinary IPv4 sockets within their endpoint runtime. Retire the last socket and gateway owner without interrupting sibling paths. Preserve explicit viewer playback errors, bound desktop decoder inputs, and stop copying cancelled retained files.
  • fix(runtime): update vulnerable dependencies and recover missing pages
    Use patched URL and SQLite releases, restore str0m to its verified registry release, and update the Vite patch lines used by app and documentation builds. Preserve existing wire and stored formats. Render unavailable document links through the shared error surface while keeping resource requests at 404, and clarify hosting ownership in the guides.