Repository navigation
fix(android): settle startup before checking archive refresh - #205891
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 changesThe Android archive-refresh test waits for pending startup reads before installing controlled responses. Example: API 34 Robolectric startup delays the roster response until history loading begins.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR makes a focused fixture repair without weakening archive assertions; no actionable defect remains in the reviewed head, and Android CI is still pending. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Robolectric fixture runs the Android runtime, chat controller, view model, and Compose archive state against controlled Gateway responses. flowchart TD
A[Screenshot runtime startup] --> B[Chat history bootstrap]
B --> C[Health and roster refresh]
C --> D[Bounded startup join]
D --> E[Controlled Gateway responses]
E --> F[Compose archive state]
F --> G[Rendered state and request assertions]
Technical reviewBest possible solution: Keep the bounded fixture-only startup join and retain the existing archive behavior assertions. Do we have a high-confidence way to reproduce the issue? Source supports the reported startup overlap, and the body records a controlled red/green replay; the exact trigger of the earlier hosted failures remains unknown, and no tests were run during this read-only review. Is this the best way to solve the issue? The change synchronizes the existing fixture before request interception, preserves every behavioral assertion, and adds no production seam or competing owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against edfd93e8c82c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +13. Total +13 across 1 file. 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 HistoryReview history (1 earlier review cycle)
Reviewed November 26, 2026, 5:23 AM ET / 10:23 UTC (Revision 2). |
|
@clawsweeper re-review Please review |
|
🦞👀 Re-review progress:
|
|
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) ...
…w#205891) * test(android): settle startup reads before archive responses * style(android): wrap archive fixture startup chain
What problem this solves
The Android archive refresh test can time out before it exercises pagination. In a controlled run, screenshot startup published its first session rows while a health-driven roster refresh was still pending. The first archive response was accepted, then the second read began before Compose displayed the settled ledger row.
Why this change was made
The fixture now waits for a snapshot of pending asynchronous work in the screenshot chat scope before it installs its archive responders. The wait is bounded at five seconds and covers the history bootstrap that awaits the roster refresh. All six per-action request counts, rendered-state assertions, and failure and pagination controls remain in the test.
User impact
This changes test setup only. Developers can exercise archive refresh under both ordinary startup and delayed roster delivery. It follows up on the earlier fixture repair. Previous Android test change
Evidence
ledger:falsebefore the second read and passed all six read checksledger:falseledger:falsebefore the second read and passed all six read checksThe controlled replay used the checked-in test with a scoped runtime adapter. The exact trigger in the earlier hosted failures remains unknown.
Full Gradle results
The first signed head,
fc543cbf, was tested on merge83cf7f24. Both full unit-test jobs passed. Each class report executedarchivedQueryRetainsOnlyItsOwnAcceptedPageAndReadsOncePerChangeonce with zero failures, errors or skips.The same run found two required line breaks in the new Kotlin chain. Signed head
eaca4c99applies both. The configured ktlint check went from two diagnostics to zero, and the Kotlin syntax tree excluding whitespace was identical. Protected CI passed on the final head, including Android ktlint.Both final Gradle jobs tested merge
c830eb37, which contains signed headeaca4c99on based4cdcfc7. Each XML report recorded one execution of the archive refresh test with zero failures, errors or skips.