Repository navigation
fix(googlechat): retain fallback thread continuity - #117053
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 5:45 PM ET / 21:45 UTC. ClawSweeper reviewWhat this changesThis PR records the canonical Google Chat thread returned for a typing placeholder and uses it for later chunks of the same reply. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for maintainer review. The current delivery path demonstrably loses the provider-returned thread after creating the typing placeholder, and the proposed ownership boundary is well targeted; however, the exact PR-head blobs could not be fully read because the partial clone could not reach GitHub, and the submitted evidence is regression/mock proof rather than an observed Google Chat fallback delivery. Priority: P2 Review scores
Verification
How this fits togetherThe Google Chat plugin sends a typing placeholder before OpenClaw delivers the agent response. When Google replaces a requested thread with a fallback thread, the reply-delivery layer must carry that returned placement forward so placeholder updates and subsequent chunks stay in one conversation. flowchart LR
A[Inbound Google Chat message] --> B[Requested reply thread]
B --> C[Typing placeholder send]
C --> D[Google Chat returned thread]
D --> E[Reply delivery]
E --> F[Placeholder update and later chunks]
F --> G[One canonical conversation thread]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +46, Tests +232. Total +278 across 5 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the logical requested thread only for deciding whether the typing placeholder is reusable, and carry the provider-returned thread as the canonical physical target for every later send; validate that behavior with a redacted real Google Chat fallback run before merge. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible with medium confidence: current main requests fallback-thread behavior, captures the returned thread in the API wrapper, then discards it while later chunks continue targeting the requested thread. A live fallback response was not available in this read-only environment. Is this the best way to solve the issue? Yes, provisionally: keeping requested placement and provider-delivered placement separate at the channel delivery owner is cleaner than downstream retries or channel-specific resend heuristics. The exact branch and live provider behavior still need verification before calling it the best proven fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 383363e36233. LabelsLabel changes:
Label 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
|
|
Merged via squash.
|
…odels-20260729 * origin/main: fix(tui): canonical terminal outcomes, cancellation, and error privacy (#117044) fix(cron): avoid phantom message tool guidance (#116908) fix(test): avoid macOS release gate deadlocks (#116972) fix(openai): canonical Chat cache-hit and billing accounting (#117043) fix(memory-wiki): salvage human Notes before pruning imported source pages (#102294) fix(memory): suggest reindex, not --fix, for a missing qmd index (#116958) chore(msteams): add private Gateway QA adapter fix(ui): make session controls and failures accessible (#117019) docs: fix tilde paths in CLI output examples (#114595) fix(plugins): canonical discovery diagnostics and deterministic lifecycles (#117025) fix(ui): honor Gateway readiness abort and subscription ownership (#117048) fix(updater): harden launchd replacement timing (#117030) fix(gateway): preserve static asset HEAD representation metadata (#117049) fix(gateway): abort embeddings when clients disconnect (#116146) fix(googlechat): retain fallback thread continuity (#117053)
What Problem This Solves
Google Chat reply sends opt into
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD, but the legacy/default typing delivery path kept using the originally requested thread after Google returned a different canonical fallback thread. Multi-chunk replies could therefore update the placeholder in fallback thread A while later chunks retried the stale target and landed in additional threads B/C.Why This Change Was Made
The delivery owner now separates logical placement from physical placement. The requested thread decides whether an existing typing placeholder belongs to the reply; the provider-returned thread becomes the target for every later chunk. Top-level sends remain top-level, and missing response metadata retains the requested thread. The already-correct durable receipt path is unchanged.
User Impact
When Google cannot reply to the requested thread and starts a fallback thread, the typing placeholder and all later chunks stay together in that one canonical thread instead of fragmenting the reply.
Evidence
2eb5b72278475ecf8155958048e87918c5997d2a.REPLY_MESSAGE_FALLBACK_TO_NEW_THREADreplies to the requested thread or starts a new thread if that fails.Message.threadis the containing thread.Thread.nameis the canonicalspaces/{space}/threads/{thread}resource name.git diff --check: passed.Release-note context: Google Chat multi-chunk replies now continue in the canonical fallback thread returned by the provider.