Repository navigation
fix: keep private yield context out of chat output - #139801
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 September 6, 2026, 1:48 AM ET / 05:48 UTC. ClawSweeper reviewWhat this changesThe PR removes private yield context from tool results and public history while retaining it in hidden session context for native continuation. Merge readiness✅ Ready for maintainer review This remains a useful, focused privacy repair: current main and the latest release still expose the private yield message in successful tool results. No concrete introduced correctness defect was found, and the maintainer-owned replacement preserves the original contribution. Priority: P1 Review scores
Verification
How this fits togetherAgents use sessions_yield to pause while awaiting child results. OpenClaw separates the private resume context from the acknowledgment and tool status delivered to chat. flowchart TD
A[Agent yields with private context] --> B[Yield lifecycle owner]
B --> C[Public status and acknowledgment]
C --> D[Chat output]
B --> E[Successful settlement and writer checks]
E --> F[Hidden session context]
F --> G[Resumed parent agent]
A --> H[Filtered public history]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +68, Tests +166, Docs +2. Total +236 across 18 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. Technical reviewBest possible solution: Keep public yield results limited to status and acknowledgment, with private resume context retained through the existing fenced transcript writer and filtered only in display copies. Do we have a high-confidence way to reproduce the issue? Yes: the current producer serializes private message text into the successful result consumed by full-verbosity output. This review verified the source path without executing a reproduction. Is this the best way to solve the issue? Yes: removing the echo at its producer and preserving native continuation through the existing hidden transcript representation repairs the documented contract without changing verbosity preferences. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 55000bcc08aa. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
CI completed for The introducing change is f172f136350 / #139753, authored and merged by @steipete. Its parent accepts the fixture's two fields. The change renames them to This PR changes neither the fixture nor the projection result type. CI tested merge The introducing commit's main CI run was cancelled, so no matching completed main failure is claimed. Attribution rests on the complete before/after source, unchanged fixture, exact candidate compiler error, and the landed correction. The cause is outside this repair and the owned repair workload. All other jobs in the candidate run passed or were skipped. Proceeding through the guarded unrelated-CI exception under the repository owner's standing approval for causally proven outside-owned failures. No CI job or local type check was rerun for this classification. |
|
landpr-approve-unrelated-red |
|
Thanks @Colton-Harris for the original fix in #139254. Proof: Real Telegram Test Server and native child/yield/resume cycles passed. Independent source-blind acceptance passed all nine original clauses and all eight clarified observations. All 629 focused tests passed.
Unset/default, on, and off verbosity, empty or omitted acknowledgment, and missing-child ownership behavior were verified. Complete private proof and failed attempts are retained; no raw private runtime records are published. CI completed for The introducing change is f172f136350 / #139753, authored and merged by @steipete. Its parent accepts the fixture's two fields. The change renames them to This PR changes neither the fixture nor the projection result type. CI tested merge The introducing commit's main CI run was cancelled, so no matching completed main failure is claimed. Attribution rests on the complete before/after source, unchanged fixture, exact candidate compiler error, and the landed correction. The cause is outside this repair and the owned repair workload. All other jobs in the candidate run passed or were skipped. Proceeding through the guarded unrelated-CI exception under the repository owner's standing approval for causally proven outside-owned failures. No CI job or local type check was rerun for this classification. Guarded approval: #139801 (comment) |
Keep private yield context on the existing hidden continuation path, omit it from returned tool content, and remove private input aliases from public history copies. Preserve source input provenance, acknowledgment behavior, and owned-child completion. Verified with real Telegram Test Server and native child/yield/resume cycles, independent source-blind acceptance of all original and clarified observations, and focused regression/authority checks. Co-authored-by: Colton Harris <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
Supersedes #139254, preserving the fix and authorship from @Colton-Harris. Related: #25592, #125106.
What Problem This Solves
The successful child-yield tool result repeated private continuation context, which full verbosity could send to chat. Public history could expose its input, and native child completion could resume without that context.
Why This Change Was Made
The shared result producer omits the private field. Native yield settlement writes one hidden context entry through the existing session owner with current-run and writer checks. Public history removes the private argument from display copies while retaining original private input and diagnostic provenance.
User Impact
Users receive optional waiting acknowledgement and normal status. The parent receives private context once after child completion. Existing verbosity, empty acknowledgement, and missing-owned-child behavior remain intact.
Consumers: yield results, public history, and native parent continuation now separate private context from public output.
Evidence
A real Telegram child/yield/resume cycle reproduced disclosure. Candidate embedded and native cycles verified hidden context reaches the first resumed input once and stays out of public output. Baseline comparisons covered verbosity modes. All 629 focused tests passed, including regressions and stale-writer/revoked-settlement checks. Native bridge checks used its upstream contract and isolated fixtures without production data.