When a remote-input create fails with that persistence error and has not
already been retried, the error is freed and session creation runs again
with persist mode none and a null restore token. The retry flag allows
only one attempt, so a second rejection still fails the request. The
Linux native check compiles and runs a headless portal regression that
rejects the first remote-desktop create with that error and expects the
second create to use persist mode none and no token, and the README
lists that regression with the other headless checks.
Fixes#549
(cherry picked from commit 1e9fda9f41)
## Problem and outcome / 问题与结果
Preparing the missing v2.7.0 mirror fetched AtomGit repository metadata
anonymously and failed with HTTP 401 before reaching tag creation.
Publication preparation now uses the configured token for its GET
requests, including the repository endpoint, while the public read-only
readiness helper remains anonymous.
GET 404 still means absent. Preparation uses one HTTP owner, and
mutation errors are not retried.
## Verification / 验证
- The new mocked endpoint regression reproduces the original 401 before
the change and passes afterward; it also checks that public readiness
remains anonymous.
- Publisher, preparation/readiness and source tests: 65 passed.
TypeScript, diff and repository hygiene checks passed.
- Actual changed paths are release tooling and tests only:
`hasProductChanges(e25bd009, HEAD)` is false. With the published v2.7.0
tag fetched, the planner returns `publish: false`; the existing v2.7.0
packages are not rebuilt or replaced.
## Impact / 影响
No App/Server behavior, dependencies, wire or data format changes.
Recovery continues from the original v2.7.0 CI artifacts and source
marker. AtomGit's separate Pull-mirror tag restriction may remain the
next platform blocker; this repair does not bypass it.
## Problem and outcome / 问题与结果
Inviting another device, changing sources and adjusting playback should preserve the selected access and accepted settings. This update adds local QR invitations, optional translations and a video buffer setting, and repairs App discovery, source retirement, shared controls, remote-input geometry and audio reporting within the existing 2.x contracts.
## Release notes
### English
This update makes invitations easier to share and playback easier to adjust, while improving App connection, source switching and everyday controls. It also adds optional interface translations and more useful audio diagnostics.
- Show the current invitation as a locally generated QR code for another device to scan, preserving the selected access information.
- Add optional Traditional Chinese, Japanese and Korean translations. Chinese and English remain direct choices; the third menu includes extra languages and visual mode. Missing translations use English.
- Add an **Increase playback buffering** switch with an adjustable target. More buffering may reduce stalls from uneven packet arrival, at the cost of added viewing delay. Automatic remains the default.
- Ignore remote-control clicks on blank space outside a zoomed or rotated video.
- Check for a local Piik App once when a site opens. Automatic discovery respects local-network permission; explicit connection keeps approval under your control, and passive failures stay quiet.
- Keep a pending Browser screen or camera selection when the previous Native source ends or the App disconnects. Release the old source while allowing the new selection to finish; cancellation and Stop still end the operation correctly.
- Improve App-to-App connections when port mappings shift during setup.
- Keep playback hints clear of sharing controls, selection indicators inside their tracks, disabled action icons visible, and numeric settings aligned with accepted values.
- Use receiver audio reports for outgoing shared-sound loss statistics, and add opt-in Windows capture-progress diagnostics to help locate missing audio.
Existing 2.x App/site compatibility, saved room data and invitation privacy are preserved. Update the App for Native changes. After updating a hosted Server, refresh open site pages; App-local pages use the Web UI included in the updated App package.
### 中文
本次更新让邀请分享和播放调整更方便,并改善 App 连接、切换来源及日常控件。同时增加可选界面译文和更有帮助的音频诊断。
- 将当前邀请在本地生成二维码,保留所选访问凭证,方便另一台设备扫码加入。
- 增加繁体中文、日语和韩语可选译文。中英文保留快捷入口,第三个菜单提供附加语言与纯视觉模式;缺少的译文回退英文。
- 增加 **增加播放缓冲** 开关,并可调整目标值。更多缓冲可减少数据到达不均造成的停顿,但会增加观看延迟;默认仍由系统自动决定。
- 缩放或旋转画面后,不再把画面外空白区域的点击误传给远端。
- 打开站点时检查一次本地 Piik App。自动发现遵循本地网络权限,主动连接时才由你批准访问;被动发现失败保持安静。
- 旧 Native 来源结束或 App 断开时,保留正在进行的浏览器屏幕或摄像头选择。释放旧来源后仍可完成新选择;取消或主动停止时正确收尾。
- 改善建立连接时端口映射变化情况下的 App 间连接。
- 避免播放提示遮挡分享控件,让选中指示保持在轨道内,保留禁用按钮图标,并让数值设置显示实际接受的值。
- 共享声音的发送端丢包统计改用接收方音频报告,并增加可选的 Windows 采集进度诊断,帮助定位无声发生在哪一段。
保留现有 2.x App/站点兼容性、已保存的房间数据和邀请隐私。Native 改动需要更新 App。托管 Server 更新后请刷新已打开的页面;App 本地页面使用新版 App 包内的网页。
## Verification / 验证
- Complete frontend check: TypeScript, 110 test files / 2001 tests, Web build. Go core check: format, tests, vet and supported cross-target builds; macOS App builds require their native SDK.
- QR invitations passed independent local decoding, credential/rotation checks and short-window layout. Language/visual menus and guidance passed native and forced-polyfill Browser checks.
- Native preparation passed actual Pion socket adoption, VP8 SRTP and reverse SRTCP controls. Remote-input geometry and accepted numeric settings have focused regressions.
- Optional buffer transitions passed real P2P and actual SFU subscriber receiver-API controls for automatic to 300 ms to automatic. The SFU control used a Browser mock upstream rather than the embedded backend; Native preview delegation has unit coverage only.
- Windows diagnostics passed strict translation compilation, counter tests and stderr-to-diagnostic-ZIP verification. Physical capture, optical QR scanning and a public-network success-rate improvement are not claimed.
## Impact / 影响
Compatible 2.x update: Browser/server v24, Native control v10, capture v7 and SQLite schema 2 remain unchanged. Optional translations preserve English fallback and the independent visual preference. Playback buffer is a local viewing preference and leaves the default automatic. Existing room authority and invitation handling are preserved.
The HTTP compression dependency receives a compatible patch update. Mirror preparation detects a rejected missing tag before original-artifact downloads; the platform restriction remains open, with original-package validation and continuation rules intact. This does not establish fixes for #499, #502, #529 or #534.
## Problem and outcome / 问题与结果
The mirror runbook prescribed removing the Pull association as a
verified way to restore write access. Only rejection of new tags and
successful publication after source synchronization have been observed;
changing the overwrite setting did not make tags writable, and disabling
synchronization has not been tested.
Keep the existing configuration, document immediate synchronization as
the working recovery path, and retain the supported platform integration
as unfinished work. Release completion still requires the complete
verified attachment mirror.
## Verification / 验证
Repository hygiene and documentation checks passed. Live checks
confirmed the current Pull configuration and the rejected temporary-tag
creation; no temporary tag or new Release was created by that check. The
existing v2.6.3 release remains complete.
## Impact / 影响
Documentation correction only. No runtime, publication script, package,
version or repository setting changes.
## Problem and outcome / 问题与结果
A published GitHub release could remain missing from AtomGit while the
mirror workflow reported a successful deferral, because it required the
mirrored Git commit and tag first. Package distribution now depends on
the canonical GitHub release and original artifacts. A missing mirror
proceeds to publication; only a matching stable release with its
complete attachment inventory counts as complete.
Release creation uses the mirror's default branch to satisfy AtomGit's
local tag requirement. The release body identifies GitHub as the source
authority, and the publisher retains full anonymous size/SHA-256
verification before marking the mirror stable. The operations guide
makes verified mirror publication part of release completion and
documents the read-only Pull-mirror restriction.
## Verification / 验证
- 58 release publication/readiness/source tests, tooling type checks and
repository hygiene passed.
- Workflow lint passed with the existing unsupported `concurrency.queue`
diagnostic excluded.
- Recovered the original v2.6.3 artifacts without rebuilding: all ten
packages (331,048,966 bytes) were uploaded, anonymously downloaded and
matched against their original SHA-256 values; AtomGit now reports
v2.6.3 as stable/latest.
- The platform's Pull association still needs to permit new local tags
independently of source synchronization; this remains an explicit
operator follow-up.
## Impact / 影响
Release tooling and its operating contract only; no App/Server version
or compatibility change. Scheduled retries remain recovery support and
no longer report missing source synchronization as successful
completion.
Remove the project's hardcoded agent concurrency override so user-level settings determine the available parallelism.
Clarify that external citations use publicly published, verifiable sources. Existing interoperability guidance, compatibility notes, attribution and licenses remain intact.
Validation: repository hygiene and documentation checks passed. The diff changes only project tooling configuration and contributor guidance; it does not create a product release.
The retained-child restart test could consume the prepare message from the child's earlier admission while intending to wait for a later source-path failure. Its assertions then raced the failure handler. Wait for the committed route revision after that failure, and identify the retired relay-to-Host edge directly in the rejection check.
All retained-edge, full-path-readiness and restart-authorization assertions remain. Production routing is unchanged. The renamed test reflects source-path recovery, which can repair a descendant first rather than preparing a new relay ingress.
Validation: the focused regression passed 20 repetitions, then the complete signal package passed. An independent review confirmed the matching-event and authorization boundaries. Full local Go checks passed, including formatting, all package tests, vet and Windows/Linux builds; macOS builds remain with their native CI runners. This continues the approved, unpublished v2.6.3 release.
## Release notes
### Verification / 验证
- Make the route-recovery release check wait for the matching state update. This changes verification only, not runtime routing.
- 路由恢复验收改为等待对应的状态更新;此项仅修正验证时序,不改变运行时路由。
When a native capture helper exits, `exec.Cmd.Wait` closes a `StdoutPipe` even if the stream consumer has not finished reading buffered output. The full v2.6.3 regression exposed this as `file already closed` in place of EOF. The same ordering can discard the final frame.
Give the existing Stream its own `os.Pipe` read end. The child owns the writer after startup, and Stream closes the reader only after its existing shutdown drain completes. Process waiting and typed error reporting keep their current owners; no retry, new state machine or relaxed assertion is added.
Validation: Go 1.27.4, rebuilt nativecapture and nativehost package tests passed from stable local binary paths. The new deterministic regression waits for the helper to exit before reading its buffered frame and EOF; existing process-cause, cancellation and backpressure tests remain unchanged. The 3.0 Rust capture path already transfers stdout to its reader task and joins it before retirement, so it needs no matching change.
This repairs the remaining full-check failure before the approved v2.6.3 publication. No packages from earlier attempts were published.
## Release notes
### Capture reliability / 采集稳定性
- Preserve buffered capture output when the native helper exits, so closing the process cannot discard its final frame or replace the original failure with a closed-pipe error.
- 保留原生采集进程退出时尚未读取的数据,避免提前关闭管道丢失尾帧,或将原始失败变成“管道已关闭”。
The v2.6.3 publishing run stopped at the reachable-vulnerability check because Go 1.27.3 includes GO-2026-6859. Use the official Go 1.27.4 security patch, and run the existing Go advisory check before the full Go build. The affected Piik handlers read and respond sequentially; this change does not claim an independently reproduced concurrent-header exploit in Piik.
Check locked npm dependencies for high/critical advisories before building, and make official dependency releases and retained-patch review part of release preparation. A newer version alone does not block release. No new checker library, scheduled build or dependency-update framework is introduced.
Validation: Go 1.27.4 `check:go-vuln` reports zero reachable vulnerabilities; npm audit reports zero advisories. Full build/platform checks run once on the final publishing revision. This continues the approved, still-unpublished v2.6.3 release.
## Release notes
### Security / 安全更新
- Build App and Server with Go 1.27.4, including the upstream HTTP request-body security correction (GO-2026-6859).
- App 和 Server 升级至 Go 1.27.4 构建,包含上游 HTTP 请求体处理安全修复(GO-2026-6859)。
Saving an App-hosted public site as the startup destination currently reopens its expired address after restart. Persist the hosting selection instead and enter the current ready address. External sites retain their existing fixed-address preference and approval checks.
The Windows MFT request also uses ordinary Baseline while Piik negotiates Constrained Baseline, causing the AMD startup rejection in #538. Request and validate Constrained Baseline without weakening the emitted-stream check. This phase also clears obsolete launcher errors after readiness and restores compact-menu labels.
Refs #538. Review the issue for closure after the release is published; merging this PR alone must not close it.
Validation:
- Web type-check, 108 test files / 1960 tests, production build, and repository hygiene passed. Actual 390px menu layout and the production launcher component's error-to-ready transition passed; the latter used controlled API responses.
- Affected Go App, config, launcher and mobile bridge package tests and Go vet passed.
- The current Windows App completed two real Cloudflare startup cycles: it stored the hosting mode rather than the address, restored it without a new launch request, entered the fresh loopback page in Chrome and created a room. Both cycles retired their ports and processes. Public HTTPS requests from this runner failed with TLS IOException / ECONNRESET, so public reachability is not claimed by this test.
- The Windows hardware H.264 fixture passed on an RTX 4070 SUPER with 360/360 frames, bitrate down/up recovery, and unchanged SPS validation. The affected RX 7800 XT is covered by the reporter's controlled profile comparison and Browser decode evidence. The local integrated AMD adapter failed during MFT activation, before the profile request; it is not a passing AMD regression test.
No wire-version change, dependency update, room-data migration or automatic App-discovery feature is included.
## Release notes
### English
This maintenance update fixes Windows H.264 startup and reopening App-hosted sites.
- Request the H.264 profile that Piik actually negotiates. This fixes the AMD encoder startup rejection reported in #538 without loosening the encoded-stream checks or changing the negotiated profile.
- When an App-hosted site is saved as the startup destination, restart its Local or public-invitation mode instead of reopening an expired temporary address. This applies to desktop and Android Apps.
- Clear a stale startup error once the site is ready, and restore only startup modes available in the current App.
- Keep action labels visible in compact header menus on narrow screens.
Existing 2.x App/site compatibility and saved room data are preserved. Update the App for the Windows encoder and startup fixes. Refresh open site pages after updating a hosted Server; App-local pages use the Web UI included in the updated App package.
If a temporary invitation address was saved before this update, start the site again from the App launcher and select “Open this site when Piik App starts” again. Previously saved addresses do not identify which App created them.
### 中文
本次维护更新修复 Windows H.264 启动失败,以及 App 自托管站点的再次打开问题。
- 让 H.264 编码器请求与 Piik 实际协商的编码规格一致,修复 #538 报告的 AMD 编码器启动被拒绝问题;不放宽码流检查,也不改变协商规格。
- 将 App 自己托管的站点设为启动入口后,下次启动会恢复局域网或公网邀请模式,不再打开已经失效的临时网址。桌面和 Android App 均适用。
- 站点已经就绪时清除过期的启动错误,只恢复当前 App 可用的启动模式。
- 保留窄屏顶部菜单中的操作文字,避免按钮只剩图标。
保留现有 2.x App/站点兼容性及已保存的房间数据。Windows 编码器和启动修复需要更新 App。托管 Server 更新后请刷新已打开的页面;App 本地页面使用新版 App 包内的网页。
曾保存过旧临时网址的用户,请从 App 启动页重新开启站点,并重新勾选一次“启动 App 时打开此站点”。旧记录无法判断这个临时网址由哪个 App 创建。
Fix a room-creation stall caused by repeated publication attachment attempts, and preserve healthy relay subtrees when capacity is reduced. This maintenance update also fixes two UI details and clarifies audio troubleshooting.
## 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
This maintenance update restores room creation after an interrupted relay connection and improves relay-limit changes and controls.
- Fix a disconnected relay causing room creation and routing to become unresponsive (#536).
- Preserve healthy relay subtrees when reducing capacity; move a feasible viewer before retiring the relay branch.
- Keep resolution inputs focused when their values update, so editing can continue normally.
- Keep participant headsets visible in both light and dark themes.
- Clarify how virtual audio outputs affect screen-sharing sound and how to check the selected output device.
Existing 2.x App/site compatibility and saved room data are preserved. Refresh open site pages after the update. App-local users need the updated App bundle for its included Web fixes. A hosted-service restart reconnects active rooms.
### 中文
本次维护更新修复转发连接中断后无法创建房间的问题,并改善转发上限调整和控件操作。
- 修复转发节点断线后,房间创建和线路分配可能卡住的问题(#536)。
- 降低转发容量时保留正常的下游分支,优先迁移可迁移的观众,避免直接拆掉整条转发分支。
- 修复分辨率数值更新时输入框失去焦点的问题,保持连续编辑。
- 改善亮色与暗色主题下人物耳机状态的可见性。
- 补充虚拟音频输出与屏幕共享声音的排查说明,帮助确认实际使用的输出设备。
保留现有 2.x App/站点兼容性及已保存的房间数据。站点更新后请刷新已打开的页面;App 本地分享用户需更新 App,才能获得包内网页修复。托管服务重启时,活动房间会重新连接。
## Validation
- `npm run check`: typecheck, 108 test files / 1953 tests, and the standard Web build passed on clean `e49b66497bf452268a3cb75a70d740fbe2eed072`.
- Existing route, signal, Server and HTTP App Go package checks passed, including the #536 regression and capacity subtree cases.
- The standard local Linux amd64 candidate from this revision passed archive/manifest/hash checks and actual execution on the owned Linux VM: configuration checks, health, served Web source identity, two create/authenticate/abandon cycles, and graceful shutdown. This was an explicitly identified development candidate; final v2.6.2 packages remain the release pipeline's output.
- Actual maintenance-branch component previews confirmed resolution input DOM identity/focus after external updates and headset visibility in both themes, including mute/deafen states.
No native platform matrix was rerun for these changes.
## Impact
Browser/server v24, Native control v10, capture v7 and SQLite schema 2 are unchanged. Deployment uses the existing atomic wrapper and scoped postflight; it does not change proxy, firewall or persistence configuration.
## Problem and outcome / 问题与结果
An otherwise published release could leave its AtomGit downloads incomplete when the platform had not yet synchronized its Git tag, or when a larger package exceeded the upload deadline. Recovery previously required a manual workflow run.
The existing mirror workflow now checks every three hours and after CI completion. It only resumes the latest published release, locates its original CI artifacts, and retains the existing full-download checksum verification. Complete or deferred mirrors use a sparse tooling checkout and skip dependency installation and artifact downloads. Git synchronization remains entirely with AtomGit; publication waits for the matching synchronized commit and tag and never creates or changes Git references.
Increase only the signed upload deadline from three to ten minutes, following the observed 51 MB APK timeout. Metadata/read timeouts, retry counts and the workflow's 30-minute limit remain unchanged.
## Verification / 验证
- 58 focused mirror/publisher tests, TypeScript, documentation and diff checks passed.
- Actual AtomGit readiness was checked against the v2.6.1 source and tag. Fixtures include the provider's four automatic source archives and distinguish them from uploaded packages.
- The release planner returns `publish: false`. This workflow resumes existing verified packages and performs no software build.
## Impact / 影响
Release automation only. Source synchronization belongs to AtomGit; Release and attachment completion belong to this workflow. Missing original artifacts or conflicting source identities remain explicit failures and never cause a published version to be rebuilt or overwritten.