Repository navigation
fix: complete 2026.10.6 release qualification repairs - #178657
Conversation
Keep the backported native routing cases out of production dependency and database-worker inventories while retaining their focused coverage. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
#167979 moved the matcher's only production caller into suppressPollVoteEcho, leaving isPollVoteEchoText exported solely for its unit test. The Knip production unused-export scan rejects that export, so pnpm check:changed fails on main for local and Testbox runs (GitHub Actions only reports it as advisory). Make the matcher module-private and drive the unchanged matcher table through the module's real public pair, recordPollVote -> suppressPollVoteEcho. No production behavior change. Co-authored-by: RomneyDa <[email protected]>
The PR-automation archive fixture treated the cron finished event as a session-patch response receipt. Archiving cancels the occurrence from the committed cron update while the archive RPC is still finishing, so the response assertion raced that handler. Capture and join the actual archive request before inspecting its response. Hold the real cron update after commit to reproduce this ordering without timers, while preserving every existing session identity, cancellation, disabled-job and teardown assertion. Keep worker run rows and launch checks unchanged. The forced pre-fix control reproduced the hourly's zero-response failure (1 failed, 2 passed). The fixed file passed all 3 cases: 100.79s Vitest, 105.94s wrapper with --maxWorkers=1; most elapsed time was compilation/import. Cron test types, type-aware lint, boundary lint and formatting passed. P2 autoreview is scoped-clean. Full cron-config proof passed: 1,961 tests in 251 files, 1090.77s, one worker. Focused command: pnpm test src/cron/service.pr-automation.test.ts --maxWorkers=1 Full config: node scripts/run-vitest.mjs run --config test/vitest/vitest.cron.config.ts --maxWorkers=1 Refs: main CI run 38881317413, job 116908788842. Co-authored-by: RomneyDa <[email protected]>
* fix(update): consume SQLite migration source once * fix(update): retain captured source through Doctor preparation * fix(update): settle state writers before Doctor schema repair Drain prior canonical handles before private schema repair so their native-close receipts publish legitimate maintenance writes and release exclusive custody. Keep all migration attribution and strict source checks; remove the source-consumption workaround that lost later Doctor writes. Co-authored-by: RomneyDa <[email protected]>
Restore test-only transcript access, classify the extracted update helper as test support, retain the full PR-wrapper runtime closure, align native-bootstrap journal expectations, and point non-isolated fixtures at the extracted state owner. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Construct the mocked runtime exit with the production ExitError so JSON completion remains distinguishable from ordinary command failures. Co-authored-by: RomneyDa <[email protected]>
prompts as hidden internal_system user rows to preserve model-prefix bytes. The finalization and cron fallback tests still counted those rows as new user turns. Require the expected hidden rows and their provenance, retain the single visible original turn, and verify finalization does not hide the next real user message. Keep receipt, attempt-count, provider-request, fallback-notice and final-answer assertions intact. No production behavior changes. Proof: both hourly failures reproduced on current main; all eight focused cases pass with --maxWorkers=1, including runtime retry/cold-reopen coverage. Agents and cron test typechecks, typed lint, boundary lint, formatting and P2 autoreview pass. Co-authored-by: RomneyDa <[email protected]>
Align the startup-admission proof with #169945: the gateway hook no longer blocks on historical cleanup, while service stop remains the deterministic settlement boundary. Co-authored-by: RomneyDa <[email protected]>
Backport the narrow runtime exit contract required by #176795 without importing the full #168587 refactor, and keep the gateway harness mock non-throwing outside the explicit typed-exit proof. Co-authored-by: RomneyDa <[email protected]>
Restore the selector fence omitted by the partial #168882 compatibility backport while keeping the core file within the release line count ratchet. Co-authored-by: RomneyDa <[email protected]>
Match the current finalization prompt text while retaining the release-line provider fallback contract of one visible cron user turn. Co-authored-by: RomneyDa <[email protected]>
Keep update inspection images and source captures on the candidate helper temporary volume without relocating native admissions or recovery backups. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
- The chat Desktop panel asks environments.list for desktopSetup only when its unresolved automatic target is the Gateway host. - The panel says desktop access is not enabled on the Gateway host and that it shares the Gateway host's screen, shows setup steps worded for the Gateway host plus account and network notes, and offers Enable desktop access when the connection can patch config (else the administrator hint) or Check again, then re-reads inventory and connects the Gateway desktop. - Systems and the panel share the setup state selection and the desktop.host.enabled patch helper; other targets, document mode and a failed setup check keep desktop.sourceUnavailable. - The setup helper declares its own runtime-config shape and imports nothing from desktop-panel-inputs.ts, so the type import runs one way. - Docs mention the chat panel path. Co-authored-by: RomneyDa <[email protected]>
Use the release-line i18n registry, shadow-root assertions, and Lit settlement instead of the upstream Solid-only test helpers. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Complete the #168722 fixture integration omitted by the release backport. Co-authored-by: RomneyDa <[email protected]>
The release snapshot does not retain the mainline sharing-read owner introduced after this branch point. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Use the rehearsed configuration during update activation instead of looping through candidate checks after late config edits. Rely on the sequential node auto-update caller and Doctor's exclusive maintenance ownership for internal pause and title bookkeeping. Preserve validation, schema, authorization, service-publication, privacy and work-settlement boundaries. Best-effort tradeoffs accepted: - Late root/include edits no longer restart rehearsal (b36eb3e's injected save cases); incompatible edits can require correction or Doctor/restart. - Unsupported overlapping pause/resume calls do not retain distinct tokens (#149517); the production auto-update loop awaits each pause before resume. - Concurrent foreground title changes during offline Doctor are unsupported (#151211); existing names/incognito sessions and live commit authority stay. Remove 76 net production lines and 292 test lines. Focused proof covers 177 supported node/update/Doctor cases; core types, both zero-cycle checks, typed lint, formatting and independent P2 review pass. The lint-suppression test has an inherited allowlist mismatch already fixed on main in dab6a8d. Full changed-check and release-matrix proof are not claimed for this branch-only below-500 simplification. Co-authored-by: RomneyDa <[email protected]>
Carry admitted snapshots through updates and retain live authority at effects. Remove speculative observation, generation, and bookkeeping machinery while preserving rollback, native settlement, bounded resources, and public interfaces. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
) (cherry picked from commit 00cb4b3) Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
|
Codex review: blocked before merge. What this changesThis PR adapts update, Doctor, native lifecycle, Codex, and Control UI fixes for the 2026.10.6 release candidate. Example: Windows Task Scheduler denies disabling autostart with HRESULT 0x80070005.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: it carries maintainer-approved repairs for the frozen release branch, and merged mainline fixes do not replace that integration work. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe release candidate combines CLI update and recovery owners, native service adapters, agent lifecycle management, and the Gateway-served Control UI. flowchart TD
A[Installed updater] --> B[Candidate admission]
B --> C[Doctor and state repair]
C --> D[Native service lifecycle]
D --> E[Gateway]
E --> F[Codex conversations]
E --> G[Control UI]
Technical reviewBest possible solution: Complete the frozen release through the existing update, Doctor, native-service, Codex, and configuration owners. Do we have a high-confidence way to reproduce the issue? Source and recorded before/after evidence establish the native reconnect, Codex projection-refresh, Desktop setup, and Windows permission-classification failures; this review ran no target code. Is this the best way to solve the issue? The inspected repairs reuse existing owners and preserve the source PRs' approved tradeoffs; no discrete introduced correctness defect was established. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4453edcc7db9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfacePR surface statistics unavailable: the file list is incomplete. LabelsLabel 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 October 20, 2026, 3:16 PM ET / 19:16 UTC. |
#168171) The reconnect-backoff hooks added in #168024 lived in OpenClawKit Sources but were called only from OpenClawKitTests. The shared Periphery workflow scans the iOS and macOS consumer indexes, and neither builds OpenClawKitTests, so both reported _test_setReconnectBackoffMs(_:) and _test_reconnectBackoffMs() as unused and the intersection failed on every PR touching the kit. Move the setter into the test file's existing @testable fileprivate GatewayChannelActor extension, beside seedPathRecoveryConnectBackoff, and read the internal backoffMs directly. The remaining _test_ hooks stay because the macOS OpenClawIPCTests call them. Proof: swift test --filter GatewayNetworkPath (10 tests in 2 suites, including the reset-both-backoffs case) passes; SwiftFormat clean. (cherry picked from commit 46d5488)
This reverts commit f777409. CI preflight requires generated Control UI locale artifacts to land isolated from source changes; the refresh lands on the release branch as its own generated-only commit after this PR merges.
The 2026.10.6 qualification squash (#178657) carried local-state-owner.fixture.test-support.ts (main consumers: workboard, proxy, and claws owner tests, none backported) and the release-only update-command-original-service-current.admission.test-support.ts, whose only importer lost the call when #168882 was backported. Knip's full-tree unused-file scan fails check-dependencies on both.
The #178657 backport d34c942 made defaultRuntime.exit throw ExitError without the #168587 natural-exit cutover. The Gateway run loop calls runtime.exit from its detached shutdown operation, so after a clean SIGTERM shutdown it logs 'lifecycle completion failed: exit 0' and the process stays alive until the service manager kills it. Published-driver update failed at stop-service on 0bbcd4a; reproduced with a foreground Gateway (alive 20s after SIGTERM). Restore the 2026.10.5 runtime exit and revert the f0da132 one-shot compensation. The gateway JSON register fix keeps its ExitError rethrow for non-exiting runtimes; its test now models that runtime explicitly.
84cbbd1 (#178657, adapting #168882) restored the pre-#170130 capture that wraps include resolution in a state database read snapshot. After package replacement the old driver must not read state the candidate may have migrated (#170130, backported to 2026.10.5 as 6e58747). Restore the file-only capture with its raw and path-identity conflict checks.
84cbbd1 (#178657, adapting #168882) replaced local-state-owner.ts with main's later version, importing unrelated main behavior (lazy config loading, nested owner assertions, embedded-owner discovery, borrowed custody) and dropping selected-root identity and pre-dispatch owner revalidation. Routed pairing approval then touched local pairing state while a live Gateway owned it (admin-state-owner.process pairing-approve live). Restore the pre-#178657 owner and its unit test; no caller uses the imported parameters.
84cbbd1 (#178657) replaced update-command-mutable-signals.ts with main's later version, which ends a signalled update by setting process.exitCode and relies on main's #168587 natural-exit lifecycle. The release line has no such lifecycle, so an interrupted update kept running (SIGINT/SIGTERM hung or exited 1) and dropped the state-generation and owner revalidation before recording the interruption. Restore the pre-#178657 signal owner and its migrated-state coverage; all exports and callers are unchanged.
Product code on a stable patch branch is blocker-only, and the #168882 refactor (P3, merge-risk: compatibility) depends on main's #168587 natural-exit lifecycle, which is not on this line. Return the update, daemon, node-host, Doctor preflight and gateway-run lifecycle code to its 081fe02 state by reverting the refactor family carried in #178657: 60774e9, 84cbbd1, 6bccca8, 1778c23, 395ccdc, 7337083, 6f56c8b, db16849, bb576d2, c364cae, 9115d97, f3934ea, 406ba70 and b092b05. Retained: #177844, #176795 and its typed-exit follow-ups, the Windows Scheduled Task permission/locale fixes (#178624, 2d94190, 2e1beb7), Windows backup EPERM, Windows dependency links, Doctor snapshot contention guidance, TMPDIR finalization, initialization selector revalidation (bf1f128) and every fix pushed after the squash. The Windows compensation test keeps the native enabled-state mock and regains its invocation-replaced case. The admission test-support helper removed by 93bb6b6 is restored because its importer is back.
What Problem This Solves
Fixes: the frozen 2026.10.6 candidate cannot complete full release validation after the required backports expanded update, Doctor, native lifecycle, Codex, Host Desktop, and release-harness contracts.
User Impact
User impact: 2026.10.6 can ship the selected fixes with safe update/recovery behavior, complete contribution records, and the Control UI startup payload within its enforced budget. No new migration or operator action is introduced by this closure.
Why This Change Was Made
This preserves the approved release cut and adapts only the required backports and their release-line seams. It closes deterministic type, lint, test, locale, startup-budget, and release-record failures without weakening ratchets or raising budgets. The final UI optimization adapts #178054 and #178236; the Host Desktop behavior comes from the already-reviewed #177888 backport. The final Windows recovery backport adapts #178624 so Scheduled Task access denials are recognized from the native HRESULT instead of locale-specific text.
Evidence
9d396ebbdd01(clean tracked worktree).The Host Desktop visual behavior is unchanged from #177888, whose reviewed browser proof is retained here:
Known limitation: the full macOS Screen Sharing sign-in loop still requires a person at the Mac; the retained browser proof reaches the account prompt after authorized enablement.