Repository navigation
fix(macos): show the full automation count - #139692
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. Reviewed September 6, 2026, 7:38 AM ET / 11:38 UTC. ClawSweeper reviewWhat this changesThe macOS Automations menu displays the Gateway’s full enabled-job count alongside up to eight upcoming jobs, with updated regression coverage and documentation. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. No actionable correctness or security findings remain; the temporary capture concern is resolved, and the earlier reviewer-side media retrieval limitation does not warrant another contributor request. Priority: P2 Review scores
Verification
How this fits togetherThe macOS menu requests scheduled-job data from the selected Primary Gateway. Its refresh store keeps the count and preview together and supplies them to the native menu renderer. flowchart LR
A[Primary Gateway] --> B[Filter enabled jobs]
B --> C[Full total and eight upcoming jobs]
C --> D[Validate current Gateway ownership]
D --> E[Cached menu summary]
E --> F[Automations count and preview]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs +2, Other +120. Total +122 across 11 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Use the Gateway’s authoritative filtered total and bounded preview within the existing menu refresh lifecycle. Do we have a high-confidence way to reproduce the issue? Yes: current main counts a page capped at 200, so 201 enabled jobs undercount; disabled rows can also displace enabled previews. This review established the mechanism from source without executing tests. Is this the best way to solve the issue? Yes: consuming the existing filtered total fixes the owning boundary without fetching every page or introducing another API, setting, or persistent store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7cfda7a5a246. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
Keep the server-filtered total and eight next-run previews in one Gateway-owned snapshot. Remove duplicate local filtering and sorting; retain cancellation, observation and route retirement.
Keep the rendered count regression on the shared accessibility helper after verified before/after CI. Remove temporary captures, wire diagnostics and artifact upload machinery.
|
Merged via squash.
|
* commit '3ed964c8ca6206d26ecc0b6567ccd1389d9948fc': (36 commits) refactor(plugins): unify install config snapshot preparation (openclaw#140081) fix: cloud provisioning stays failed after temporary storage recovers (openclaw#140021) fix(ci): preflight job outputs exceed 1 MiB on full-plan pull requests (openclaw#140018) refactor: consolidate command and provider helpers (openclaw#140072) fix(doctor): replace unavailable TUI cleanup advice (openclaw#140074) fix(plugins): avoid scoped pack failures and missing runtime entries (openclaw#140016) fix: clarify background command timeouts (openclaw#140022) fix(workboard): refresh board navigation while retaining drafts (openclaw#139952) fix: preserve newer chat drafts when rewind completes (openclaw#140066) feat(transcripts): browse and export saved meeting archives (openclaw#139875) fix(cron): complete timeout test observation phase (openclaw#140076) fix(macos): show the full automation count (openclaw#139692) fix: native worker turns fail to load WebSocket transport (openclaw#140071) fix(cli): complete quoted Bash option values (openclaw#140034) fix(chat): show command instructions while pending (openclaw#140041) refactor(cli): use canonical resume result schema (openclaw#140056) fix: restore package acceptance across install runtimes (openclaw#140062) refactor(auto-reply): keep model-selection fixtures in tests (openclaw#140069) fix(plugins): remove owned aliases before uninstalling files (openclaw#140065) fix: completed replies hang when context-engine cleanup stalls (openclaw#140023) ...
* test(macos): capture paginated automation count regression * test(macos): observe hosted automation row accessibility * test(macos): verify cron fixture before count proof * test(macos): type the captured accessibility value * test(macos): diagnose automation response decoding * test(macos): retain the synthetic automation response * test(macos): keep automation fixture fragments as JSON text * fix(macos): show the full automation count Keep the server-filtered total and eight next-run previews in one Gateway-owned snapshot. Remove duplicate local filtering and sorting; retain cancellation, observation and route retirement. * test(macos): remove temporary automation count capture Keep the rendered count regression on the shared accessibility helper after verified before/after CI. Remove temporary captures, wire diagnostics and artifact upload machinery.
What Problem This Solves
Fixes an issue where the Mac Automations menu shows an incomplete enabled-job count when the catalog spans a list page. With 201 enabled jobs, the rendered menu reported 200. Disabled jobs could also consume the fetched page before the menu filtered it.
Why This Change Was Made
The menu now consumes the Gateway's filtered total and requests its eight enabled preview rows in next-run order. The total and rows belong to one Gateway-owned snapshot, so refreshes and route retirement update them together. This removes local filtering and sorting and retains the existing bounded preview and malformed-row tolerance.
The four existing request fields and filtered-total response are supported by the inspected stable Gateway contract. No new API, configuration, protocol version, or persistent store is introduced. Production LOC is unchanged; the Mac menu documentation describes the resulting count and preview.
User Impact
The menu reports the full enabled-job count while showing up to eight upcoming jobs. Cached summaries continue to belong to the selected Primary Gateway.
Evidence
The before-fix CI run 34022613591, head
7f4cf80e1caccfa297c9d786b498dbf239f57701, reproduced the actual rendered row “Automations, 200” against the expected “Automations, 201”. Its exact synthetic response decoded successfully: 200 returned rows, total 201, current connection and Gateway lease, and eight visible previews. The full owned-row image and diagnostic artifact are retained for the before/after comparison.Earlier attempts did not reproduce the count defect. They exposed fixture/inspection problems, including an untyped string-fragment map selecting GRDB's SQL interpolation overload; the fixture now explicitly produces strings. Those failures are preserved and excluded from the successful baseline claim.
The candidate updates existing row-loss and Gateway-retirement coverage and checks that a count-only refresh notifies observers while its eight preview IDs remain unchanged. Candidate native build and runtime results passed in CI 34026309350. The exact response has total 201 and eight enabled rows; strict/lossy decoding, the store and preview all contain eight. The actual rendered accessibility value is “Automations, 201”. All targeted count, refresh, decoding and route-lifecycle cases passed. Temporary capture, response export, tracing, and CI upload support are now removed. The permanent regression uses the shared accessibility helper and reads the rendered static-text value. All native runtime execution uses disposable CI and synthetic data.
Candidate
0134f20a87ed719e1ac3347b019bf15ed25e9101passed scoped Swift formatting/lint/parsing, docs checks, all 13 selected check stages and 1,121 Node fixture executions. Independent source and managed P2 reviews found no actionable issue. Full candidate Swift compilation and the after image have now passed disposable CI; temporary proof cleanup is complete, and final cleaned-head native validation remains before landing.The images below are the original synthetic owned-row captures from the failing baseline (200) and repaired candidate (201). Both complete captures were inspected before upload.
The cleaned final head
f7d9ed63f027d07a42189fdbe1d6ef747a9f988chas a fully reviewed 11-file PR diff: production LOC unchanged, tests/support +120 and docs +2. All 13 final check stages and 1,121 Node tooling tests passed. All four production files remain identical to the successful instrumented candidate. The original comparison images are retained above; fresh CI has now passed the permanent test without temporary capture machinery.The cleaned head passed CI 34029038216: 11 successful jobs and 23 skips. Actual checkout
a976c712a2ebcfdb312d9a0cdbfbc3a3e326b6e1includes the exact final test and fixtures. The permanent rendered-count/eight-preview test passed, as did all 14 targeted functions / 28 cases and the shared-helper settings smoke test.Review follow-up: the latest review's sole open item was inability to retrieve linked images/artifacts. I inspected both complete original synthetic captures before uploading them, then read the exact final native checkout and test receipts. The final Mac log is SHA-256
5ec1b249022912c1a7b3a809928dbe17769dd0f06626701f5046daeebde857a1; its permanent Automations test passes at line 11696. The earlier 201 image remains attributed to instrumented candidate0134f20a, while this final run independently proves the cleaned test. This resolves the evidence-inspection gap; the review identified no code or security finding, and all temporary capture/export support is removed.