Repository navigation
feat(android): coordinate realtime response and transcript state - #142297
roboclaw-bot wants to merge 4 commits into
Conversation
Retain response cancellation, tool-batch completion and ordered speech persistence state together with their bounded-identity regressions. 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 state helpers and tests for realtime response cancellation, tool-result batching, and ordered transcript completion. Merge readiness✅ Ready for maintainer review Keep open as a useful prerequisite in the active Android realtime Talk stack. No actionable defect was found in the introduced helpers, and neither current main nor the latest release establishes that this work is superseded. Priority: P2 Review scores
Verification
How this fits togetherThese helpers accept response, tool, and transcript events and determine when responses may start and transcript writes may proceed. The linked client-lifecycle PR supplies their production integration. flowchart TD
A[Realtime events] --> B[Response state]
C[Tool results] --> D[Tool batch tracking]
D --> B
B --> E[Create or cancel decision]
A --> F[Transcript ordering]
F --> G[Ordered write readiness]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +297, Other +203. Total +500 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep response, batch, and transcript sequencing in these internal owners, with network dispatch and call retirement handled by the linked client lifecycle. Do we have a high-confidence way to reproduce the issue? Not applicable as a current-main bug reproduction: this PR supplies a new client-state layer, and its event-order scenarios are covered by inspected tests rather than a reviewer-executed runtime failure. Is this the best way to solve the issue? Yes. Separating deterministic state transitions from media and Gateway I/O is a focused design, and the downstream client uses these helpers at the intended boundaries. 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)
|
6d16dfa to
5e5f160
Compare
Integrate the reviewed owner-scoped repairs and updated stack prerequisite. Retain the validated S 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
5e5f160 to
9c3a015
Compare
Carry the reviewed media-owner guard while preserving state-layer source and history. Worked on by: - @IWhatsskill Co-authored-by: IWhatsskill <[email protected]>
Carry only the I generated-artifact isolation correction. Preserve the existing feature layer, queued-offer race fix, and both histories. 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
Realtime responses, tool results and transcript events can arrive out of order or after cancellation. The Android client needs deterministic ordering without duplicate responses or permanently blocked transcript writes.
Why This Change Was Made
Keep bounded response state, tool batching and transcript predecessor ordering together. These state owners do not allocate media or make Gateway requests.
User Impact
Provides the ordering guarantees used by the client layer; no standalone UI or configuration change.
Evidence
Source-only correction — September 10, 2026
Head:
884dc6c9c69d1c3cc4e9876f74327c60bd2ef916. The source-only I correction is propagated without changing the state production code. The composed K descendantcc1a6ce946aa3df418da6e3e12ddc73a563a52d5passed all 3,059 Play app tests and all-module Kotlin lint. Earlier layer-specific test results retain their original source bindings.Historical validation source tree: commit
6d16dfa44a3669f6ce8e5c34eb007f446566ef15. The local evidence above has its stated scope.Worked on by: