fix(sessions): clarify cross-agent visibility guidance#90489
fix(sessions): clarify cross-agent visibility guidance#90489sahibzada-allahyar wants to merge 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 4, 2026, 8:40 PM ET / 00:40 UTC. Summary PR surface: Source +2, Tests 0. Total +2 across 2 files. Reproducibility: yes. Source inspection shows current main returns the older single-knob cross-agent visibility denial, and the PR body includes an after-fix terminal probe that hits the real helper path for the reported Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the central helper message update after standard checks; keep any broader doctor/config lint ideas from the linked issue as separate follow-up only if maintainers still want them. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main returns the older single-knob cross-agent visibility denial, and the PR body includes an after-fix terminal probe that hits the real helper path for the reported Is this the best way to solve the issue? Yes. Updating the shared session visibility helper is the narrow maintainable fix because list, history, send, and status all consume that central decision path instead of carrying separate copied messages. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against edb920b857ce. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +2, Tests 0. Total +2 across 2 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
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What changed
tools.sessions.visibility=all.Fixes #90443
Real behavior proof
Behavior or issue addressed: Cross-agent session access denial now tells the operator both required controls. Before this PR, the session visibility guard only told operators to set
tools.sessions.visibility=all; after this PR, it also namestools.agentToAgent.enabled=trueand the allow list requirement.Real environment tested: Local OpenClaw source checkout on Darwin 25.5.0 arm64, Node v26.0.0, pnpm 11.2.2, branch
fastino-90443-session-visibility-diagnostics.Exact steps or command run after this patch:
createSessionVisibilityRowCheckerfor a cross-agentsendcheck withvisibility: "tree".pnpm test src/agents/tools/sessions-access.test.ts.git diff --check HEAD~1..HEAD.Evidence after fix: Terminal transcript from the local source-checkout behavior probe:
Supplemental focused test output:
Observed result after fix: The real session visibility guard path now returns the corrected cross-agent guidance including both
tools.sessions.visibility=allandtools.agentToAgent.enabled=true (with allow list).What was not tested: No live multi-agent gateway run with separate Jarvis/Billy credentials. No doctor command behavior changed; this PR only changes the session-access denial guidance path.