Repository navigation
feat(desktop): advertise current managed desktop audio - #157723
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 25, 2026, 11:08 AM ET / 15:08 UTC (Revision 8). ClawSweeper reviewWhat this changesManaged Linux host observations advertise the current desktop audio source, return a fixed setup-failure code, and provide PulseAudio installation guidance. Merge readiness⛔ Blocked before merge - 8 items remain Keep open. Current main does not provide this host-observation layer, and the PR remains part of the active desktop-audio stack. Source review found no definite patch defect, but listening authority, client compatibility, and final audio-I/O proof remain unresolved. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway host-desktop service receives a viewer request and the managed Linux desktop's current state. It returns screen observation details and, when audio is available, a screen-bound audio ticket that can lead to application-audio capture. flowchart LR
A[Viewer request] --> B[Gateway host observation]
C[Managed Linux desktop] --> D[Current audio state]
D --> B
B --> E[Screen and audio tickets]
E --> F[Screen authentication]
F --> G[Audio capture and delivery]
Decision needed
Why: Application sound can reveal information beyond visible pixels, and the available request account is not direct acceptance of this specific permission boundary. Before merge
Findings
Agent review detailsSecurityNeeds attention: View-only listening entitlement and rejection before final audio I/O still need owner confirmation and proof; the diff adds no supply-chain change. PR surfaceSource +20, Tests +214. Total +234 across 5 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep audio under the existing screen-observer and managed-desktop owners, with an explicit listening entitlement and a compatible client transition. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a capability. Current-main source confirms that host observations do not yet advertise managed desktop audio. Is this the best way to solve the issue? Unclear: extending the existing host-observation owner is coherent, but the listening entitlement and supported-client transition need resolution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 53a0b854769d. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
9b3680e to
1285793
Compare
d0a1653 to
29eeb3b
Compare
1285793 to
c98ae27
Compare
29eeb3b to
ac26db6
Compare
|
Addressed setup feedback in ac26db6. Cached managed acquisition now reads the current generation failure, and observation exposes only setup-unavailable, never native stderr or host paths. The UI gives operator package/restart guidance, while unsupported sources do not get a false Linux diagnostic. Existing preauthenticated client handling is reused; the earlier Before capture connected the exact baseline UI to the audio-enabled backend, so no version-compatibility shim or client migration was introduced. Proof: 82 backend/protocol and 127 UI tests, type-aware lint on all 30 topic files, types, and P0–P2 review passed: https://github.com/openclaw/openclaw/actions/runs/36078886108 . No merge/deployment; hosted CI remains a separate gate. |
c98ae27 to
c43aaab
Compare
ac26db6 to
35524b4
Compare
c43aaab to
41c7049
Compare
35524b4 to
aee06c3
Compare
41c7049 to
229ae7c
Compare
aee06c3 to
d0d8020
Compare
229ae7c to
2d84cbc
Compare
d0d8020 to
44684d6
Compare
Co-authored-by: vincentkoc <[email protected]>
44684d6 to
f94a19a
Compare
|
Merged via squash auto-merge.
|
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ...
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ...
* fix(qa-lab): retain tab focus and scroll during polling * chore(qa-lab): merge main for tab navigation validation * fix(qa-lab): keep focused tabs visible after layout changes * fix(qa-lab): reconcile navigation retention with current app * chore: refresh main for QA Lab navigation validation * commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ... Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
) * fix(qa-lab): retain tab focus and scroll during polling * chore(qa-lab): merge main for tab navigation validation * fix(qa-lab): keep focused tabs visible after layout changes * fix(qa-lab): reconcile navigation retention with current app * chore: refresh main for QA Lab navigation validation * commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (194 commits) feat(ui): listen to managed desktop audio in the panel (openclaw#157724) fix(ci): resume partially published preparation receipts (openclaw#158174) feat(release): one approval per release via an attested parent approval receipt (openclaw#157911) feat(desktop): advertise current managed desktop audio (openclaw#157723) fix(ui): retain delayed progress scroll gestures (openclaw#158153) refactor(ui): share sidebar mutation error feedback (openclaw#158173) test: await database verifier process lifecycle events (openclaw#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (openclaw#157722) refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050) feat(desktop): isolate managed Linux application audio (openclaw#157720) fix(test): prepare catalog fixture modules before startup (openclaw#158157) fix: keep model pickers usable during provider sign-in (openclaw#158132) refactor(test): remove unused prompt scenario metadata (openclaw#158151) fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020) fix: bound stalled browser stream startup (openclaw#156323) fix(onnx): prevent worker fixture hangs after release (openclaw#158146) fix(models): preserve scoped provider discovery outcomes (openclaw#158139) fix(agents): report offline trash failures after agent delete (openclaw#158052) ... Co-authored-by: Vincent Koc <[email protected]>
* fix(ui): release failed avatar response bodies * test(ui): cover avatar response cancellation in Chromium * test(ui): assert retained image after avatar failure * test(ui): preserve window global type in avatar proof * test(ui): avoid shadowed avatar proof bindings * chore: refresh main for avatar lifecycle validation * commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ... * test(ui): wait for settled avatar fallback * test(ui): wait for control UI before avatar handoff * fix(ui): preserve avatar cleanup across retry lifecycle updates Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state. * fix(ui): integrate avatar response cleanup with current main * test(ui): align avatar cleanup proof with current harness * test(ui): qualify avatar cleanup harness types and formatting Co-authored-by: Vincent Koc <[email protected]>
* fix(ui): release failed avatar response bodies * test(ui): cover avatar response cancellation in Chromium * test(ui): assert retained image after avatar failure * test(ui): preserve window global type in avatar proof * test(ui): avoid shadowed avatar proof bindings * chore: refresh main for avatar lifecycle validation * commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (175 commits) feat(ui): listen to managed desktop audio in the panel (openclaw#157724) fix(ci): resume partially published preparation receipts (openclaw#158174) feat(release): one approval per release via an attested parent approval receipt (openclaw#157911) feat(desktop): advertise current managed desktop audio (openclaw#157723) fix(ui): retain delayed progress scroll gestures (openclaw#158153) refactor(ui): share sidebar mutation error feedback (openclaw#158173) test: await database verifier process lifecycle events (openclaw#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (openclaw#157722) refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050) feat(desktop): isolate managed Linux application audio (openclaw#157720) fix(test): prepare catalog fixture modules before startup (openclaw#158157) fix: keep model pickers usable during provider sign-in (openclaw#158132) refactor(test): remove unused prompt scenario metadata (openclaw#158151) fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020) fix: bound stalled browser stream startup (openclaw#156323) fix(onnx): prevent worker fixture hangs after release (openclaw#158146) fix(models): preserve scoped provider discovery outcomes (openclaw#158139) fix(agents): report offline trash failures after agent delete (openclaw#158052) ... * test(ui): wait for settled avatar fallback * test(ui): wait for control UI before avatar handoff * fix(ui): preserve avatar cleanup across retry lifecycle updates Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state. * fix(ui): integrate avatar response cleanup with current main * test(ui): align avatar cleanup proof with current harness * test(ui): qualify avatar cleanup harness types and formatting Co-authored-by: Vincent Koc <[email protected]>
Related: #157667
Desktop audio stack 4/7. Depends on #157722. Review against the immediate base branch; do not land out of order.
What Problem This Solves
Host observation does not expose the managed desktop’s current audio generation.
User Impact
Managed Linux observations can advertise audio after screen authentication. Reconnects use the current audio source without reviving a retired recorder; browser controls arrive in the next layer.
Why This Change Was Made
Resolve audio through the existing host/registry owner, keep VNC credentials out of the browser when audio is offered, and cover cached-registry restarts. Project a sanitized, current-generation setup-unavailable code instead of native error text, and add the optional-dependency setup guidance. Existing preauthenticated client handling is reused.
Evidence
Final recovery boundary repair: optional audio has its own three-retries/five-minutes budget. Exhaustion or unrecoverable audio disables capture with guidance while healthy desktop processes, applications and leases stay alive; actual desktop failures retain their independent budget. Cached observations during incomplete generation startup reject with retry guidance before minting grants. Final proof: 91 tests, core/Gateway test types, lint/format and fresh P0–P2 review passed. Four real owned-daemon SIGKILLs preserved all original desktop/application PIDs and lease; first recovery restored 440.413Hz PCM in 291ms. Three regressions fail on the prior producer.
Final local validation
Final frozen-source proof: 82 backend/protocol tests + 127 UI tests passed; all 30 topic TypeScript files have zero lint errors/warnings. Core/UI and relevant test type graphs, formatter and scoped P0–P2 autoreview passed. Canonical generation, keyless i18n and docs proof passed in the preceding repair run.
The final changes carry live viewer authority into native recorder admission and startup settlement, preserve inherited application routing when private setup fails, expose only a sanitized setup code, and clean up socket/PCM listeners through their existing owners. The same seven PR boundaries are retained; final assembled tree hashes match the tested source. Historical per-layer/build/native results below are not claims of current-head hosted CI. Hosted CI has resumed; current-head check results and review remain separate gates.
node scripts/run-vitest.mjs src/gateway/desktop/host-source.test.ts src/gateway/desktop/managed-linux.test.ts --maxWorkers=1The assembled candidate passed the packaged build and an isolated token-authenticated Gateway smoke test: readiness HTTP 200; ticketless desktop/audio upgrades HTTP 401; clean shutdown. Native playback proof uses actual production capture/transport/panel through a minimal demo RPC adapter—not an authorized end-to-end playback test through the built Gateway.
Scope: managed Linux Gateway desktops only; no cloud-worker, paired-node, external VNC, macOS or Windows capture. Uncompressed stereo costs about 1.5 Mbit/s while listening; no A/V synchronization or microphone uplink. Actual Safari/iOS and tarball installation remain unverified. No deployment or merge is included.
Requested by @vincentkoc.
Work sessions