Files
piik/docs/todo.md
T
AAA 4bc0fd1e41 fix(app): stabilize sharing startup and align shared controls
## Problem and outcome / 问题与结果

Windows Auto selection could spend its remaining startup budget on a probe that could not finish, recreate hardware after a successful probe, and discard the prepared codec on first relay activation. Preserve the proven encoder through the existing capture owner and keep VP8 fallback unchanged. Correct custom-port STUN survey membership without changing the published Hosted base preference or introducing a second route/retry owner.

Reject queued minimize/resize frames that no longer match the current WGC target, replacing the one-shot restoration flag that could end an active H.264 share. Align shared controls, help and appearance across the product and website. macOS audio readiness follows successful platform startup rather than the arrival of non-silent samples. The optional editorial headline is shared with the website, with English-first bilingual release copy. Room voice and multiplayer input implementations remain outside this candidate.

Related reports: #437 and #486. Their affected devices still need retesting; this does not establish that all reported driver or macOS failures have been resolved.

## Release notes

**Play together. Your turn!**

**远程同乐,轮到你啦!**

### English

This maintenance update improves sharing startup and brings common controls and guidance into line. Existing 2.x App and Site compatibility is preserved.

- Windows Auto reuses the H.264 encoder that passed its frame-rate probe, preserves it on first relay activation, and skips probes that cannot fit the remaining startup budget. Discard stale minimize/resize frames before they can end an active share.
- Fix optional NAT survey selection with custom STUN ports while preserving existing Hosted selection. Include the upstream ICE candidate-priority correction.
- Make macOS audio readiness follow successful capture startup, so a silent source does not have to produce samples before becoming ready.
- Align shared buttons, selectors, keyboard labels and status colours, and refresh the README previews. Preserve explicit theme choices between the website and documentation.
- Find the Web version, troubleshooting and browser diagnostics in Help; closing a nested hint keeps the menu actions available.
- Put English first in update notes and simplify the website's release section around the same opening headline.

### 中文

这是一次分享启动与界面一致性的维护更新,保留现有 2.x App 和站点的兼容性。

- Windows 自动编码复用通过帧率探测的 H.264 编码器,在首次转发启用时保留该实例,并跳过剩余启动时间不足以完成的探测;丢弃最小化、恢复或缩放窗口时残留的旧尺寸帧,避免它们导致分享结束。
- 修复自定义 STUN 端口下的辅助打洞采样选择,保留已有自部署站点的选择行为,并同步上游 ICE 候选优先级修正。
- macOS 音频在平台确认启动成功后就绪,静默音源无需等待产生音频采样。
- 对齐共享按钮、选择控件、键盘说明与状态颜色,更新 README 界面预览;官网和文档中心之间保留用户明确选择的主题。
- 网页版本、问题排查和浏览器诊断统一收进「帮助」;内部提示关闭后,菜单操作仍然保留。
- 更新说明改为英文在前、中文在后;官网更新区以同一份开篇主题收敛呈现。

## Verification / 验证

