Repository navigation
fix(outbound): preserve location-only replies in conversation history - #129197
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 5:57 AM ET / 09:57 UTC. ClawSweeper reviewWhat this changesThe PR renders safe coordinate text for location-only outbound replies when recording conversation history, while leaving channel and JSON location payloads structured. Merge readinessKeep open for normal maintainer handling: no actionable defect was found in the inspected PR head, but current-main comparison, history, and live GitHub details could not be completed because this checkout lacks those objects and network resolution failed. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherOutbound planning creates channel-neutral reply payloads for delivery and a text projection for session history. Successful channel sends and current-conversation message-tool replies both feed that transcript path. flowchart LR
A[Message tool reply] --> B[Outbound payload plan]
B --> C[Channel location payload]
B --> D[Safe coordinate text]
C --> E[Successful delivery]
E --> F[Session transcript]
D --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +118. Total +117 across 7 files. View PR surface stats
Review metrics
Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Land the canonical shared mirror renderer after exact-head CI confirms the focused outbound and transcript paths. Do we have a high-confidence way to reproduce the issue? No. The PR describes focused pre-fix regressions, but this read-only checkout could not retrieve the base or current-main objects and no test execution was performed. Is this the best way to solve the issue? Yes on the inspected head: one existing safe renderer is reused by planning, successful-delivery mirroring, and current-source replies instead of adding a second location formatting path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7a5de93228f3. LabelsLabel 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)
|
|
Merged via squash.
|
…openclaw#129197) * fix(outbound): preserve location-only replies in conversation history * fix(outbound): normalize mirrored locations without type assertions
What Problem This Solves
Fixes an issue where users sending location-only replies would see the location delivered to the channel but find no corresponding assistant message in conversation history. The same omission also affected location-only replies sent back to the current conversation through the message tool.
Why This Change Was Made
Outbound planning, successful-delivery transcript mirroring, and current-source reply mirroring now share the existing channel-neutral location renderer. Only safe coordinates and accuracy enter transcript text; untrusted place names and addresses remain excluded, and structured channel payloads plus JSON envelopes retain their original shapes. Consolidating the existing rich-content mirror path removes one net line of production code.
User Impact
Location-only messages remain visible in conversation history after a successful send, so users and agents can understand what was delivered without leaking untrusted place labels into model-visible text.
Evidence
Four new regressions were observed failing on clean main before the repair: location-only plan projection returned empty text, ordinary send prepared an empty mirror, a real successful synthetic channel-adapter delivery made zero transcript-appender calls, and a current-source location reply returned
falsewithout mirroring.After the owner-boundary repair, all six focused owner and sibling suites passed (310 tests):
Focused oxlint, oxfmt,
git diff --check, and the repository assertion-safety ratchet passed. Independent owner/sibling review and structured Codex autoreview reported no actionable findings. Production delta: +14/-15 (net -1); tests: +118/-0.No isolated authenticated location-capable external channel was configured for this task; the regression instead drives the real outbound-delivery orchestrator through a registered synthetic channel adapter and asserts the actual session-transcript append boundary after a successful platform send. Delivery and JSON regressions additionally prove the wire payload remains a structured location with empty text.