Repository navigation
fix(googlechat): stop metadata lookups after sender authority expires - #185972
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. What this changesPass the sender’s existing authority check through Google Chat destination-metadata requests while preserving accepted-delivery settlement. Example: Google Chat accepts spaces/AAA/messages/accepted, then the sender’s authority expires.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR repairs a current-main authority callback gap with a focused change; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGoogle Chat session routing resolves user or space targets into conversation identities; its metadata requests use the shared guarded HTTP transport, while confirmed delivery history has separate persistence authority. flowchart TD
A[Confirmed delivery] --> B[Destination resolution]
B --> C[Google Chat route resolver]
C --> D[Google Chat HTTP owner]
D --> E[Guarded fetch authority check]
E --> F[Metadata request]
B --> G[Local history settlement]
Technical reviewBest possible solution: Use the existing sender-authority callback at both metadata request boundaries while retaining separate authority for accepted-delivery persistence. Do we have a high-confidence way to reproduce the issue? Current-main source visibly drops the callback before metadata discovery; the PR also records a failing baseline and passing real-HTTP regressions, but no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair: forward the existing callback into the existing HTTP owner, preserve metadata reuse and nonfatal classification, and avoid coupling accepted persistence to expired transport authority. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2bddc783d2a8. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +12, Tests -13, Other -2. Total -3 across 8 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 27, 2026, 11:28 AM ET / 15:28 UTC (Revision 2). |
Google Chat: stop new destination-history metadata requests after send authority expires while preserving already accepted delivery receipts.
|
@clawsweeper re-review Please review exact head 9bb005f. The two diagnosed CI issues are corrected; release-note context is retained in the PR body and signed commit. The body links the complete prior-head runtime receipts and distinguishes the fresh required CI now running. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…openclaw#185972) * fix(googlechat): preserve authority for session route lookups * test(googlechat): model healthy session metadata lookup * test(googlechat): prune removed route mock baseline * test(googlechat): avoid shadowing DNS lookup * chore(googlechat): retain release note in PR context Google Chat: stop new destination-history metadata requests after send authority expires while preserving already accepted delivery receipts.
Related: #177381
What Problem This Solves
Fixes Google Chat making a new destination-metadata request after a message was accepted and its transport authority was revoked.
User Impact
Release note: Google Chat: stop new destination-history metadata requests after send authority expires while preserving already accepted delivery receipts.
An accepted message keeps its successful receipt and local history. Revocation prevents further network discovery; authorized delivery still resolves destination metadata normally.
Why This Change Was Made
Forward the existing transport-authority check through both user and space route lookups into the guarded HTTP owner. Keep accepted-delivery persistence under its separate current-owner check.
Production delta: +12 lines for the missing callback handoff. Test consolidation preserves routing assertions while adding token/DNS revocation and accepted-history coverage; test delta: -13 lines. Two obsolete mock-export ledger entries are removed; no guard or test ceiling changes.
Separate follow-up: audit Slack's analogous route-discovery callback handoff.
Evidence
9bb005fcd110e0d27c4d07379f767cb3a8f2294b. Independent source and correction reviews are clear. The substantive correction passed scoped autoreview; the final release-note relocation changes no production or test bytes.6232680ca13d89a0a3885bc9ae32ff60b51a0f4b, base653c1166+ final head. Pinned Bun807211511, Linux x64, Vitest 5.0.5. Complete Google transport 7/7 and sender authority 13/13, plus accepted-history integration 10/10, all zero skips.6f8c9bad. Earlier eed0 CI passed the runtime cases but exposed two owned gate failures: obsolete mock-export rows and a shadowed test-local name. Both are corrected and passed fresh CI above; the earlier run remains failed.