Files
piik/docs/todo.md
T
TNTcraft 9247e48171 feat: tune relay limits and improve sharing recovery (#524)
Room defaults and personal relay limits now use the existing route controller. Hosts can set the room default; viewers can follow it or select a lower or higher personal limit, including zero. Lowering a limit uses the existing handoff, and retired connection attempts no longer consume a later viewer's opportunity.

The candidate also preserves native sharing when its local preview fails, prefers a preview-compatible codec in Auto mode when the App supports it, and improves terminal shutdown, input failure feedback and attached-menu positioning.

Validation: Web type checks, 1,936 frontend tests and the production Web build pass. Server, routing, Native host and media-edge tests and vet pass. Real three-viewer browser checks cover default/override synchronization, receive-only, signaling reconnect, downscaling to a chain and automatic recovery after increasing an exhausted route's limit. Narrow-screen, theme and visual-mode control previews were inspected.

Current field investigations remain open: the niri-specific capture failure (#499), the Windows input-refusal trigger (#502), the UU title-only load report and the older capture/source-cadence reports. These are not claimed fixed by this release.

## Release notes

**Piik, now in your pocket.**

Piik App supports Android screen sharing, with touch controls for a friend's computer.

**手机,也能开播。**

Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。

### English

- Set a room-wide default relay limit. Viewers can follow it or set their own higher or lower limit; zero receives without forwarding. Limits still follow each device's capability, and route selection remains automatic.
- Improve connection recovery when viewers join during route preparation or a peer connection is rebuilt. Canceled connection attempts no longer prevent later retries, and rebuilt routes require fresh media before showing as ready.
- Keep native sharing active when the host's local preview cannot play. Automatic selection prefers a codec the browser can preview when the App supports it, and restoring a preview preserves its playback state.
- Improve App shutdown when its terminal closes and complete macOS permission descriptions.
- Retain useful remote-input failure feedback while pending key releases clear. Fix attached-menu scroll jumps, invisible tooltips intercepting clicks and volume guidance when source sound is unavailable.

This update preserves the existing 2.x compatibility baseline. The new relay settings require an updated site; older pages retain their previous relay behavior.

### 中文

- 房主可以设置房间默认转发上限。观众可跟随默认,也可自行调高或调低;设为 0 时只接收、不转发。实际额度仍受设备能力约束,线路继续自动安排。
- 改善观众在建立线路期间加入,以及连接重建后的恢复。取消连接尝试后,后续连接仍可正常重试;重建后的线路收到新画面才会显示就绪。
- 房主本地预览无法播放时,原生分享继续。App 支持时,自动选择优先采用浏览器可预览的编码,恢复预览时保留原有播放状态。
- 改善终端关闭时 App 的退出流程,补齐 macOS 权限用途说明。
- 释放待处理按键期间保留远控失败提示;修复附属菜单导致的滚动跳动、不可见提示拦截点击,以及没有分享声音时的音量说明。

本次更新保持现有 2.x 兼容约定。新的转发设置需要更新站点,旧页面保留原有转发行为。
2026-11-06 14:04:17 -04:00

7.8 KiB

Current TODO Ledger

Last reviewed: 2026-11-04

This ledger contains unfinished work and explicit owner holds. Product modules own behavior; research and Git/PRs own evidence and completed history.

Now

  • Browser sharing falls to low source FPS during motion. Capture original track, isolated capture-input and sender counters during the same low-FPS episode on Windows Chrome with mixed direct/SFU delivery. The observed sender input fell to roughly 2 fps during video or game playback. Keep source cadence and the separate SFU packet-loss stage distinct.
  • Unclassified capture termination in older Windows feedback. Identify the Native failure stage and HRESULT in the original v2.4.1/v2.5.1 attempts. Their Browser reports show Native failure before page cleanup but do not identify its trigger.
  • Room voice in Native display sound. Resolve the remaining case where system loopback recaptures Browser voice, while excluding the Browser process also removes its other audio. Browser own-document exclusion and Native process-tree exclusion are already implemented; acoustic echo and duplicate commentary retain their separate microphone owners.
  • Virtual-LAN page loading. Investigate the UU report where only the tab title appears and the page never loads. Static compression reduces transfer size; capture the stalled document/script response to locate this failure.
  • Native H264 scene-change latency. Reduce large-AU send-queue delay while preserving bitrate restoration. The end-to-end control locates the delay and rejects the one-frame HRD override that prevents recovery.
  • Linux capture ends after selection (#499). Follow #499 on niri/Wayland with GStreamer NVENC. The Browser report records capture ending before connection cleanup; obtain the native capture failure to distinguish the encoder and Portal.
  • Mouse input stops when Host Chrome is minimized (#502). Follow #502 on the original Windows host. The supplied v2.5.2 reports retain the grant and receive authorized mouse events, but Windows SendInput rejects a button event and subsequent release attempts. Capture whether local physical input also stops during the refusal to identify its OS trigger. Later same-process reports clear the release backlog; the local controlled Chrome trial did not reproduce the failure.
  • Return LiveKit to an upstream pin. Follow upstream #5016. Once upstream supplies the allocator input Piik needs, verify recovery and remove the temporary replacement. Dependency provenance owns the patch and removal boundary.
  • Return Pion to an upstream pin. Follow upstream #3668. Once upstream includes equivalent H.264 profile matching, verify the receiver and forwarding controls and remove the temporary replacement. Dependency provenance owns the patch and removal boundary.

Next

  • Stronger microphone noise suppression (#518). Assess the requested speech-processing option through the shared microphone input. Browser voice processing is already the default; keep screen and system audio unprocessed.
  • 3.0 semantic reconstruction. Continue the isolated feat/channel-prototype from the accepted domain/room/participant model. Map existing behavior and ownership, remove accidental constraints, then implement cohesive Rust runtimes with mature components. Preserve the reviewed recovery semantics, not Go function or module parity. The prototype's design owners and ledger govern its implementation; keep it outside the maintenance candidate.
  • Release headlines in App and Server update checks. Keep the prepared implementation on archive/deferred-prototypes for a later feature release. It consumes the existing headline contract.

Held By Owner

  • iOS native App. Paused in favor of Browser use. Preserve the isolated implementation on feat/ios-client; native development and publication stay outside the current phase.
  • QR invitations. Deferred from the maintenance release on 2026-10-24. Keep the local QR implementation on archive/deferred-prototypes for later acceptance.
  • Additional collaboration cursors. Deferred by the owner. Keep the shared system mouse; do not add multi-cursor or pointer-ownership visualization.
  • Persistent-loss estimator replacement. Deferred on 2026-10-18. Keep mature congestion control and accept quality reduction under sustained high loss; concrete accounting/recovery defects remain ordinary bug fixes. Evidence.
  • Multiple remote-control screens. Deferred on 2026-10-17. Keep one shared source; Viewer screen switching and simultaneous screens are later work.
  • 32-bit Windows/Linux Apps. Deferred on 2026-10-02. No package or website option is planned.
  • Windows ARM64 App. Deferred on 2026-10-03. Keep Windows downloads x64-only.
  • Alternative public-invitation providers. Deferred on 2026-10-16. Keep Cloudflare Quick Tunnel. The provider assessment owns alternatives and tradeoffs.

Parked Product Work

  • Virtual gamepads beyond Windows. Linux uinput passed its isolated kernel gate; desktop permissions and game recognition need physical checks. macOS virtual HID needs an entitled App and macOS SDK/runtime checks. The co-play assessment owns platform evidence; Piik does not bundle or install optional input drivers.
  • Platform output. A registered receiver may act as an ordinary Viewer after the platform-output gate passes.
  • Additional languages. Review community catalogs and rendered UI through the translation guide.
  • Windows code signing. Revisit when a trusted signing service is available; sign executables before archive checksums. Signing does not guarantee the end of antivirus cloud scanning.
  • macOS distribution signing. Developer ID signing and Apple notarization need an Apple Developer identity. #489 reports first-launch blocking; the troubleshooting guide provides a scoped opening procedure, not a signing fix. Verify downloaded bundles on a Mac when signing becomes available.
  • Automatic local chat history. Manual TXT export already exists. Automatic storage needs a stable room-incarnation identity, bounded retention and deletion; reusable room codes must not combine conversations.
  • Managed Demo hosting. The provider assessment establishes no cost saving; keep the existing P2P-only Demo pending a concrete option.
  • Phone as a Host microphone. Revisit only for a concrete use case that justifies the pairing and input boundary.
  • Mobile controlled endpoints. Separate scope from desktop keyboard/mouse control and desktop co-play.
  • Multiple simultaneous sharers. Define publication/subscription ownership before prototyping. The party-mode assessment owns the proposal; the current one-Host contract remains.