Repository navigation
feat(android): retain realtime calls through cleanup - #142298
roboclaw-bot wants to merge 4 commits into
Conversation
Keep the non-camera client, selected wire target and coordinator together through accepted acknowledgements, transcript drain and logical close. Retired calls cannot start replacement work. Verify Wear steering as an exact session-ID-owned request without redundant chat-routing fields. 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: needs maintainer review before merge. Reviewed September 10, 2026, 10:11 AM ET / 14:11 UTC (Revision 10). ClawSweeper reviewWhat this changesAdds Android realtime call ownership that preserves the selected chat and Gateway connection through startup, agent work, transcript delivery, and cleanup, with lifecycle and protocol regression coverage. Merge readiness✅ Ready for maintainer review This remains distinct, useful work absent from current main and the latest release. Both earlier race findings are addressed; no remaining blocking defect was found in the pinned changes. Priority: P2 Review scores
Verification
How this fits togetherAndroid Talk receives realtime provider events and coordinates agent requests through the Gateway. This lifecycle layer binds those requests and transcript writes to the original call, then drains accepted work during shutdown. flowchart TD
A[Selected chat and Gateway connection] --> B[Realtime call owner]
C[Provider events] --> B
B --> D{Call and connection still current?}
D -->|Yes| E[Gateway agent requests]
B --> F[Ordered transcript delivery]
D -->|Retired| G[Drain and close original call]
E --> G
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1609, Other +833. Total +2442 across 13 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep call admission, acknowledged-run cleanup, and transcript draining under the captured call and connection owners while preserving existing relay behavior. Do we have a high-confidence way to reproduce the issue? Not applicable as a standalone current-main bug report: this adds a lifecycle layer. The recorded production-boundary runs demonstrate the earlier branch races and their corrected outcomes. Is this the best way to solve the issue? Yes. Capturing one wire target and enforcing retirement at final enqueue addresses the lifecycle boundary directly without adding another persistence mechanism or changing saved provider preferences. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 878bc51433d4. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
cdbd335 to
40f129e
Compare
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. Retain the validated L 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
40f129e to
8f2929d
Compare
Carry the reviewed media-owner guard while preserving lifecycle-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]>
|
Closing this PR in favor of a planned rebuild on current main. |
Related: #138726 — Android realtime Talk.
What Problem This Solves
Android client-owned realtime calls must keep their selected chat and physical Gateway connection through delayed startup, agent work, transcript delivery and shutdown. Otherwise a retired call can lose accepted work or act on a replacement connection.
Why This Change Was Made
Keep the non-camera client and agent coordinator in one lifecycle: accepted transcript writes precede tool admission, late acknowledgements are retired, and cleanup performs one logical close. Relay steering uses the retained session ID; client-owned steering keeps its selected agent/chat target. The Wear test now checks the exact session-ID-owned control request.
User Impact
Provides target-bound realtime call handling without changing saved authentication or transport choices. Camera capability is not advertised by this layer. Call activation follows separately.
Evidence
Source-only correction — September 10, 2026
Head:
5a2b110d3d0239576949c1f194bbae6ba41cfdc8. Source-aware admission and native source verification pass. The L/U/K isolation correction passed 27 focused resource tests and canonical P0–P2 review with zero findings. The composed K descendantcc1a6ce946aa3df418da6e3e12ddc73a563a52d5also passed all 3,059 Play app tests; this does not replace separate device or CI requirements.Real WebSocket final admission: allowed consultFrames=1; retired consultFrames changed 1 → 0.
ACK registration: allowed acceptedConsults=1/abortFrames=0; retired abortFrames changed 0 → 1 at the exact ACK-confirmed agent/session/run.
103 tests per Android flavor passed on the repaired complete-native candidate; stored XML, exits and frame observations were independently reviewed. Actual early-prefix validation is separate.
Split indentation/blank-line defects were repaired; ktlint and both Android lint variants passed on repaired production source.
Historical cleanup timeout was not reproduced in the original 101-case manager run or observation-only 2,991-test run. No longer timeout, weakened assertion, speculative cleanup rewrite or proven-flake claim.
Operator metadata opt-in was verified at the real WebSocket connect frame: failing before the producer fix, passing afterward. The 41-tests-per-flavor follow-up includes older hello and absent-metadata compatibility; no new reply requirement.
L owns the Talk status source/inventory entry. Generated status resources are deferred to the Main-only native locale refresh workflow; Camera capability remains absent.
Prior-source evidence, before source/generated isolation: the earlier published source tree passed both-flavor production/test-source compilation, the real-frame admission regression once per flavor, ktlint and canonical 21-locale/resource checks. Those results are not relabeled as a new build of the source-only resource composition.
Historical validation source tree: commit
cdbd33585372eaec77bb5649308568e5d021e0a2. 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 Talk state/details template uses the existing English-source/template fallback on this source-only branch until generated resources are published and included in a subsequent build. Its translation values remain in public history and the retained comparison set.
Worked on by: