Repository navigation
feat(android): attach current camera snapshots to Talk - #142300
roboclaw-bot wants to merge 19 commits into
Conversation
Add call-bound camera permission and preview, bounded describe_view snapshots and exclusive CameraX ownership across Talk, QR scanning and node capture. No continuous video track is created. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
|
🦞👀 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: blocked before merge. Reviewed September 10, 2026, 1:52 PM ET / 17:52 UTC (Revision 20). ClawSweeper reviewWhat this changesAdds opt-in camera previews, lens switching, and bounded snapshots to Android Talk, with shared camera ownership across Talk, QR scanning, and node capture. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this protected PR adds a distinct capability absent from current main. No new blocking code defect was found, but the previously identified device-proof and camera-recovery requirements remain unresolved. Priority: P2 Review scores
Verification
How this fits togetherAndroid Talk connects the selected chat to a realtime voice provider. This change lets an enabled local camera preview supply one image when the provider requests visual context, while coordinating access with other Android camera features. flowchart TD
A[Active Talk call] --> B[Provider supports images]
B --> C[User enables camera]
C --> D[Exclusive camera preview]
E[Visual context request] --> F[Capture and bound JPEG]
D --> F
F --> G[Recheck call and preview ownership]
G --> H[Send image or return tool error]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +500, Docs +6, Other +330. Total +836 across 15 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain call-bound, opt-in snapshots with final-send ownership checks, a clear camera-release action, and demonstrated recovery of existing camera workflows on fresh and upgraded installations. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a capability rather than repairing a reproduced existing-behavior bug; its ownership regressions were inspected as supplemental evidence. Is this the best way to solve the issue? Yes, the bounded snapshot path and shared binding owner fit the stated feature and accepted contention policy; device interoperability and recovery still need acceptance evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6a011b56dfd1. LabelsLabel justifications:
EvidenceWhat 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 (19 earlier review cycles; latest 8 shown)
|
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. The resulting source tree is identical to the validated private R candidate. Preserve the original published head as a merge parent; no existing commit is rewritten. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. The resulting source tree is identical to the validated private I candidate. Preserve the original published head as a merge parent; no existing commit is rewritten. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. The resulting source tree is identical to the validated private M candidate. Preserve the original published head as a merge parent; no existing commit is rewritten. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. The resulting source tree is identical to the validated private S candidate. Preserve the original published head as a merge parent; no existing commit is rewritten. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. The resulting source tree is identical to the validated private L candidate. Preserve the original published head as a merge parent; no existing commit is rewritten. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. The resulting source tree is identical to the validated private U candidate. Preserve the original published head as a merge parent; no existing commit is rewritten. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. The resulting source tree is identical to the validated private K candidate. Preserve the original published head as a merge parent; no existing commit is rewritten. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Reuse the Talk activation admission owner around client request enqueue so chat selection retirement cannot race a final currency read. Keep logical call retirement and already-owned abort/close cleanup distinct. The real runtime, ChatController and WebSocket regression preserves allowed consultation and rejects retired work; the public U source fails the same final test while the owner-bound repair passes in both Android flavors. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Integrate the reviewed U selection-versus-consultation repair with the existing Camera layer. Preserve both published histories and all Camera behavior. The exact combined source tree passed both-flavor compilation, the runtime selection regression, lifecycle/ACK siblings, Camera preview tests and ktlint. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
…queue Place shared DataChannel and physical-retirement admission in the U activation owner, preserving byte-equivalent non-camera corrections from 96a494f. Prove tool outputs and response creation without camera fixtures. Fence the separately reproduced delayed-SDP HTTP offer at synchronous Call.enqueue with the existing call admission owner. Keep cancellation registration, response waiting and already-owned cleanup outside that lock. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Preserve both published histories. Shared relay, HTTP, DataChannel and physical retirement repairs live in U; retain K camera-identity admission and its tests. The only composition conflict was a test import. Both regression groups remain. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
dec54dc to
b402c7f
Compare
Keep the published histories and final Camera residual. Preserve the new source-matched local/remote SDP submission regression with the existing relay, HTTP, DataChannel, cleanup and Camera proof. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
b402c7f to
1b16709
Compare
Carry the reviewed media-owner guard while preserving camera-layer source and history. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Carry the corrected predecessor while preserving feature source, stable inventory, manual English resources, and race fences. Defer this layer’s managed locale/map/XML output to the normal native locale refresh. Source-only builds retain the existing source-language fallback until generated locales are published. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Preserve camera-specific coverage while carrying the reviewed activation layer test setup and startup cleanup synchronization fixes. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Keep final WebRTC recording/playout enables inside the captured physical, selection, capture and call authority; recheck after routing. Dispatch PTT resume outside the capture lock, retaining unrestricted disable and cleanup. Proven with real Runtime PTT transitions, pinned-SDK setter observations, unchanged RED/GREEN assertions, focused siblings and the final K Play suite. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
|
Closing this PR in favor of a planned rebuild on current main. |
Related: #138726 — Android realtime Talk.
What Problem This Solves
A realtime call needs an explicit, call-bound way to provide a current camera image without continuously streaming video or stealing the camera from QR scanning and other capture operations.
Why This Change Was Made
Add opt-in preview and one bounded JPEG for
describe_view, gated by the selected provider's image capability. Talk, QR scanning and node capture share one CameraX binding owner; retired calls cannot submit late images or release a successor's binding.User Impact
Enable camera snapshots during supported Android Talk calls. Camera permission, preview lifetime and front/back selection remain tied to the active call. No continuous video track is created.
Evidence
Composed-stack GitHub CI — September 10, 2026
Manual CI 34503641105, attempt 1 completed with failure on composed-stack K commit 9df42f1. The actual resolved checkout was verified. This was ordinary full-scope validation with Android enabled, not a release-gate override.
No check was waived. Source/generated-artifact isolation and the listed-owner requirement for the protected A/Main integration remain unchanged. This manual run does not repair automatic pull-request CI and is not Main-merge clearance.
PTT media-resume repair — September 10, 2026
Current K head: 9df42f1.
PTT completion now revalidates the existing call activation at final WebRTC recording/playout enablement, including a second check after routing callbacks. Main.immediate resume dispatch starts outside the capture lock. The established physical Gateway → selected chat → capture → call lock order is retained; disable, stop and cleanup remain permitted after retirement.
The regression drives real Runtime/Chat/Gateway ownership and PTT completion, observing the pinned SDK setter boundary through test shadows. It does not claim physical microphone/RTP, camera/device/upgrade acceptance, strict generated-locale parity or new remote CI success. All source/generated isolation and existing translation-history boundaries below remain unchanged.
Earlier source-only correction — September 10, 2026
Head:
cc1a6ce946aa3df418da6e3e12ddc73a563a52d5. The exact source-only headcc1a6ce946aa3df418da6e3e12ddc73a563a52d5, tree17512c085d0efb29a034f484ee45e1ac0e927519, passed all 3,059 Play app tests with zero failures, errors or skips on September 10, 2026, at 13:43 UTC. All-module Kotlin lint, source-aware admission and native source verification passed. Canonical P0–P2 review of the inherited two-test-file U repair returned zero findings. The natural ancestry-preserving merge produced exactly the tested tree; no post-test resource overlay was applied. These local results do not claim current GitHub CI clearance, strict generated-locale parity, or physical-device acceptance.Earlier camera residual and integrated proof
Source: dec54dc; U parent: 15a544c. Camera object/operation identity is checked inside final synchronous DataChannel admission after capture and encoding. Shared non-camera and post-await SDP safeguards are inherited from U.
Prior generated-candidate evidence, before source/generated isolation: the earlier combined source tree passed 127 tests per flavor, Kotlin compilation, ktlint and canonical 21-locale/resource checks. Those results are not a current strict generated-parity or final-CI claim.
Source-matched Camera observations:
These exercise actual runtime/ownership producers with shadowed SDK submission, not physical Camera/provider receipt. Actual device/lens/QR-node recovery and inspected visual evidence remain unresolved separately. No policy, hardware-proof or CI waiver is claimed.
Earlier scoped evidence
Maintainer decision: Exclusive opt-in preview ownership was accepted: QR/node capture may report BUSY until release; visible release guidance and real recovery proof remain required.
Still required: inspected/redacted before/after Android controls, and device/provider evidence of snapshot receipt, lens switching and QR/node recovery after release, plus fresh/upgrade validation. The current busy response is preserved; this is not formal GitHub review, real-camera proof, signed/minified release acceptance, CI clearance or merge authorization.
Historical validation source tree: commit
dec54dc3d46f09e73274c6aec3f5fc2e835967e4. The local evidence above has its stated scope.Native locale publication boundary
This is a source-only PR. Source/inventory changes and program behavior are retained; generated native locale dictionaries, lookup tables and XML are owned by the serialized Main-only Native App Locale Refresh workflow after source landing. Source-aware admission and inventory verification are distinct from strict generated-resource parity. No refresh or Main merge is performed by this PR update.
Seven L/U/K source strings currently use the existing English-source/template fallback: the Talk state/details template, Requested, and five camera labels/messages. All 147 existing locale/ID values (7 IDs across 21 locales) are retained and were compared against their original public artifacts and the separately regenerated data.
Generated-owner follow-up after source landing: compare or reuse the matching values from commit
17ff289a8716981ed503fec2b81d1b9764db8613,apps/.i18n/native/<locale>.json, for these source IDs:native.android.08db8d7e8884c33f,native.android.6ab848d4738f7fce,native.android.51e5ace3a3ab4694,native.android.7176b72dac466b5a,native.android.84b2fec6f688032d,native.android.9df98cc7f6d15065,native.android.9faf019821cda6d1. Reconcile with current Main source IDs rather than copying whole old locale files. The refresh must compare those values explicitly, and regenerated resources need a new build. This follow-up remains open.Worked on by: