Repository navigation
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex review: needs real behavior proof before merge. Reviewed September 24, 2026, 8:50 AM ET / 12:50 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch adds a session-history reader module that copies the environment into a plain object before requesting exact session entries from a worker. Merge readiness⛔ Blocked before merge - 7 items remain The linked Windows failure remains in the active reader on current main. This PR contains the narrow repair, but its new module is unused at the pinned head and cannot supply that repair as submitted. Priority: P1 Review scores
Verification
How this fits togetherIsolated cron setup reads session entries through the session-history worker before an agent turn can proceed. The reader sends the request and its environment to the worker, which returns the stored entries. flowchart LR
A[Isolated cron setup] --> B[Session entry reader]
B --> C[Capture environment]
C --> D[Worker request]
D --> E[Session database]
E --> F[Stored entries]
F --> G[Agent turn preparation]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +407. Total +407 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Put the plain-environment capture in the registered exact-entry reader, preserve Windows environment semantics inside the worker, and cover the worker request through isolated cron preparation. Do we have a high-confidence way to reproduce the issue? Yes. The linked report supplies a native Windows failure trace and local repair observation, while current main still sends the Proxy through the exact-entry path; this review did not execute current main on Windows. Is this the best way to solve the issue? Yes, after moving the capture into the registered reader. Copying the environment at the worker boundary matches the existing row-facts pattern without changing the environment helper. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d69dd020015. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(sessions): capture plain env object for exact-entries worker request This is item 1/3 in the current shard. Shard 76/89. This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Thanks, @aniketkrs, for the exact-entry environment Proxy investigation and proposed repair. I’ve carried the finding forward in #160075, which covers both the registered exact-entry reader and the earlier session-store discovery transport, with real-worker regression proof. You’re credited in the PR body and commit. Closing this overlapping PR so review and the pending native Windows CI validation can continue in one place. |
Capture plain storage environment facts before exact-entry and store-discovery worker dispatch, and restore platform lookup semantics inside the worker. Reuse the storage environment owner while copying only its routing inputs. Cover admission and configured-store cron preparation with the Windows env Proxy through real worker transport, and include the regressions in Windows CI. Closes #157067 Closes #159339 Refs #157109 #157348 Co-authored-by: Aniket Kumar <[email protected]> Co-authored-by: Yashas Prakash <[email protected]>
Capture plain storage environment facts before exact-entry and store-discovery worker dispatch, and restore platform lookup semantics inside the worker. Reuse the storage environment owner while copying only its routing inputs. Cover admission and configured-store cron preparation with the Windows env Proxy through real worker transport, and include the regressions in Windows CI. Closes #157067 Closes #159339 Refs #157109 #157348 Co-authored-by: Aniket Kumar <[email protected]> Co-authored-by: Yashas Prakash <[email protected]>
) Windows cron isolated-agent runs and session transcript discovery failed with DataCloneError because the request carried the Windows process-environment proxy into the transcript worker. Exact-entry and discovery requests now capture a plain, bounded storage environment and the worker restores Windows lookup semantics. Closes #157067. Closes #159339. Supersedes #157109 and #157348 (closed with credit). Landed under the pre-existing-red rule (#161124 and session-store main reds).
…claw#160075) Windows cron isolated-agent runs and session transcript discovery failed with DataCloneError because the request carried the Windows process-environment proxy into the transcript worker. Exact-entry and discovery requests now capture a plain, bounded storage environment and the worker restores Windows lookup semantics. Closes openclaw#157067. Closes openclaw#159339. Supersedes openclaw#157109 and openclaw#157348 (closed with credit). Landed under the pre-existing-red rule (openclaw#161124 and session-store main reds).
* fix(sessions): restore Windows cron setup and session admission (#160075) Windows cron isolated-agent runs and session transcript discovery failed with DataCloneError because the request carried the Windows process-environment proxy into the transcript worker. Exact-entry and discovery requests now capture a plain, bounded storage environment and the worker restores Windows lookup semantics. Closes #157067. Closes #159339. Supersedes #157109 and #157348 (closed with credit). Landed under the pre-existing-red rule (#161124 and session-store main reds). (cherry picked from commit a181c3f) * fix(codex): avoid browser auth in CUA readiness (#162467) (cherry picked from commit 9f9dab3) * chore(release): prepare 2026.9.7-1 * chore(release): prepare 2026.9.8 * fix(gateway): normalize quiescence recovery diagnostics Keep the retained watchdog recovery error consistent with the single-line workspace sync error surfaced to operators on single-digit days. Preserve raw ps start identities for signal guards and existing watchdogs. Make the existing exhaustion regression calendar-independent with padded lstart input, retaining the exact recoveryError assertion and proving that all stopped workers resume after process probes recover. Verified the original UTC failure and the deterministic pre-fix failure. The full quiescence script file passes under UTC, the exact regression passes in the default timezone, and 15 sibling tests pass. Core typecheck, formatting, diff checks, and independent review also pass. --------- Co-authored-by: Peter Steinberger <[email protected]>
Fixes #157067
What Problem This Solves
On native Windows, isolated AgentTurn cron setup fails before inference: the exact-session-entry worker request carries input.env straight from cloneEnvWithPlatformSemantics, which returns a Proxy on Windows. worker.postMessage cannot structured-clone a Proxy, so setup dies with DataCloneError and the automation backs off without ever creating a session. The reporter observed seven consecutive setup failures.
User Impact
Windows users with isolated cron automations get silent cron-setup failures (no inference session, just backoff plus error). Linux and macOS are unaffected.
Why This Change Was Made
The sibling readRowFacts reader already captures env: { ...input.env } into a plain object before posting to the worker. This change applies the same established pattern to readExactEntries, the one reader still passing the Proxy through. The fix sits at the reader layer rather than in captureSessionEntryReadScope on purpose: the Proxy carries Windows platform semantics other code paths rely on, so we only flatten at the worker boundary.
Evidence