Repository navigation
feat(android): activate target-bound realtime Talk - #142299
roboclaw-bot wants to merge 10 commits into
Conversation
Activate configured realtime routes with selected-chat readiness, status, microphone preference and push-to-talk ownership. Upgrade impact: native STT/TTS now requires explicit stt-tts mode; otherwise Talk attempts the configured realtime route. Saved settings are not migrated, and realtime failures do not silently fall back to native speech. 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 18). ClawSweeper reviewWhat this changesConnects Android realtime Talk to the selected chat, with guarded microphone permissions, push-to-talk handoff, transport selection, and visible call status. Merge readiness⛔ Blocked before merge - 4 items remain This PR remains useful: current main lacks the Android activation path and retained chat failure display. The prior push-to-talk finding is addressed; no additional blocking code defect was established. Upgrade acceptance and visual validation remain outstanding. Priority: P2 Review scores
Verification
How this fits togetherAndroid Talk turns a chat selection and Gateway configuration into a voice call. Its activation owner coordinates microphone capture, realtime transport, agent requests, and cleanup when the user changes chats or stops. flowchart TD
A[Selected chat and microphone permission] --> B[Talk activation owner]
C[Gateway configuration and capabilities] --> B
B --> D{Configured speech route}
D --> E[Native speech or Gateway relay]
D --> F[Client WebRTC call]
E --> G[Agent replies and visible status]
F --> G
B --> H[Retire on stop or selection change]
Decision needed
Why: The change intentionally honors an existing setting differently from the released app, and source-level mode tests cannot establish acceptable operator impact. Before merge
Agent review detailsSecurityNone. PR surfaceTests +2364, Docs +33, Other +461. Total +2858 across 25 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain released unset-mode behavior and accept explicit Realtime activation only with a documented upgrade decision and verified fresh-install, upgrade, and visible failure outcomes. Do we have a high-confidence way to reproduce the issue? Not applicable to the feature as a whole. The prior media-resume defect has source-matched regression evidence, and current source contains its repair; this review did not execute tests. Is this the best way to solve the issue? Yes for the implementation boundary: it reuses the existing activation, connection, and chat owners. Acceptance of changed behavior for saved explicit Realtime settings still requires upgrade evidence and maintainer judgment. 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 (17 earlier review cycles; latest 8 shown)
|
15a544c to
7d070a2
Compare
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. Retain the validated U layer source with only the inherited legacy agent-binding fix. Preserve the historical secondary parent and the validated layer source while restacking its prerequisite. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
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. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
Reuse the current Talk activation guard at final enqueue for relay consultation and steering. Preserve provider-owned tool-result settlement and independently owned relay close instead of gating cleanup as new work. Prove allowed, retired-selection, and concurrent schedules through the real runtime, ChatController, coordinator callers, and WebSocket transport, including accepted-result settlement and close after selection retirement. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
…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. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
An accepted HTTP offer does not authorize a new native SDP submission after chat selection retirement. Reuse the existing call admission for local SDP after offer creation and remote SDP after the HTTP response. Keep all SDP completion and network waits outside those synchronous guards. Prove current and retired selection through the real runtime and held HTTP response, retaining native startup cancellation and owned-close behavior. Co-authored-by: IWhatsskill <[email protected]> Worked on by: - @IWhatsskill
7d070a2 to
01e87a4
Compare
Carry the reviewed media-owner guard while preserving activation admission 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]>
Select the chat before exposing the connected request lease and wait for a verified readiness publication. Check held cleanup before a retired SDP callback can complete its own client cleanup. 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
Supported realtime Talk configurations need a usable Android entry point with readiness, microphone permissions, push-to-talk and visible status tied to the selected chat.
Why This Change Was Made
Connect the realtime client to Talk activation and settings while retaining the selected target and connection generation. Explicit WebRTC stays strict; Automatic may recover through a compatible Gateway relay under the existing eligibility rules.
User Impact
Mode compatibility: Unset mode retains the v2026.9.3 hint/model gate and existing native-speech versus relay choice. Explicit stt-tts stays native; new strict WebRTC/Automatic recovery applies to explicit Realtime. Saved settings are not migrated.
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.
This is validation of the composed K head containing U, not a successful CI gate on this U head.
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 U head: c012fe2.
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:
411c375d937e3c259b35cb00467ab46e0ff1a6a2. The selected-chat test fixture now selects its work owner before exposing the connected lease and waits for verified catalog readiness. The SDP test checks its live-client precondition before releasing a callback that can legitimately close the client. Both changes are test-only; production ownership fences, expected owners, assertions and deadlines are retained. Deterministic startup reproduction changed from 1 failure to 0; the AgentSelection class passed 36 tests. Canonical P0–P2 review of this repair returned zero findings. The exact K descendantcc1a6ce946aa3df418da6e3e12ddc73a563a52d5passed all 3,059 Play app tests, with zero failures, errors or skips, plus all-module Kotlin lint and source-aware/native verification. These are local results, not a fresh GitHub CI or physical-device verdict.Earlier activation and startup admission proof
Source: 15a544c. This last startup follow-up adds net9 production lines; the larger Peer diff is canonical multiline-signature indentation. Initial audio/setup, PTT behavior and owned cleanup are unchanged.
Scoped U startup proof at the revision above:6 tests per flavor, all four Kotlin compiler tasks and ktlint green. The same final regression fails on unchanged prior production: local SDP or a held HTTP answer could enter a native setter after selection retirement. Existing call admission now fences setLocalDescription and setRemoteDescription; all asynchronous waits remain outside locks.
Earlier shared-owner proof on 2f6c756 (13/flavor), relay proof on 2c99c39 (6/flavor) and WebRTC-consultation proof remain retained, not added together. The earlier K descendant dec54dc separately passes127 tests/flavor across the complete relevant runtime/Gateway/offer/coordinator/Peer/Client/Camera sibling suites.
Source-matched integrated terminal observations:
Runtime, ChatController and HTTP/WebSocket boundaries are real; SDK submission hooks are shadowed. Parent inspected the pinned150.7871.01 Java setters and DataChannel.send: they dispatch to the native setters/nativeSend. The tests establish owner rejection before SDK invocation, not physical-device or provider receipt. No such receipt is claimed.
Shared relay/HTTP/DataChannel/native-SDP admission and physical CLOSED serialization are in U. Already-owned settlement, cancellation, transcript draining and close remain separately permitted. U remains Camera-free.
Earlier scoped evidence
Historical test artifacts and source revisions
These artifacts retain their original source revisions. They use controlled/synthetic backends and are not evidence for the current revision. Forced-consult recordings use synthetic API-key settings, not OAuth.
Realtime call and recovery scenarios — 3bb81cb
native-force-current.mp4
native-auto-current.mp4
Routing/recovery comparison — 3717b5b → dae73bc
Android before/after artifacts belong to these two revisions. The browser artifacts come from the same recovery phase, including the renderer-only follow-up dc755c75.
native-force-before.mp4
native-force-after.mp4
native-auto-before.mp4
native-auto-after.mp4
Browser artifacts: startup failure, Auto recovery, strict restart.
Setup-timeout comparison — e90b9e41 → 3717b5b
The synthetic backend withheld SDP to exercise the setup deadline. The recordings are silent and unaccelerated.
before.mp4
after.mp4
Historical APK/source bindings:
39a675e426aad71999f97a63ec3ce478fea793b4dc1cb70256bdb8b5f9f63529ec2683587cf74e7d47019721438a61aef4742c638dac9596c4b7e2ac9caa274a9050f5633e8df762aa2b3ba09bd94ba2e93ef450398437196f0608969bd7a63c82a10521b56ea9968c7797e72efb728363710c8d8024be14d438bc83326b089fHistorical validation source tree: commit
15a544c7c92972e28260ecdf11e75ebb66c4932e. 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.
The new Requested label, and the inherited deferred Talk template, use the existing English-source fallback until generated resources are published and rebuilt. Native ownership and enqueue fences are unchanged by this isolation correction.
Worked on by: