Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 2:27 PM ET / 18:27 UTC. ClawSweeper reviewWhat this changesThe PR caches a lifecycle-fenced Gateway resolver for fallback subagent registrations and restoration so sibling completions can resume a yielded parent session. Merge readiness⛔ Blocked before merge - 3 items remain Keep open. The patch fixes the single-activation case, but repeated activation in the same Gateway lifecycle creates a new resolver closure; later fallback siblings then disagree with retained rows and the parent wake again fails closed. Current main still has the pre-fix implementation, so this PR remains necessary. Priority: P1 Review scores
Verification
How this fits togetherThe subagent registry persists child runs and eventually sends a synthesized wake to the parent after all siblings settle. That wake needs all child records to share the same lifecycle-bound Gateway context so direct in-process delivery reaches the parent. flowchart LR
A[Parent yields] --> B[Sibling subagents]
B --> C[Subagent registry]
C --> D[Shared lifecycle resolver]
D --> E[Requester settle wake]
E --> F[Parent resumes]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +22. Total +22 across 2 files. View PR surface stats
Review metrics
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: Make same-lifecycle activation preserve one fenced resolver identity, rotate it only for a genuinely new lifecycle, and cover the repeated-activation path through the requester-settle direct delivery boundary. Do we have a high-confidence way to reproduce the issue? Yes, from source: activate with resolver R, register fallback sibling A, activate again with R, then register B. A and B receive distinct fenced closures, so the shared resolver rejects the settle wake; this read-only review did not execute the scenario. Is this the best way to solve the issue? No. Caching one resolver per activation fixes the ordinary path but not the established repeated-activation lifecycle behavior; the canonical resolver must remain stable for an unchanged lifecycle. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 617251ad4fa3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Closing as superseded by #137606, merged September 4, 2026 as acdd2bb. That broader repair already fixes the reported resolver-identity defect and the repeated-activation gap. Linked issue #137467 now identifies #137606 as its resolution. Verified against main at d4580e1. The merged fix is an ancestor of that revision, and inspection of its raw-parent diff confirms both the registry resolver reuse and shared-wrapper composition changes. A focused probe using exact source-extracted binding functions found:
This is binding-level executable evidence plus source-path review, not a fresh end-to-end parent-wake test. |
Superseded by #137606, which fixed #137467.
What Problem This Solves
Fixes an issue where a parent agent that called
sessions_yieldcould remain paused after multiple sibling subagents completed. Their results were persisted, but the final requester-settle wake could fail before reaching the parent session.Why This Change Was Made
The subagent registry now creates one lifecycle-fenced Gateway resolver when activated and reuses it for registry-owned fallback registrations and restoration. This preserves the existing rejection of genuinely mixed Gateway owners while allowing siblings from the same lifecycle to share a valid direct-delivery binding.
User Impact
Parent sessions reliably resume after their sibling subagents settle instead of waiting indefinitely for another user message.
Evidence
undefined.pnpm test src/agents/subagents/registry/subagent-registry.test.ts— 153 passed.pnpm exec oxfmt --check src/agents/subagents/registry/subagent-registry.ts src/agents/subagents/registry/subagent-registry.test.ts— passed.pnpm exec oxlint src/agents/subagents/registry/subagent-registry.ts src/agents/subagents/registry/subagent-registry.test.ts— 0 warnings, 0 errors.git diff --check $(git merge-base HEAD origin/main)— passed.View the OpenClaw team session