Repository navigation
refactor(android): derive connection readiness from its owner - #202898
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 maintainer review before merge. What this changesThis PR derives Android connection readiness from GatewayConnectionDisplay and removes the duplicate runtime Boolean. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, maintainer-authored ownership cleanup with no actionable correctness or security findings; remaining Android CI is pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherNodeRuntime combines operator and node connection status into GatewayConnectionDisplay; MainViewModel exposes that state to Android screens, while the debug voice service reads runtime readiness directly. flowchart LR
A[Operator connection] --> C[NodeRuntime status owner]
B[Node connection] --> C
C --> D[GatewayConnectionDisplay]
D --> E[MainViewModel flow adapter]
E --> F[Android screens]
D --> G[Debug voice service]
Technical reviewBest possible solution: Keep GatewayConnectionDisplay authoritative and retain the existing ViewModel Boolean projection without a separate mutable runtime mirror. Do we have a high-confidence way to reproduce the issue? Source confirms duplicate readiness storage on current main; this refactor reports no runtime defect, and no target code or tests were executed during review. Is this the best way to solve the issue? The change uses the existing owner and adapter, preserves false initialization and eager subscription, and migrates the removed field's consumers without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7e5cad36da35. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -2, Tests +49. Total +47 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 20, 2026, 10:28 PM ET / November 21, 2026, 03:28 UTC. |
1ec2296 to
27cab4d
Compare
|
Merged via squash.
|
* commit '399057400013dcfa1923db08be96c6bf46cf7079': fix: keep known speakers on meeting notes with missing labels (#205923) fix(codex): let saved conversations recover after a remote failure (#201621) fix: distinguish namesakes in Google Meet transcript exports (#205915) refactor: share Discord meeting transcript publication (#205921) test: trim workflow and runtime performance coverage (#205782) fix(android): settle startup before checking archive refresh (#205891) fix: Gateway retains completed reply runtimes after catalog reloads (#195479) fix: clear unused-export failures in dependency checks (#205905) refactor: share browser routing for meeting captions and cleanup (#205916) fix(ui): update Workshop file preview mode (#205872) refactor(android): decouple shared JSON values from node handlers (#202840) fix(ci): remove bot credit from release notes (#205914) fix: pause interrupted shell turns when their result is unknown (#205859) fix(ui): skip publication options for removed workspaces (#205909) fix: preserve indentation in document previews (#205834) improve(ci): avoid full fixture builds for volume checks (#205903) refactor(android): derive connection readiness from its owner (#202898)
…oid-chat-preview-grapheme-boundary * commit '0bea7ecb3029583dd49d83f760d4f40c9e1f543c': (129 commits) fix(android): settle startup before checking archive refresh (#205891) fix: Gateway retains completed reply runtimes after catalog reloads (#195479) fix: clear unused-export failures in dependency checks (#205905) refactor: share browser routing for meeting captions and cleanup (#205916) fix(ui): update Workshop file preview mode (#205872) refactor(android): decouple shared JSON values from node handlers (#202840) fix(ci): remove bot credit from release notes (#205914) fix: pause interrupted shell turns when their result is unknown (#205859) fix(ui): skip publication options for removed workspaces (#205909) fix: preserve indentation in document previews (#205834) improve(ci): avoid full fixture builds for volume checks (#205903) refactor(android): derive connection readiness from its owner (#202898) fix: preserve side chat text when dictating at the limit (#205710) improve(telegram): polling workers start faster and use half the memory (#190890) fix: keep speaker identities distinct in meeting notes (#205860) fix: wait for cancellation before releasing ACP test preparation (#205893) fix: bound workers retained after deleting sessions across agents (#197409) fix(memory): keep a child's memory audience after its parent resets (#205887) refactor(android): give installed skills one data owner (#202892) fix(cli): share process failure listeners across invocations (#205732) ...
Related: #202818
What Problem This Solves
NodeRuntime stores connection readiness twice: in GatewayConnectionDisplay and in a separate mutable Boolean flow. Every status update must keep both synchronized, while runtime decisions already use the display.
User Impact
No intended behavior change. The ViewModel keeps its Boolean StateFlow API, false initial value, runtime switching and subscription lifecycle. Connection, retry, permission and authentication policies are unchanged.
Why This Change Was Made
Remove the duplicate runtime Boolean and its write. Derive the existing ViewModel stream from the authoritative display through its existing runtime adapter, and migrate the debug voice harness's two direct reads. Update five UI fixtures to seed the same state the application uses.
Evidence
27cab4d5cb7bec09da6292a410df8d08fda6761bis based onef7867a9a7c8ae0c5d3b68547eda4672773563a7. It preserves the landed direct-state diary test and migrates the newer session-browser test's read to the connection display.SessionBrowserRefreshTest. The exact parent and replacement each passed that test in isolation. This remains an unexplained combined-run timing failure; the isolated passes do not prove a fix or establish that the failure is inherited. Original XML and the comparison results are retained.The original head separately passed 87 tests per flavor and PR CI. That prior-head evidence does not qualify this replacement. Current-head CI remains required. Local tests use isolated runtime/UI fixtures; no live Gateway connection or voice session is claimed.
Current CI status
Current-head CI run 45796611803 completed the full third-party unit tests successfully. Its following Android lint invocation failed while resolving the pinned tool dependencies after Maven Central returned HTTP 429; no lint verdict was produced. This setup failure is separate from the retained local UI timeout above. The complete run and required gates remain pending qualification.
The failed-job-only second attempt completed successfully at the unchanged head. The retry followed successful Android app lint in run 45796907702, after the failure, with all nine relevant build, repository, workflow and toolchain inputs identical. Original failure evidence remains retained.
Current-head CI attempt 2 passed. The original infrastructure failure and unresolved local timing observation remain recorded above; a passing replay is not presented as a fix for that local observation.