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. |
|
Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 6:15 AM ET / 10:15 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR delays dashboard title work’s session admission until reply progress, preventing background naming from blocking automatic session rollover. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped fix: current main and the latest release retain the circular wait. The refreshed production-boundary proof supports the repair, and no blocking introduced defect was found. Priority: P1 Review scores
Verification
How this fits togetherGateway chat dispatch schedules background session naming alongside foreground replies. Automatic rollover drains session work before preparing the reply, so naming must not hold admission while waiting for that reply’s progress. flowchart TD
A[Dashboard message] --> B[Gateway reply dispatch]
B --> C[Automatic rollover]
C --> D[Drain competing session work]
D --> E[Reply progress or settlement]
E --> F[Acquire title admission]
F --> G[Generate and safely save title]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +1, Tests +268. Total +269 across 3 files. 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. Technical reviewBest possible solution: Keep title readiness outside session admission while preserving foreground reply priority, bounded title retries, and guarded persistence. Do we have a high-confidence way to reproduce the issue? Yes: current main establishes the circular wait between pending title readiness and rollover admission draining, supported by user failure traces and the contributor’s negative control. This read-only review did not execute a reproduction. Is this the best way to solve the issue? Yes: moving the wait before admission repairs the owning scheduling invariant without disabling reset, extending timeouts, or replacing the existing title writer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 685fdc1f57c4. 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 (3 earlier review cycles)
|
Daily reset waits for the session lease that title generation holds until reply progress, so the first message after reset times out. Co-authored-by: Cursor <[email protected]>
The title-gate regression advances fake timers, and a gateway chat.send covers a stale daily dashboard session through a successful reply. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
029e478 to
430322d
Compare
|
Landed in 3c904ae. Thanks @ericcaiwx-star! Verified on a built Gateway with a one-minute idle reset: main failed the first post-reset chat.send with the rollover drain timeout; with this the reply arrives, the session rotates, and the title lands on the right session, while a genuinely competing reply still serializes rollover. |
openclaw#162689) Make deferred dashboard title work wait for the turn to be released before acquiring session admission, so the first Control UI message after a session reset no longer fails with a rollover drain timeout. Genuine competing session work still serializes rollover, and the guarded title writer still targets the same session identity. Closes openclaw#162420. Co-authored-by: Cursor <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
#162689) Make deferred dashboard title work wait for the turn to be released before acquiring session admission, so the first Control UI message after a session reset no longer fails with a rollover drain timeout. Genuine competing session work still serializes rollover, and the guarded title writer still targets the same session identity. Closes #162420. Co-authored-by: Cursor <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 3c904ae)
openclaw#162689) Make deferred dashboard title work wait for the turn to be released before acquiring session admission, so the first Control UI message after a session reset no longer fails with a rollover drain timeout. Genuine competing session work still serializes rollover, and the guarded title writer still targets the same session identity. Closes openclaw#162420. Co-authored-by: Cursor <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 3c904ae) (cherry picked from commit 6667a88) Co-authored-by: RomneyDa <[email protected]>
Closes #162420
What Problem This Solves
The first Control UI message after a daily reset can fail with
timed out draining work before reply session rollover. Deferred dashboard title work holds session admission while waiting for reply progress; rollover must drain that admission before the reply can progress.Why This Change Was Made
scheduleDashboardSessionTitlenow waits forturn.releasedbefore acquiring session admission. It preserves current main's boolean release result andturn.settledretry/fallback behavior. The guarded title writer still checks session identity and an existing explicit name. Real competing session work still blocks rollover.The rebase retains main's settled-turn fallback regression. The daily-rollover proof now reports the actual
agent.waiterror and checks drain-timeout text instead of labelling every run error as a drain timeout.User Impact
A dashboard reply can perform its daily rollover while title readiness is pending, then title generation can acquire admission after reply progress. No configuration, environment variable, stored-data contract, or reset-policy change.
Verification
Pinned current-main baseline:
a6e31e2247ebdc477be43c8ba6b5e73bf6082928.Candidate:
430322d2cf1d1dc684071c09c3978590fc1e4790(unchanged contributor head).Built both revisions in isolated Node 24.21.0 Linux containers, with Gateway state on tmpfs. Used a configured one-minute idle reset, real WebSocket
chat.send/agent.wait, and no clock changes. Sent a first message, waited 65 seconds, then sent the first message after reset.Error: timed out draining work before reply session rollover: agent:main:dashboard:rollover-proof.Rollover proof reply; session70ce7fd8-cd6a-4dd7-b709-44c983953559retains its identity, rotates its lifecycle revision, and receives display nameRollover proof reply.providerStarted: false, then completes after release. Candidate also waits until release (10.074 seconds after the second send). The existing 31 admission/lifecycle tests pass on both revisions.gpt-5-mini, with reasoninglowandmax_output_tokens: 4096. HTTP 200; Gateway returned a real release-planning answer and recorded response modelgpt-5-mini-2025-08-07. Other requests, including title generation, used the loopback fixture. Credentials and the credential-bearing container were removed.pnpm tsgoand bothpnpm build:dockerbuilds passed. No additional source change or push was necessary.openclaw/ci-gate: success; no failed or cancelled jobs. ClawSweeper is ready on the same SHA: fix(gateway): stop dashboard title work from blocking session rollover #162689 (comment).Commands:
Only title-work admission ordering changes. The session-identity and explicit-name guards remain intact; no transcript or session-store format changes. Current main has no intervening commits on the PR's three files, and merge-tree is clean.
No overlap with Pash/Sarah changes.
Thanks to @ericcaiwx-star for the fix and @dimonnld for the report.