Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 14, 2026, 8:51 AM ET / 12:51 UTC. Summary PR surface: Source +73, Tests +175. Total +248 across 8 files. Reproducibility: yes. at source level: the linked fresh-session trace shows a nested Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Add redacted live proof for both behavior modes, refresh the branch onto current main, and land this bounded core guard while keeping #107172 open for Codex terminal-result accounting, Feishu finalization, and native-hook relay lifecycle work. Do we have a high-confidence way to reproduce the issue? Yes at source level: the linked fresh-session trace shows a nested Is this the best way to solve the issue? Yes—the post-resolution canonical self-target check is the narrowest maintainable safeguard for this failure mode, and preserving AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9de11f098e65. Label changesLabel justifications:
Evidence reviewedPR surface: Source +73, Tests +175. Total +248 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
1712bed to
e9b47cb
Compare
|
@clawsweeper re-review I have rebased the PR against main and gathered the required real behavior proof against the live gateway. Live Runtime Behavior ProofUsing the OpenClaw gateway and the CLI agent (targeting its own Unit Test VerificationThe corresponding gating tests in Everything behaves exactly as expected. Please review! |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Fixed with PR from clawFather #108354 |
Related: #107172
What Problem This Solves
Fixes an issue where an agent synchronously sending a message to its own originating session with
sessions_sendcould wait behind the turn that initiated it and eventually time out.Why This Change Was Made
Reject synchronous self-target sends after session resolution, including direct keys and aliases or labels that resolve to the originating session. Fire-and-forget self-target sends with
timeoutSeconds: 0remain supported.Scope
This is a focused safeguard for one failure mode reported in #107172: a synchronous
sessions_sendresolving back to the currently active originating session. It prevents the self-wait/session-lane dependency, but it does not change the separate Codex terminal message delivery path or fully resolve the Feishu finalization and native-hook lifecycle symptoms from that issue.For that reason, this PR intentionally uses
Related: #107172rather thanCloses #107172.The broader integration work should follow in a separate TDD change covering:
Done.fallback after a visible tool-delivered reply;native hook relay not found.Keeping that work separate avoids coupling the core session-send guard to Codex harness and Feishu channel lifecycle changes, and keeps this PR small and reviewable.
User Impact
Agents now receive an immediate actionable error instead of entering a predictable synchronous wait when
sessions_sendresolves back to the current session. Existing asynchronous self-send workflows continue to work.Evidence
TDD proof
timeoutSeconds: 0remain supported.Current-head local validation
main.git diff --checkpassed.$autoreviewcompleted cleanly on the final branch diff with no accepted/actionable findings (overall confidence 0.96).Prior broader regression proof
CI remediation
sessions-send-tool.tsto its ratcheted line budget.main; the prompt snapshot checker now reports no drift.1712bed35e1.AI-assisted: yes. Codex was used for issue investigation, test-first implementation, focused validation, structured autoreview, CI triage, and PR preparation. The change and evidence were reviewed before submission.