- Local Web type-check, unit tests and production build: passed.
- Local Go tests, vet, Windows/Linux builds and Windows native compile/probe: passed.
- Website/documentation build, repository hygiene and diff checks: passed.
- Seven media-lifecycle cases passed: all Browser/App pairings, SFU-only, and Browser/Native fallback followed by direct recovery; restart, replacement and stale-signal retirement were included.
- The first candidate CI exposed an asynchronous allocation-test wait gap. Its correction waits for the committed deficit, retaining the capacity assertion; focused repetition passed locally.
- The native Host gate and benchmark now follow the current picture settings and stable codec name/value instead of removed UI structure or localized captions.
- Non-publishing CI passed on dd208e83, including Windows, both macOS architectures, both Linux architectures and Server packages. The later Windows frame-admission correction passed the focused native suite, physical Auto/H.264 and manual VP8 window gates, and the H.264 display gate. The window checks include minimized/resize/fullscreen recovery; the display check preserves the same media through profile and source changes.
- Final UI review covered narrow/desktop layouts, both themes, header/help, sharing controls, keyboard and interaction panels, packaged Local entry and website/docs preference handoff. The compact release entry passed 320/1280 px checks in both languages and themes, including metadata-request failure.
- Final candidate e88cb236: [all-platform packages and the full paired NAT/weak-network comparison](https://github.com/TNTcraftHIM/Piik/actions/runs/39284032227).

## Impact / 影响

No signaling, native-control, capture-envelope or storage version changes. Route authority, consent, capacity and retry lifetimes remain with their existing owners. The CI allocation correction changes the test only, not production media policy.

Physical macOS capture/permissions, the affected reporter GPUs and difficult external networks remain evidence limits. The owner authorized v2.2.2 after final acceptance; the non-publishing candidate checks must pass before the publishing squash merge. Room voice remains in its isolated experiment and is not a feature claim for this release.
2026-10-20 01:15:17 +08:00

22 KiB

Current TODO Ledger

Last reviewed: 2026-10-20

Explicit owner holds remain in force; an investigation does not itself accept a new feature or architecture. A missing device or reporter trace blocks only that evidence claim, not unrelated work. Product modules own behavior; Git/PRs own completed history.

Now

The 2.x maintenance line retains the published protocol and route owners. Release artifacts and operator records own exact delivery; remaining product work is listed below. Broader device coverage does not override the owner's platform deferrals or establish a diagnosis for unmatched reports.

  • Return LiveKit to an upstream pin. Native publication now supplies unmet encoder demand to the existing allocator through the scoped dependency revision submitted in upstream #5016. When maintained upstream provides this input, pass the same recovery gate and remove the temporary replacement. Provenance and removal own that boundary; this local repair does not diagnose the unmatched field reports below.

  • New promotional film. Refine the accepted short proof's art direction into a standalone Chinese/English introduction that assumes no earlier film. Functional and mechanism work takes priority. Keep the draft in the online review player; export video only after the owner accepts that preview. Keep sharing, invitation, Host consent and playing together causally connected, using product components with staged content for actual operations. The local 36-second cut now carries this story, including a real reaction picker and a friend's tomato throw; refine the two-player party-game vignette, motion, reading time and soundtrack before replacing the online film. Depict the published local-Host plus one remote-friend keyboard flow; experimental multi-controller features are not claims.

Held By Owner

  • Remote-control latency and responsiveness. Scheduled after this release. Compare input-to-visible-response timing on the same endpoints, source and network against a mature remote-control implementation. Separate input delivery, Host execution, capture/encode and receive/playout; retain the existing route and authorization owners. Identify the dominant delay before changing budgets or buffering, and compare loss/recovery as well as steady latency.

  • Persistent-loss estimator replacement. Deferred by the owner on 2026-10-18. Retain mature congestion control and accept quality reduction under sustained high loss; no custom loss model or release prerequisite is added. Evidence and limits retain the low-utilization collapse and distinguish it from concrete feedback accounting or recovery defects, which remain in scope for ordinary fixes.

  • Multiple remote-control screens. Deferred by the owner on 2026-10-17. Keep one shared source and the existing Host source picker; Viewer-initiated screen switching and simultaneous multi-screen streams are later work.

  • 32-bit Windows/Linux Apps. Deferred by the owner on 2026-10-02; no package or website option is planned. Browser use remains available where the OS/browser supports the required media APIs. Retain the isolated Git evidence for the Windows x86 capture experiment; revisit its native dependencies, atomic alignment and real 32-bit device coverage only if this work is reopened.

  • Windows ARM64 App. Deferred by the owner on 2026-10-03. Keep Windows App packages and website downloads x64-only until this work is reopened.

  • Alternative public-invitation providers. Deferred by the owner on 2026-10-16. Retain Cloudflare Quick Tunnel; do not integrate localhost.run or another provider in this phase. The provider assessment retains the probe results and tradeoffs for a later decision.

Awaiting Device Or Reporter Evidence

These physical checks or reporter diagnoses remain unverified. A local repair or successful test is not proof of a reporter's cause; research owns the completed experiments and their limits.

  • macOS bundle startup acceptance (#479). Verify Finder launch, quarantine and capture permissions on a physical Mac. The Mach-O entry and helpers are inside .app; moved-bundle assembly and both architecture builds pass. The corrected packaging has not yet been matched to the reporter's Mac.

  • macOS sharing with source audio (#486). Verify actual screen/window audio plus microphone startup. Both Darwin architectures compile and pass the audio self-test in candidate CI. The local repair confirms audio readiness when platform startup succeeds, rather than waiting for samples. Go pipe controls preserve video with silent or unavailable audio. The reporter's full start-share timeout and separate window-filter crash remain unconfirmed; do not close the report on this partial correction. Evidence separates the confirmed readiness defect from the unresolved system failures.

  • Remote-control device acceptance. Verify physical Android/iOS controllers, mixed-DPI displays, commercial games and an actual remote-device session. macOS needs Finder/Accessibility, focus, Retina and input checks; Linux needs desktop Portal permissions and capture/input checks. Existing evidence and limits remain distinct from build and emulated-controller acceptance.

  • Sustained quality loss. Retest the affected Native Host and the v1.9.2 self-hosted Browser setup with matched Host/Viewer/Server diagnostics, route and codec. Native controls and P2P/Browser trials do not establish these reports' causes. Windows native QP tuning improves the controlled recovery cases. Browser recovery can still take tens of seconds or remain downscaled after allocation recovers; its internal QP settings are not exposed to page scripts. Controlled repetition no longer depends on reporter availability; matched reports are needed to attribute their cases. Do not infer server CPU requirements from an unmatched report.

  • Linux Portal target identity acceptance (#470). The contributor fix is integrated with authorship retained. Compilation and headless serial/node-ID targeting checks pass. Verify an actual Portal that omits pipewire-serial when physical Linux capture acceptance resumes; headless checks do not exercise desktop capture.

  • Windows 11 capture border remains visible. The new report does not identify the affected version, capture path or Windows build. The reviewed picker/start/source-change paths preserve the border preference; no additional confirmed defect was found. Capture evidence owns the permission correction, retirement checks and preview-cancellation boundary. Visible permission changes, display-mode changes and the reporter's setup still need matched physical evidence; API success does not prove that Windows hid the border.

  • Physical device and network acceptance. Complete the device checks and network/endurance matrix, preserving platform deferrals and serial capture checks. Include limited decoders, macOS geometry, sustained game/4K use, live changes through relay/SFU, audio levels/fidelity/exclusion, mobile keyboard/fullscreen and camera behavior, plus passive App approval/revocation and Local coexistence. The linked verification owner retains the detailed evidence boundaries; this does not reopen additional codecs, surround or end-to-end HDR.

  • Native H.264 motion quality (#432). Obtain matched source/decoded pictures and bitstream for the original 720p30 game comparison. Retain current codec parameters. The evidence review owns the withdrawn CBR claim, Baseline admission repair and Main/High comparison; none establishes this report's cause.

  • Self-hosted room creation HTTP 403. Retest affected deployments using the address checks. Obtain the configured public address/origin and response details; distinguish Piik's rejection from a proxy/WAF 403 before assigning their cause.

  • No available media route. Obtain paired reports and compare the same endpoints before assigning a regression. Separate allocation, ICE, first-frame admission and rejection; similar messages do not establish one cause. #443, #448 and #453 need paired transport traces; the v1.6.3 timeout also needs share-start/SDP evidence. #471 reports working STUN and a router mapping on v2.1.0, but no ICE check responses. Its single STUN URL enables ordinary discovery, not the three-destination prediction survey. Obtain the retained paired reports; that summary alone does not distinguish NAT filtering, upstream mapping or a blocked path. #468 needs the complete join/ reauthentication trace on repaired connection-opportunity accounting. #464 needs matched SFU reports after updating; the Viewer-side publication diagnostic was not Host evidence. #467 needs the Host/App rejection preceding its 170 ms exhaustion; extending ICE timeouts is not justified. For #465, isolate local-network permission from IP masking using the local controls. #463 needs the Mac/phone attempt details to distinguish capture, entry and media failure.

  • Public-invitation startup and HTTP 1033. Obtain version and matched diagnostics; distinguish connector exit/recovery, DNS/provider failure and obsolete links from media routing. Compare #396 with runtime evidence. #434 establishes DNS refusal; #452 needs a same-endpoint accelerator comparison for QUIC/TCP timeouts, separately from its H.264 report; #466 needs the original exit log.

  • Viewer interruptions. Obtain paired endpoint/upstream-relay diagnostics for established viewing returning to P2P connecting. Separately retest the v1.5.0 App public-link report where one Viewer drops immediately after connection details appear while others work. Distinguish first-frame admission, signaling grace and current-edge recovery.

  • App discovery and share-start failures. Retest authorization, Browser permissions, control capacity, enumeration and startup. The v1.6.5 Auto-to-VP8 report needs the Browser exception/assets and actual output; its early stop-share is not proof of a no-frame timeout. #419 still needs a matched App report. The v2.2.1 log in #437 exposed Auto admitting a hardware probe with insufficient measurement time. Its local correction preserves the existing VP8 fallback; retest on the affected device. The underlying DEVICE_HUNG and subsequent blocked API remain unconfirmed. For input-texture-create / 0x887a0005, obtain subsequent candidates and the final result; native media research owns hardware evidence and limits.

  • Native sharing ends unexpectedly. The v2.0.0 app/capture/failed and game-entry reports need capture path, codec and matched App diagnostics. Locate the first capture/output, preview-bridge, control or authority failure; distinguish quiet sources, target/display changes and device loss using capture evidence. The error key alone identifies neither a driver nor a timeout.

  • System becomes very laggy after starting a share. Obtain mode, actual codec, profile, display refresh rate and CPU/GPU use, distinguishing startup from sustained lag. Compare saturated GPU/game-FPS impact and multi-output recovery with the helper-cost checks before changing allocation or cadence. For Native/SFU stalls, correlate the relevant Go runtime using the GC attribution boundary; no field report currently establishes GC as its cause.

Local Interaction Prototypes

  • Optional room voice (#484). Continue the isolated self-hosted voice and room-owned tree experiments. Keep production, public invitations and the public Demo unchanged; do not recreate the previous P2P voice mesh. The Host approves voice admission and speaking, and can mute or revoke participants; each listener can also mute another participant locally. Voice remains separate from shared-source audio. The isolated prototype carries actual multi-publisher audio with server-enforced consent and retirement. Synthetic voice/sharing coexistence and a separate local media process are exercised; review the experience before product integration. Physical microphones and external networks remain unverified. Reuse the existing room authority and mature media transport; keep voice publications outside the screen-capture lifetime. Assess an App-hosted instance of the same voice forwarder separately, including Viewers reachable only through a video relay and voice without an active share. The room-tree experiment reuses the unmodified controller for Browser/Pion voice, video and separate source audio, including decoded playback, relay departure and independent publication retirement. Its authenticated Browser control now handles negotiation and first-frame commit without a test runner routing SDP or declaring media ready. Unauthorized voice relays make that path unavailable without disturbing video; approval restores it on the same connections. Before integration, complete production App authorization and control, multi-track upload budgeting, physical audio and external-network acceptance under those owners. The transport assessment separates this local evidence from a production P2P voice path. Issue #484 describes the use case; the published product contract is unchanged.

  • Shared-keyboard remote co-play. Prototype several consented Viewers using the existing input channel and media route. Keep one Host source and one grant/retirement owner, track held keys per participant, and release a key only after its last holder lets go. Give the shared pointer one explicit owner. The local Host-plus-two-Viewer trial covers actual decoded video and encrypted input, individual revoke/disconnect, source replacement and stop/rejoin. Review the prototype before product integration; its recording sink does not establish desktop injection, physical Host key overlap or game compatibility. Multiple screens remain deferred. This experiment does not accept a new published grant model or claim universal game support.

  • Optional virtual gamepads for remote co-play. The owner authorized an isolated input-backend experiment on 2026-10-19. Let the Host supply the optional dependency; do not install or bundle a kernel driver. Reuse the encrypted input route and grant owner, with Host-assigned independent devices and neutralization/removal on retirement. Evaluate maintained backends, licensing, privileges and real-game recognition before product integration. The input assessment owns platform dependencies and the distinction from shared keyboard/mouse control.

Next: P2P Connection And Feedback Evidence

  • External forwarding and participant relays. Complete Browser and external-network acceptance for existing friend relays. Before adopting frp for a deployment, compare loss/recovery and performance on that network; the local SFU media/feedback and STUN controls establish feasibility and the address limitation, not public-network performance. Keep the forwarding assessment as the evidence owner; no second graph or App-hosted SFU is integrated.

  • Coordinated Native retry acceptance. Compare the same difficult-network peers with enhancement enabled/disabled, including mixed stable/sequential observations in both directions and decoded continuity. Preserve the first ordinary attempt, immediate Browser decline and fixed deadlines. The process lab and assessment own existing controls; random-port overlap and field benefit remain unproven.

Prioritize App-to-Browser and Browser-to-Browser comparisons across interface changes, lost mappings and asymmetric restrictions, then Native/SFU handoffs and background P2P recovery. Measure connection success, first-picture time and failure stage with existing Debug provenance under the NAT evidence boundaries. The Browser-compatible assessment owns upgrade and literature evidence; local success is not a field percentage. Keep Magicsock excluded unless a matched comparison establishes additional reachability within the integration boundary. Keep standard ICE recovery while renomination's reverse-feedback failure remains; do not add another retry/transport owner to bypass these limits.

Parked Product Work

  1. Broader quality work. Reopen from measured interruptions, failed recovery or healthy-sibling degradation at acceptable complexity. The Browser pool comparison owns cold-encoder tradeoffs; low resolution alone is not a defect. Check whether a proposed move merely shifts pressure to another parent's siblings.
  2. Platform output. Reopen for a registered receiver acting as an ordinary Viewer only after the platform-output gate passes.
  3. Additional languages. Review community catalogs and their rendered UI following the translation guide, including names, menu navigation, text direction and layout.
  4. Windows code signing. Revisit after enrollment in a trusted signing service. Sign executables before archive checksums; publisher identity does not guarantee that antivirus cloud scanning stops.
  5. Gitee download-source warning. Paused by the owner. Keep GitHub primary and retain Gitee; do not add a self-hosted mirror. Chrome still blocks the Gitee attachment when Referer is removed. Reopen for new evidence or a provider review; the warning remains unresolved.
  6. Release-operation policy. Protected release environments and immutable draft assets remain unaccepted proposals; evaluate their benefit before adding release machinery.
  7. Automatic local chat history. Explicit TXT export covers manual retention. Reconsider automatic storage only with a stable room-incarnation identity, bounded retention and a clear delete control; reusable room codes must not combine conversations. No new history service or wire field is authorized.
  8. Managed Demo hosting. The provider assessment identifies UDP/storage requirements but establishes no cost saving. Keep the existing P2P-only Demo; reopen for an accepted provider and operating boundary.
  9. Phone as a Host microphone. The input assessment identifies pairing/revocation and native decoded-input ownership beyond the device selector. Reopen for a concrete use case that justifies this boundary and physical latency/echo/background checks. This does not reopen room voice.
  10. Remote co-play and mobile controlled platforms. The co-play assessment separates virtual gamepad slots from attended keyboard/mouse assistance. Desktop input acceptance remains above; independent gamepads and mobile controlled endpoints need a separate scope decision.
  11. Multiple simultaneous sharers. The party-mode assessment separates room administration from publication ownership, with one selected picture per Viewer and shared endpoint upload limits. Define publication and subscription lifecycles before a prototype. The current one-Host contract remains; names and UI follow the model decision.
  12. Windows x64 Server packaging (#485). Review the contributor's package extension separately from the maintenance release, including descriptors, container filtering, mirror inventory and Windows runtime acceptance. Remove the unrelated history-check fallback before integration; an absent push base is not a Windows packaging requirement. Existing Linux Server packages and Windows App support are unchanged.